summaryrefslogtreecommitdiff
path: root/utils/makefile.include
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarIT.de>2020-06-19 04:50:36 +0000
committerGitHub <noreply@github.com>2020-06-19 04:50:36 +0000
commit6337d515dd11d2014a775b67103eda51c7fc38e2 (patch)
treefdd3f1e67a8e08d28b137348834aa6c72e4513ab /utils/makefile.include
parent5dd235463a11bec2e3546e89f2b31d2a5aa40326 (diff)
parentc83007a6bcd2a7f765e7655b91cc6714fbc4ab01 (diff)
Merge branch 'master' into new-readme
Diffstat (limited to 'utils/makefile.include')
-rw-r--r--utils/makefile.include16
1 files changed, 15 insertions, 1 deletions
diff --git a/utils/makefile.include b/utils/makefile.include
index 716889c02..65aca70f0 100644
--- a/utils/makefile.include
+++ b/utils/makefile.include
@@ -1,12 +1,25 @@
# -*- coding: utf-8; mode: makefile-gmake -*-
+ifeq (,$(wildcard /.lxcenv.mk))
+PHONY += lxc-activate lxc-purge
+lxc-activate:
+ @$(MAKE) -s -f /share/searx/utils/makefile.lxc lxc-activate
+lxc-purge:
+ $(Q)rm -rf ./lxc
+else
+ include /.lxcenv.mk
+endif
+
+ifeq (,$(wildcard /.lxcenv.mk))
make-help:
+else
+make-help: lxc-help
+endif
@echo ' make V=0|1 [targets] 0 => quiet build (default), 1 => verbose build'
@echo ' make V=2 [targets] 2 => give reason for rebuild of target'
quiet_cmd_common_clean = CLEAN $@
cmd_common_clean = \
- rm -rf tests/build ;\
find . -name '*.orig' -exec rm -f {} + ;\
find . -name '*.rej' -exec rm -f {} + ;\
find . -name '*~' -exec rm -f {} + ;\
@@ -126,3 +139,4 @@ echo-cmd = $(if $($(quiet)cmd_$(1)),echo '$(call escsq,$($(quiet)cmd_$(1)))$(ech
# printing commands
cmd = @$(echo-cmd) $(cmd_$(1))
+.PHONY: $(PHONY)