summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2009-09-29 07:37:02 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2009-09-29 07:37:02 +0200
commit9bd4bd9addfab66088840d71d178cbf0ce82d5a7 (patch)
treead75eefb3fb9a377093170c96281c86996892e82 /build
parentb15e13889a03c4fb22a46d094fa6efa7e4ffbb74 (diff)
Add support for including bundled build
Diffstat (limited to 'build')
-rw-r--r--build/bootstrap.make11
1 files changed, 10 insertions, 1 deletions
diff --git a/build/bootstrap.make b/build/bootstrap.make
index c91578b..6fac682 100644
--- a/build/bootstrap.make
+++ b/build/bootstrap.make
@@ -5,7 +5,16 @@
project_name := XSD
-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
#