]> git.donarmstrong.com Git - lilypond.git/commitdiff
*** empty log message ***
authorJan Nieuwenhuizen <janneke@gnu.org>
Tue, 13 Jul 2004 22:01:29 +0000 (22:01 +0000)
committerJan Nieuwenhuizen <janneke@gnu.org>
Tue, 13 Jul 2004 22:01:29 +0000 (22:01 +0000)
ChangeLog
Documentation/topdocs/SConscript
Documentation/user/SConscript
SConstruct
buildscripts/builder.py
flower/file-name.cc
input/SConscript
lily/SConscript

index eed9ba651a9b9d155d2ae9d95945ffd5a18196f3..676e116f436aa1ddc9d7ce3ed9d211faca77e287 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -5,7 +5,9 @@
 2004-07-13  Jan Nieuwenhuizen  <janneke@gnu.org>
 
        * SConstruct: Configure only pristine build tree or on user
-       request.  Cleanups.
+       request.  Cleanups.  Add Documentation/topdocs to subdirs.
+       Use checksums instead of timestamps.
+       (CheckYYCurrentBuffer): Return result.
 
        * Documentation/topdocs/SConscript: New file.
 
index e60da4f0a4c73dedc7fb7f3173eb84764a73c32d..26c2dc68df1cc24b2a519456288e57288067509a 100644 (file)
@@ -1,13 +1,8 @@
 # -*-python-*-
 
-import os
-
 Import ('env')
-telys = env['base_glob'] (env, '*.tely')
-texis = env['base_glob'] (env, '*.texi') + map (env.TEXI, telys)
-
+telys = env['glob'] (env, '*.tely')
+texis = env['glob'] (env, '*.texi') + map (env.TEXI, telys)
 htmls = map (env.HTML, texis)
-# map (env.HTML, ['AUTHORS.html',])
-# map (env.HTML, ['AUTHORS.texi',])
 env.Alias ('doc', htmls)
 
index 42c48085b74f941a1bf29ef1044275fb5941389c..3c1d1d5b9e1bb0956c1c6698be67dd3592535569 100644 (file)
@@ -4,32 +4,25 @@ import os
 import string
 
 Import ('env')
-sources = env['src_glob'] (env, '*.tely')
-pngs = env['src_glob'] (env, '*.png')
-
-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'])
+telys = env['glob'] (env, '*.tely')
+pngs = env['glob'] (env, '*.png')
 
 env.Depends ('lilypond.texi', env['LILYPOND_BIN'])
 env.Depends ('lilypond.texi', 'lilypond-internals.texi')
 
-png_stems = map (lambda x: os.path.splitext (x)[0], pngs)
-epss = map (env.Png2eps, png_stems)
+epss = map (env.Png2eps, pngs)
 env.Depends ('lilypond.texi', epss)
 
-lydir = Dir ('.').srcnode ().abspath + '/../../ly'
 env.Command ('lilypond-internals.texi', env['LILYPOND_BIN'],
             'cd ${TARGET.dir} \
             && LILYPONDPREFIX=$LILYPONDPREFIX $LILYPOND_BIN $__verbose \
-            $lydir/generate-documentation')
-
-doc_stems = map (lambda x: os.path.splitext (x)[0], sources)
-texis = map (env.TEXI, doc_stems)
-dvis = map (env.Texi2dvi, doc_stems)
-pss = map (env.PostScript, map (lambda x: x + '.dvi', doc_stems))
-pdfs = map (env.Dvi2pdf, doc_stems)
+            $srcdir/ly/generate-documentation')
 
+texis = map (env.TEXI, telys)
+dvis = map (env.Texi2dvi, telys)
+pss = map (env.PostScript, map (lambda x: x + '.dvi', telys))
+pdfs = map (env.Dvi2pdf, telys)
+infos = map (env.INFO, telys)
 
 def file_subst (file_name, find, subst):
        s = open (file_name).read ()
@@ -44,12 +37,13 @@ e = env.Copy ()
 e['usersrc'] = Dir ('.').srcnode ().abspath
 def url_fixup (target, source, env):
        file_subst (str (target[0]),
-                   '\.\./lilypond-internals', 'lilypond-internals/')
-a = ['$MAKEINFO -I$usersrc -I${SOURCE.dir} --html \
---css-include=$usersrc/../texinfo.css $__verbose \
+                   '../lilypond-internals', 'lilypond-internals/')
+a = ['$MAKEINFO -I$srcdir/Documenation/user -I${SOURCE.dir} --html \
+--css-include=$srcdir/Documentation/texinfo.css $__verbose \
 --output=${TARGET.dir} $SOURCE',
-     '$MAKEINFO -I$usersrc -I${SOURCE.dir} --html --no-split --no-headers \
-     --css-include=$usersrc/../texinfo.css $__verbose \
+     '$MAKEINFO -I$srcdir/Documentation/user -I${SOURCE.dir} --html \
+     --no-split --no-headers \
+     --css-include=$srcdir/Documentation/../texinfo.css $__verbose \
      --output=$TARGET $SOURCE',
      url_fixup,
      'ln -f ${SOURCE.dir}/*.png ${SOURCE.dir}/*.ly ${TARGET.dir}/']
index 7b627dac8b5e20fc1fa8595945c717145b7858d6..539a03cf7dfc81fc9e22be0c9c30c26f24364a49 100644 (file)
@@ -73,7 +73,8 @@ import shutil
 FOOSUMS = 1
 
 subdirs = ['flower', 'lily', 'mf', 'scm', 'ly', 'Documentation',
-          'Documentation/user', 'input', 'scripts', 'elisp',
+          'Documentation/user', 'Documentation/topdocs',
+          'input', 'scripts', 'elisp',
           'buildscripts', 'cygwin', 'debian']
 
 usage = r'''Usage:
@@ -217,10 +218,16 @@ if env['verbose']:
 #                                                  os.pathsep), })
 
 outdir = os.path.join (Dir (env['build']).abspath, env['out'])
+
+# This is interesting, version.hh is generated automagically, just in
+# time.  Is this a .h /.hh issue?  It seems to be, using config.hh (in
+# flower/file-name.cc) works.  Bug report to SCons or rename to
+# config.hh or both?
+# config_h = os.path.join (outdir, 'config.hh')
 config_h = os.path.join (outdir, 'config.h')
 version_h = os.path.join (outdir, 'version.hh')
-config_h = os.path.join (outdir, 'config.h')
-env.Alias ('config', config_h)
+
+env.Alias ('config', config_cache)
 
 
 ## Explicit dependencies
@@ -234,6 +241,7 @@ env.Alias ('doc',
            'Documentation/user',
            'Documentation/topdocs'])
 
+env.Depends (['lily', 'flower', 'all', '.'], config_h)
 env.Depends ('doc', ['lily', 'mf'])
 env.Depends ('input', ['lily', 'mf'])
 env.Depends ('doc', ['lily', 'mf'])
@@ -304,6 +312,7 @@ def configure (target, source, env):
                }
                };""", '.cc')
                context.Result (ret)
+               return ret
 
        conf = Configure (env, custom_tests = { 'CheckYYCurrentBuffer'
                                                : CheckYYCurrentBuffer })
@@ -409,12 +418,10 @@ if not os.path.exists (config_cache) \
        # always out of date, and that triggers recompiles, even when
        # using checksums?
        if FOOSUMS: #not env['checksums']:
-
                ## FIXME: Is this smart, using option cache for saving
                ## config.cache?  I cannot seem to find the official method.
                map (lambda x: opts.AddOptions ((x,)), config_vars)
                opts.Save (config_cache, env)
-
                env.Command (config_h, config_cache, config_header)
 
 # hmm?
index a9438ebcf4e87f5db0f35718cb39910a5d3216da..6253bde17e3e386bbef83383917bee42a206e295 100644 (file)
@@ -27,7 +27,7 @@ INFO = Builder (action = a, suffix = '.info', src_suffix = '.texi')
 env.Append (BUILDERS = {'INFO': INFO})
 
 a = '$MAKEINFO $__verbose $MAKEINFO_INCLUDES  --html --no-split --no-headers \
---css-include=#/Documentation/texinfo.css --output=$TARGET $SOURCE'
+--css-include=$srcdir/Documentation/texinfo.css --output=$TARGET $SOURCE'
 HTML = Builder (action = a, suffix = '.html', src_suffix = '.texi')
 env.Append (BUILDERS = {'HTML': HTML})
 
@@ -172,7 +172,7 @@ env['src_glob'] = src_glob
 
 def base_glob (env, s):
        return map (lambda x: os.path.splitext (x)[0], src_glob (env, s))
-env['base_glob'] = src_glob
+env['glob'] = base_glob
 
 atvars = [
 'BASH',
index c26562664a7f110186da76bc3ea75afd40961cca..8043fabc14f2045d1bcbed37e2db4f251e58a63b 100644 (file)
@@ -7,6 +7,7 @@
                  Jan Nieuwenhuizen <janneke@gnu.org>
 */
 
+//#include "config.hh"
 #include "config.h"
 #include <stdio.h>
 #include <errno.h>
index 1738e07d98070da55b0a801d15aaf391dfb88da2..d497dd2e888b864f70ddc9dc4421d2f79ee95632 100644 (file)
@@ -8,7 +8,7 @@ Import ('env')
 #abc = map (lambda x: os.path.splitext (x)[0], abc_sources)
 #lys = map (env.Abc2ly, abc)
 
-abcs = env['base_glob'] (env, '*.abc')
-lys = env['base_glob'] (env, '*.ly') + map (env.ABC, abcs)
+abcs = env['glob'] (env, '*.abc')
+lys = env['glob'] (env, '*.ly') + map (env.ABC, abcs)
 pdfs = map (env.LilyPond, lys)
 env.Alias ('doc', pdfs)
index 0564d6c939a0d83983ae16587e4d8be43cb7b3f3..d027ea99e0a867daf0c1a87c9515bccdec28f0c2 100644 (file)
@@ -9,16 +9,10 @@ e = env.Copy ()
 e.Append (YACCFLAGS = '-d')
 e.Append (CPPPATH = [outdir, '#/lily/include', '#/flower/include'])
 
-#e.Depends ('lexer.cc', 'parser.cc')
-#e.Depends ('my-lily-lexer.o', 'parser.cc')
-#e.Depends ('my-lily-parser.o', 'parser.cc')
-
-e.SideEffect ('parser.hh', 'parser.cc')
-e.Depends ('lexer.cc', 'parser.hh')
-e.Depends ('my-lily-lexer.o', 'parser.hh')
-e.Depends ('my-lily-parser.o', 'parser.hh')
-
-# map (e.Precious, ['parser.cc', 'lexer.cc', 'parser.hh'])
+e.Depends ('lexer.cc', 'parser.cc')
+e.Depends ('my-lily-lexer.o', 'parser.cc')
+e.Depends ('my-lily-parser.o', 'parser.cc')
+map (e.Precious, ['parser.cc', 'lexer.cc', 'parser.hh'])
 
 e.Append (LIBS = ['flower'])
 e.ParseConfig ('guile-config link')