aboutsummaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2009-10-12 10:00:32 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2009-10-12 10:00:32 +0200
commit0ee7ed9b81b9c18a2af3133cba364b9dbec9bec5 (patch)
tree08cdd3f9309668acd021b338dea05f41eed183ee /build
parentd6ceed8279573277d92dd150d21ac01d7a6683dd (diff)
Build system cleanups
Diffstat (limited to 'build')
-rw-r--r--build/bootstrap.make24
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