From d175a0fb7bdcc00632a9092f5de1037f0dd1d811 Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Sat, 26 Dec 2020 11:43:18 +0100 Subject: [mod] LXC_ENV_FOLDER moved from ./lxc to ./lxc-env BTW: - add target $(LXC_ENV_FOLDER) - fix indentations Signed-off-by: Markus Heiser --- utils/makefile.lxc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'utils/makefile.lxc') 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) -- cgit v1.2.3-54-g00ecf