summaryrefslogtreecommitdiff
path: root/utils/makefile.lxc
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2020-12-27 08:27:52 +0100
committerGitHub <noreply@github.com>2020-12-27 08:27:52 +0100
commit48b4af1e08d54ec399f8ab77dd34b0f6380b3111 (patch)
tree2a6e4cd8896c75109db7d6b41e29169979684f69 /utils/makefile.lxc
parent2fc2d17a27150586f47d25876907bc9c33a829a5 (diff)
parentd175a0fb7bdcc00632a9092f5de1037f0dd1d811 (diff)
Merge pull request #2421 from return42/mod-pyenvinstall
[perf] optimize creation of the virtualenv & pyenvinstal targets
Diffstat (limited to 'utils/makefile.lxc')
-rw-r--r--utils/makefile.lxc7
1 files changed, 5 insertions, 2 deletions
diff --git a/utils/makefile.lxc b/utils/makefile.lxc
index fd999e40d..95a8d4317 100644
--- a/utils/makefile.lxc
+++ b/utils/makefile.lxc
@@ -9,10 +9,10 @@
# sudo make ./utils/makefile.lxc lxc-activate
# sudo make ./utils/makefile.lxc lxc-deactivate
-LXC_ENV_FOLDER=lxc/$(shell hostname)/
+LXC_ENV_FOLDER=lxc-env/$(shell hostname)/
lxc-help::
- @echo 'LXC: running in container LXC_ENV_FOLDER=$(LXC_ENV_FOLDER)'
+ @echo ' LXC: running in container LXC_ENV_FOLDER=$(LXC_ENV_FOLDER)'
# If not activated, serve target 'lxc-activate' ..
ifeq (,$(wildcard /.lxcenv.mk))
@@ -24,6 +24,9 @@ else
PHONY += lxc-deactivate
lxc-deactivate:
rm /.lxcenv.mk
+$(LXC_ENV_FOLDER):
+ $(Q)mkdir -p $(LXC_ENV_FOLDER)
+ $(Q)echo placeholder > $(LXC_ENV_FOLDER).placeholder
endif
.PHONY: $(PHONY)