]> git.donarmstrong.com Git - lilypond.git/blob - input/SConscript
(class New_slur): new file. Score based slur
[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 e = env.Copy ()
15 #outdir = os.path.join (env['build'], reldir, env['out'])
16
17 # examples = simple simple-song les-nereides puer-fragment wilhelmus paddy
18
19 stems = map (lambda x: os.path.splitext (x)[0], sources)
20 pdfs = map (e.LilyPond, stems)
21
22 abc_stems = map (lambda x: os.path.splitext (x)[0], abc_sources)
23 lys = map (e.Abc2ly, abc_stems)
24 pdfs = pdfs + map (e.LilyPond, lys)
25
26 LILYPOND_BIN = env['LILYPOND_BIN']
27
28 mfbuild = os.path.join (env['absbuild'], 'mf', env['out'])
29 e.Depends ('doc', mfbuild)
30 e.Depends ('doc', LILYPOND_BIN)
31
32 e.Alias ('doc', pdfs)
33 #e.Alias ('doc', 'example-1.pdf')
34
35 #testing
36 all_sources = ['SConscript',] + sources + abc_sources
37 x = env.Tar (env['tarball'], all_sources)