Usage:
scons
+ scons lily # build lily
+
LILYPONDPREFIX=out-scons/usr/share/lilypond lily/out-scons/lilypond-bin
+ scons doc # build web doc
+
+ scons fonts # build all font stuff (split this? )
+
+XXX scons # without args builds all targets below ./
+XXX # maybe catch this one and only build lily?
+ scons / # builds all possible targets
scons install
scons -c # clean
# * separate environments?
# - compile environment checks headers and libraries
# - doc environment checks doc stuff
-#
-# * running from build-dir, without installing?
-# - scons will not install, if PREFIX lives outside of CWD
+# * - help for targets?
# - build symlink tree
-# + mimicking regular installation setup?
-# + use tweaked scons 'install' target?
# * commandline targets:
# - clean => -c
# - dist, tar => env.Tar
env = Environment ()
+# Without target arguments, build lily only
+if not COMMAND_LINE_TARGETS:
+ env.Default ('lily')
+
+# Target 'all' builds everything
+if 'all' in COMMAND_LINE_TARGETS:
+ env.Default ('lily', 'fonts', 'doc')
+
# put your favourite stuff in custom.py
opts = Options ('custom.py', ARGUMENTS)
#opts = Options (['config.cache', 'custom.py'], ARGUMENTS)