aboutsummaryrefslogtreecommitdiff
path: root/build/bootstrap.make
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2010-09-06 14:26:25 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2010-09-06 14:26:25 +0200
commit921c4c14c2999a03b9e649b5c9adec73b5cae0de (patch)
treec3a0015286ded8b59f2f44fd7b22be2748e16098 /build/bootstrap.make
parent0f9123ae095d3da7f2fb55d95af49ec3aa0a9c17 (diff)
Add automake build support
Diffstat (limited to 'build/bootstrap.make')
-rw-r--r--build/bootstrap.make14
1 files changed, 12 insertions, 2 deletions
diff --git a/build/bootstrap.make b/build/bootstrap.make
index 12d3425..59a62a2 100644
--- a/build/bootstrap.make
+++ b/build/bootstrap.make
@@ -32,17 +32,27 @@ $(call include,$(bld_root)/cxx/configuration.make)
#
.PHONY: $(out_base)/ \
$(out_base)/.test \
+ $(out_base)/.dist \
$(out_base)/.clean
ifdef %interactive%
-.PHONY: test clean
+.PHONY: test dist clean
-test: $(out_base)/.test
+test: $(out_base)/.test
+dist: $(out_base)/.dist
clean: $(out_base)/.clean
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
+
# If we don't have dependency auto-generation then we need to manually
# make sure that ODB files are generated before C++ file are compiler.
# To do this we make the object files ($2) depend in order-only on