BUILD_LILYPOND = '$absbuild/lily/$out/lilypond ${__verbose}'
BUILD_LILYPOND_BOOK = '$PYTHON $srcdir/scripts/lilypond-book.py ${__verbose}'
+if env['verbose'] and env['verbose'] != '0':
+ env['__verbose'] = ' --verbose'
+ env['set__x'] = 'set -x;'
# post-option environment-update
env.Append (
libdir_package = libdir_package,
libdir_package_version = libdir_package_version,
- # global build verbosity switch
- ## __verbose = ' --verbose',
-
LILYPOND = BUILD_LILYPOND,
ABC2LY = BUILD_ABC2LY,
LILYPOND_BOOK = BUILD_LILYPOND_BOOK,
# FIXME: ParseConfig ignores -L flag?
env.Append (LINKFLAGS = ['-L/usr/X11R6/lib'])
-## UGH?
-if env['verbose'] and env['verbose'] <> '0':
- env['__verbose'] = ' --verbose'
- env['set__x'] = 'set -x;'
-
-
## Explicit target and dependencies
if 'clean' in COMMAND_LINE_TARGETS:
os.unlink (config_cache)
Exit (s)
-def symlink_tree ():
- print "BOE"
- raise urg
-
# Declare SConscript phonies
env.Alias ('minimal', config_cache)
env.BuildDir (b, d, duplicate = 0)
SConscript (os.path.join (b, 'SConscript'))
+env.Command ('tree', ['#/VERSION', '#/SConstruct'], symlink_tree)
AT_COPY = Builder (action = at_copy, src_suffix = ['.in', '.py', '.sh',])
env.Append (BUILDERS = {'AT_COPY': AT_COPY})
-def at_copy_ext (target, source, env):
- n = str (source[0])
- s = open (n).read ()
- for i in atvars:
- if env.has_key (i):
- s = string.replace (s, '@%s@'% i, env[i])
- # whugh
- e = os.path.splitext (n)[1]
- t = str (target[0]) + e
- open (t, 'w').write (s)
-
-AT_COPY_EXT = Builder (action = at_copy_ext, src_suffix = ['.py', '.sh',])
-env.Append (BUILDERS = {'AT_COPY_EXT': AT_COPY_EXT})
-
-
MO = Builder (action = 'msgfmt -o $TARGET $SOURCE',
suffix = '.mo', src_suffix = '.po')
env.Append (BUILDERS = {'MO': MO})