diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2009-10-12 10:00:32 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2009-10-12 10:00:32 +0200 |
commit | 0ee7ed9b81b9c18a2af3133cba364b9dbec9bec5 (patch) | |
tree | 08cdd3f9309668acd021b338dea05f41eed183ee /build | |
parent | d6ceed8279573277d92dd150d21ac01d7a6683dd (diff) |
Build system cleanups
Diffstat (limited to 'build')
-rw-r--r-- | build/bootstrap.make | 24 |
1 files changed, 10 insertions, 14 deletions
diff --git a/build/bootstrap.make b/build/bootstrap.make index 25dc2d8..549fe5b 100644 --- a/build/bootstrap.make +++ b/build/bootstrap.make @@ -18,33 +18,29 @@ endif # Aliases # +.PHONY: $(out_base)/ \ + $(out_base)/.test \ + $(out_base)/.clean + ifdef %interactive% -.PHONY: test $(out_base)/.test \ - clean $(out_base)/.clean +.PHONY: test clean test: $(out_base)/.test clean: $(out_base)/.clean -ifeq ($(.DEFAULT_GOAL),test) +ifneq ($(filter $(.DEFAULT_GOAL),test clean),) .DEFAULT_GOAL := endif -ifeq ($(.DEFAULT_GOAL),clean) -.DEFAULT_GOAL := endif -endif - -# Don't include dependency info if we are cleaning. +# Don't include dependency info for certain targets. # define include-dep -endef - -ifneq ($(MAKECMDGOALS),clean) -ifneq ($(MAKECMDGOALS),disfigure) -define include-dep $(call -include,$1) endef -endif + +ifneq ($(filter $(MAKECMDGOALS),clean cleandoc disfigure),) +include-dep = endif |