]> git.donarmstrong.com Git - lilypond.git/blobdiff - SConstruct
* SConstruct:
[lilypond.git] / SConstruct
index 4a715c730b2076eed0ecbef49be3f982d2ed83f3..c73c4f05c08d63da60a720e58e8da6323666c27a 100644 (file)
@@ -5,7 +5,16 @@ Experimental scons (www.scons.org) building:
 
 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
@@ -31,12 +40,8 @@ prefix=os.path.join (os.environ['HOME'], 'usr', 'pkg', 'lilypond')
 #   * 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
@@ -54,6 +59,14 @@ import string
 
 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)