X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Documentation%2FSConscript;h=5813e917118c1da50f2c059e8761aa916616500e;hb=732a5f2d7381f12d54898c59cc4bb44a11d94dd4;hp=ce873d728bc813ff21747b2fa5dfa68d40238a1a;hpb=d416249372bc7100c0c15beae471c570d0d45f85;p=lilypond.git diff --git a/Documentation/SConscript b/Documentation/SConscript index ce873d728b..5813e91711 100644 --- a/Documentation/SConscript +++ b/Documentation/SConscript @@ -1,52 +1,5 @@ # -*-python-*- -import glob -import os - -here = os.getcwd () -reldir = str (Dir ('.').srcnode ()) -os.chdir (reldir) -sources = glob.glob ('*.tely') + glob.glob ('user/*.tely') -os.chdir (here) - Import ('env') -e = env.Copy () -outdir = os.path.join (env['build'], reldir, env['out']) - -# Too late -e.Append (LILYPOND_BOOK_PATH = [os.path.join (env['srcdir'], reldir, 'user')]) -e['LILYPOND_BOOK_PATH'].append (os.path.join (env['srcdir'], reldir, 'user')) - - - -def verbose_opt (env, opt): - if env['verbose']: - return opt - return '' - -LILYPOND_BIN = env['LILYPOND_BIN'] -LILYPONDPREFIX = env['LILYPONDPREFIX'] - -# $(outdir)/lilypond-internals.nexi $(outdir)/lilypond-internals.texi: $(builddir)/lily/$(outconfbase)/lilypond-bin -# cd $(outdir) && $(builddir)/lily/$(outconfbase)/lilypond-bin --verbose $(abs-srcdir)/ly/generate-documentation -# rm -f $(outdir)/lilypond-internals.nexi -# -ln $(outdir)/lilypond-internals.texi $(outdir)/lilypond-internals.nexi - -e.Depends ('lilypond.texi', 'feta16list.ly') -e.Depends ('lilypond.texi', 'parmesan16list.ly') -e.Depends ('lilypond.texi', 'lilypond-internals.texi') - -e.Command ('lilypond-internals.texi', LILYPOND_BIN, - ('(cd $$(dirname $TARGET) && \ - LILYPONDPREFIX=%(LILYPONDPREFIX)s %(LILYPOND_BIN)s ' \ - + verbose_opt (env, ' --verbose') \ - + ' ' + os.path.join (env['srcdir'], 'ly/generate-documentation')\ - + ')') % vars ()) - -docs = e.Tely2pdf (sources) - -e.Alias ('doc', docs) +env.AT_COPY ('index.html.in') -#testing -all_sources = ['SConscript',] + sources -x = env.Tar (env['tarball'], all_sources)