]> git.donarmstrong.com Git - lilypond.git/blob - input/SConscript
*** empty log message ***
[lilypond.git] / input / SConscript
1 # -*-python-*-
2
3 import glob
4 import os
5
6 here = os.getcwd ()
7 reldir = str (Dir ('.').srcnode ())
8 os.chdir (reldir)
9 sources = glob.glob ('*.ly')
10 abc_sources = glob.glob ('*.abc')
11 os.chdir (here)
12
13 Import ('env')
14 #outdir = os.path.join (env['build'], reldir, env['out'])
15
16 # examples = simple simple-song les-nereides puer-fragment wilhelmus paddy
17
18 stems = map (lambda x: os.path.splitext (x)[0], sources)
19 abc_stems = map (lambda x: os.path.splitext (x)[0], abc_sources)
20 lys = map (env.Abc2ly, abc_stems)
21 examples = map (env.LilyPond, stems + abc_stems)
22 env.Alias ('doc', examples)
23
24 LILYPOND_BIN = env['LILYPOND_BIN']
25
26 mfbuild = os.path.join (env['absbuild'], 'mf', env['out'])
27 #e.Depends ('doc', 'fonts')
28 env.Depends ('doc', mfbuild)
29 env.Depends ('doc', LILYPOND_BIN)
30
31 #testing
32 all_sources = ['SConscript',] + sources + abc_sources
33 x = env.Tar (env['tarball'], all_sources)