aboutsummaryrefslogtreecommitdiff
path: root/build/bootstrap.make
diff options
context:
space:
mode:
Diffstat (limited to 'build/bootstrap.make')
-rw-r--r--build/bootstrap.make33
1 files changed, 12 insertions, 21 deletions
diff --git a/build/bootstrap.make b/build/bootstrap.make
index 3078be4..733abef 100644
--- a/build/bootstrap.make
+++ b/build/bootstrap.make
@@ -27,22 +27,28 @@ $(call include,$(bld_root)/cxx/configuration.make)
# Aliases
#
.PHONY: $(out_base)/ \
- $(out_base)/.test \
- $(out_base)/.install \
+ $(out_base)/.dist \
$(out_base)/.clean \
$(out_base)/.cleandoc
ifdef %interactive%
-.PHONY: test install clean cleandoc
+.PHONY: dist clean cleandoc
-test: $(out_base)/.test
-install: $(out_base)/.install
-clean: $(out_base)/.clean
+dist: $(out_base)/.dist
+clean: $(out_base)/.clean
cleandoc: $(out_base)/.cleandoc
endif
+# Make sure the distribution prefix is set if the goal is dist.
+#
+ifneq ($(filter $(MAKECMDGOALS),dist),)
+ifeq ($(dist_prefix),)
+$(error dist_prefix is not set)
+endif
+endif
+
ifdef cxx_id
# It would be better to do these checks in the script once instead
@@ -69,25 +75,10 @@ endef
endif
-
# Don't include dependency info for certain targets.
#
ifneq ($(filter $(MAKECMDGOALS),clean cleandoc disfigure),)
include-dep =
endif
-# For install, don't include dependecies in examples, and tests.
-#
-ifneq ($(filter $(MAKECMDGOALS),install),)
-
-ifneq ($(subst $(src_root)/tests/,,$(src_base)),$(src_base))
-include-dep =
-endif
-
-ifneq ($(subst $(src_root)/examples/,,$(src_base)),$(src_base))
-include-dep =
-endif
-
-endif
-
.DEFAULT_GOAL := $(def_goal)