aboutsummaryrefslogtreecommitdiff
path: root/build/bootstrap.make
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2009-09-29 07:38:05 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2009-09-29 07:38:05 +0200
commit4b01341c36e00ca6d7ce164345f90eb0e63542e7 (patch)
treeb096a082183ae82d98a99a43d6f462d7f6bfac3b /build/bootstrap.make
parenta668f1930ebc136d540f7678997e9b2342966d4f (diff)
Add support for including bundled build
Diffstat (limited to 'build/bootstrap.make')
-rw-r--r--build/bootstrap.make10
1 files changed, 9 insertions, 1 deletions
diff --git a/build/bootstrap.make b/build/bootstrap.make
index 66c0239..ee4aefb 100644
--- a/build/bootstrap.make
+++ b/build/bootstrap.make
@@ -5,8 +5,16 @@
project_name := XSD/e
-include build-0.3/bootstrap.make
+# First try to include the bundled bootstrap.make if it exist. If that
+# fails, let make search for the external bootstrap.make.
+#
+build := build-0.3
+
+-include $(dir $(lastword $(MAKEFILE_LIST)))../../$(build)/bootstrap.make
+ifeq ($(patsubst %build/bootstrap.make,,$(lastword $(MAKEFILE_LIST))),)
+include $(build)/bootstrap.make
+endif
# Configuration
#