* GNUmakefile.in: Add libdir links for builddir runs.
* scripts/midi2ly.py: Add [lilypond_]libdir/python to path,
instead of datadir.
* make/substitute.make (ATVARIABLES): Add lilypond_libdir,
local_lilypond_libdir.
* config.make.in (lilypond_libdir): Add.
* stepmake/stepmake/substitute-rules.make:
* stepmake/stepmake/script-rules.make:
* stepmake/stepmake/python-module-rules.make:
* stepmake/aclocal.m4 (STEPMAKE_LIBDIR): Fixes from
lilypond-python-module patch.
config.status
configure
fonts
+lib
log
ls-R
ly2dvi.dir
out
out-www
share
-stepmake
tfm
tfm.[0-9]
+2002-12-28 Jan Nieuwenhuizen <janneke@gnu.org>
+
+ * .cvsignore: Remove stepmake (huh!?!), add lib.
+
+ * GNUmakefile.in: Add libdir links for builddir runs.
+
+ * scripts/midi2ly.py: Add [lilypond_]libdir/python to path,
+ instead of datadir.
+
+ * make/substitute.make (ATVARIABLES): Add lilypond_libdir,
+ local_lilypond_libdir.
+
+ * config.make.in (lilypond_libdir): Add.
+
+ * stepmake/stepmake/substitute-rules.make:
+ * stepmake/stepmake/script-rules.make:
+ * stepmake/stepmake/python-module-rules.make:
+ * stepmake/aclocal.m4 (STEPMAKE_LIBDIR): Fixes from
+ lilypond-python-module patch.
+
2002-12-27 Han-Wen Nienhuys <hanwen@cs.uu.nl>
* Documentation/user/refman.itely (Graphical interfaces): add note
$(builddir)/share/lilypond-force:
# Preparing LilyPond tree for builddir exec
- cd $(builddir) && rm -rf share lib
- mkdir -p $(builddir)/share/lilypond
+ cd $(builddir) && rm -rf lib share
mkdir -p $(builddir)/lib/lilypond
+ mkdir -p $(builddir)/share/lilypond
mkdir -p $(builddir)/share/lilypond/fonts
mkdir -p $(builddir)/share/lilypond/tex
cd $(builddir)/lib/lilypond && \
- ln -s ../../python/$(outconfbase) python.
+ ln -s ../../python/$(outconfbase) python
cd $(builddir)/share/lilypond && \
ln -s $(abs-srcdir)/ly ly && \
ln -s ../../mf/$(outconfbase) dvips && \
dnl aclocal.m4 -*-shell-script-*-
dnl WARNING WARNING WARNING
-dnl do not edit! this is aclocal.m4, generated from /home/rz/lilypond/lilypond/stepmake/aclocal.m4
+dnl do not edit! this is aclocal.m4, generated from /home/fred/lily/stepmake/aclocal.m4
dnl aclocal.m4 -*-shell-script-*-
dnl StepMake subroutines for configure.in
## ugh: cut & paste programming from datadir.
AC_DEFUN(STEPMAKE_LIBDIR, [
- if test "$datadir" = "\${prefix}/lib"; then
- datadir='${prefix}/lib'
+ if test "$libdir" = "\${exec_prefix}/lib"; then
+ libdir='${exec_prefix}/lib'
fi
- presome=${prefix}
- if test "$prefix" = "NONE"; then
+ presome=${exec_prefix}
+ if test "$exec_prefix" = "NONE"; then
presome=${ac_default_prefix}
fi
package_libdir=$libdir/$package
-
local_package_libdir=$package_libdir/$FULL_VERSION
build_package_libdir=$ugh_ugh_autoconf250_builddir/lib/$package
infodir = @infodir@
libdir = @libdir@
lilypond_datadir = @package_datadir@
+lilypond_libdir = @package_libdir@
local_lilypond_datadir = @local_package_datadir@
local_lilypond_libdir = @local_package_libdir@
localedir = @localedir@
date\
datadir\
lilypond_datadir\
+ lilypond_libdir\
local_lilypond_datadir\
+ local_lilypond_libdir\
localedir\
PACKAGE\
package\
################################################################
# Users of python modules should include this snippet.
#
-# If set, LILYPONDPREFIX must take prevalence
-# if datadir is not set, we're doing a build and LILYPONDPREFIX
-datadir = '@local_lilypond_datadir@'
-if not os.path.isdir (datadir):
- datadir = '@lilypond_datadir@'
-if os.environ.has_key ('LILYPONDPREFIX') :
- datadir = os.environ['LILYPONDPREFIX']
- while datadir[-1] == os.sep:
- datadir= datadir[:-1]
-
-sys.path.insert (0, os.path.join (datadir, 'python'))
+# This soon to be removed for: import lilypond.lilylib as ly
+libdir = '@local_lilypond_libdir@'
+if not os.path.isdir (libdir):
+ libdir = '@lilypond_libdir@'
+sys.path.insert (0, os.path.join (libdir, 'python'))
+
+
################################################################
import midi
elif commas < 0:
s = s + "," * -commas
- if and dump_dur (explicit_durations_p \
+ ## FIXME: compile fix --jcn
+ if (dump_dur and explicit_durations_p) \
or Duration.compare (self.duration,
- reference_note.duration)):
+ reference_note.duration):
s = s + self.duration.dump ()
reference_note = self
## ugh: cut & paste programming from datadir.
AC_DEFUN(STEPMAKE_LIBDIR, [
- if test "$datadir" = "\${prefix}/lib"; then
- datadir='${prefix}/lib'
+ if test "$libdir" = "\${exec_prefix}/lib"; then
+ libdir='${exec_prefix}/lib'
fi
- presome=${prefix}
- if test "$prefix" = "NONE"; then
+ presome=${exec_prefix}
+ if test "$exec_prefix" = "NONE"; then
presome=${ac_default_prefix}
fi
package_libdir=$libdir/$package
-
local_package_libdir=$package_libdir/$FULL_VERSION
build_package_libdir=$ugh_ugh_autoconf250_builddir/lib/$package
$(outdir)/%.pyc: $(outdir)/%.py
$(PYTHON) -c 'import py_compile; py_compile.compile ("$<")'
-$(outdir)/%.py: %.py
+$(outdir)/%.py: %.py $(builddir)/config.make
cat $< | sed $(sed-atvariables) > $@
chmod 755 $@
-$(outdir)/%: %.pl
+$(outdir)/%: %.pl $(builddir)/config.make
cat $< | sed $(sed-atvariables) > $@
chmod 755 $@
-$(outdir)/%: %.bash
+$(outdir)/%: %.bash $(builddir)/config.make
cat $< | sed $(sed-atvariables) > $@
chmod 755 $@
-$(outdir)/%: %.scm
+$(outdir)/%: %.scm $(builddir)/config.make
cat $< | sed $(sed-atvariables) > $@
chmod 755 $@
-$(outdir)/%: %.expect
+$(outdir)/%: %.expect $(builddir)/config.make
cat $< | sed $(sed-atvariables) > $@
chmod 755 $@
-$(outdir)/%: %.sh
+$(outdir)/%: %.sh $(builddir)/config.make
cat $< | sed $(sed-atvariables) > $@
chmod 755 $@
-$(outdir)/%: %.py
+$(outdir)/%: %.py $(builddir)/config.make
cat $< | sed $(sed-atvariables) > $@
chmod 755 $@
-$(outdir)/%: %.in
+$(outdir)/%: %.in $(builddir)/config.make
rm -f $@
cat $< | sed $(sed-atfiles) $(sed-atvariables) > $@