mfbuild = os.path.join (env['absbuild'], 'mf', env['out'])
lilybuild = os.path.join (env['absbuild'], 'lily', env['out'])
userbuild = os.path.join (env['absbuild'], 'Documentation/user', env['out'])
+
+# more of these? -- howto?
e.Depends ('lilypond.texi', os.path.join (mfbuild, 'feta16list.ly'))
e.Depends ('lilypond.texi', os.path.join (mfbuild, 'parmesan16list.ly'))
+# or these
+e.Depends ('doc', os.path.join (mfbuild, 'feta20.enc'))
+e.Depends ('doc', os.path.join (mfbuild, 'feta20.enc'))
+
e.Depends ('lilypond.texi', LILYPOND_BIN)
e.Depends ('lilypond.texi', 'lilypond-internals.texi')
-#e.Depends ('lilypond.texi', os.path.join (lilybuild, 'lilypond-bin'))
+
+e.Depends ('lilypond.texi', 'fonts')
png_stems = map (lambda x: os.path.splitext (x)[0], pngs)
epss = map (e.Png2eps, png_stems)
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 # without args builds all targets below ./
- # maybe catch this one and only build lily?
+ 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
# * 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)
+ ' --outdir=${TARGET.dir}'\
+ ' --afm=${TARGET.base}.afm' \
+ ' --enc=${TARGET.base}.enc' \
- + ' --tex=${TARGET.base}' \
+ + ' --tex=${TARGET.base}.tex' \
+ ' --ly=${TARGET.base}list.ly'\
+ ' ${TARGET.base}.log') % vars ()
afm = Builder (action = a, suffix = '.afm', src_suffix = '.log',
LILYPOND_BIN = env['LILYPOND_BIN']
mfbuild = os.path.join (env['absbuild'], 'mf', env['out'])
-e.Depends ('doc', mfbuild)
+e.Depends ('doc', 'fonts')
e.Depends ('doc', LILYPOND_BIN)
-
e.Alias ('doc', pdfs)
-#e.Alias ('doc', 'example-1.pdf')
#testing
all_sources = ['SConscript',] + sources + abc_sources
env.Alias ('install', afmdir)
env.Alias ('install', pfadir)
+map (lambda x: env.Alias ('fonts', x), t + a + p)
+map (lambda x: env.Alias ('mf', x), t + a + p)
+
#testing
all_sources = ['SConscript',] + sources
x = env.Tar (env['tarball'], all_sources)