123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142 |
- 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 = \
- find . -name '*.orig' -exec rm -f {} + ;\
- find . -name '*.rej' -exec rm -f {} + ;\
- find . -name '*~' -exec rm -f {} + ;\
- find . -name '*.bak' -exec rm -f {} + ;\
- FMT = cat
- ifeq ($(shell which fmt >/dev/null 2>&1; echo $$?), 0)
- FMT = fmt
- endif
- normpath = $1
- ifeq ($(OS),Windows_NT)
- normpath = $(subst /,\,$1)
- endif
- ifeq ("$(origin V)", "command line")
- KBUILD_VERBOSE = $(V)
- endif
- ifndef KBUILD_VERBOSE
- KBUILD_VERBOSE = 0
- endif
- ifeq ($(KBUILD_VERBOSE),1)
- quiet =
- Q =
- else
- quiet=quiet_
- Q = @
- endif
- comma := ,
- quote := "
- #" this comment is only for emacs highlighting
- squote := '
- empty :=
- space := $(empty) $(empty)
- space_escape := _-_SPACE_-_
- any-prereq = $(filter-out $(PHONY),$?) $(filter-out $(PHONY) $(wildcard $^),$^)
- ifeq ($(KBUILD_VERBOSE),2)
- why = \
- $(if $(filter $@, $(PHONY)),- due to target is PHONY, \
- $(if $(wildcard $@), \
- $(if $(strip $(any-prereq)),- due to: $(any-prereq), \
- $(if $(arg-check), \
- $(if $(cmd_$@),- due to command line change, \
- $(if $(filter $@, $(targets)), \
- - due to missing .cmd file, \
- - due to $(notdir $@) not in $$(targets) \
- ) \
- ) \
- ) \
- ), \
- - due to target missing \
- ) \
- )
- echo-why = $(call escsq, $(strip $(why)))
- endif
- escsq = $(subst $(squote),'\$(squote)',$1)
- echo-cmd = $(if $($(quiet)cmd_$(1)),echo '$(call escsq,$($(quiet)cmd_$(1)))$(echo-why)';)
- cmd = @$(echo-cmd) $(cmd_$(1))
- .PHONY: $(PHONY)
|