aboutsummaryrefslogtreecommitdiff
path: root/build/root.build
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-09-03 17:27:33 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-09-03 17:27:33 +0200
commit879d7e92d823c9dfe6fb3691541f30b662f2a510 (patch)
tree7b4705029c81f2b5decc16cc63cfc1a88e5c7ff3 /build/root.build
parent8622308eefe9a1d63bb4128548260d0ba3d50d7a (diff)
First take on new installation and upgrade instructions
Diffstat (limited to 'build/root.build')
-rw-r--r--build/root.build16
1 files changed, 13 insertions, 3 deletions
diff --git a/build/root.build b/build/root.build
index ac55324..b21d615 100644
--- a/build/root.build
+++ b/build/root.build
@@ -5,6 +5,16 @@
# Load common modules that are used by subproject so that they use common
# configuration.
#
-using cxx.config
-using c.config
-using? cli.config
+using cxx
+using c
+
+# Load the cli module but only if it's available. This way a distribution
+# that includes pre-generated files can be built without installing cli.
+#
+using? cli
+
+if! $cli.configured
+{
+ define cli: file
+ cli{*}: extension = cli
+}