summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2009-10-11 18:35:19 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2009-10-11 18:35:19 +0200
commit98ce3d9f82847932f974b10841ccb77b3cba838f (patch)
treeb4987762ea041988d6ba60d5e8c1b08a969bd541 /build
parentc831e6282726bde7596050be13bc4afbf5d45488 (diff)
Add install target
Diffstat (limited to 'build')
-rw-r--r--build/bootstrap.make23
1 files changed, 20 insertions, 3 deletions
diff --git a/build/bootstrap.make b/build/bootstrap.make
index 684eaa1..204eaf2 100644
--- a/build/bootstrap.make
+++ b/build/bootstrap.make
@@ -26,11 +26,14 @@ $(call include,$(bld_root)/cxx/configuration.make)
# Aliases
#
+.PHONY: $(out_base)/ \
+ $(out_base)/.test \
+ $(out_base)/.install \
+ $(out_base)/.clean
+
ifdef %interactive%
-.PHONY: test $(out_base)/.test \
- install $(out_base)/.install \
- clean $(out_base)/.clean
+.PHONY: test install clean
test: $(out_base)/.test
install: $(out_base)/.install
@@ -64,4 +67,18 @@ ifneq ($(filter $(MAKECMDGOALS),clean 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)