+1.3.140.jcn1
+============
+
+* Moved ports section of mutopia to mutopia/ports. Fixed make bootstrapping. Added sync target, synced with www.mutopiaproject.org.
+
+1.3.139.jcn6
+============
+
+* Bugfix: ly2dvi sets footers, headers, tagline. Pagenumbering on by default.
+
+1.3.140
+=======
+
1.3.139.jcn5
============
# descent order into subdirectories:
#
-SUBDIRS = buildscripts scripts flower lily mf midi2ly po debian \
- Documentation ly input tex make mutopia intl $(builddir)/stepmake\
- ps scm
+SUBDIRS = buildscripts scripts flower lily mf midi2ly po \
+ Documentation ly input tex make intl ps scm \
+ debian $(builddir)/stepmake \
+ mutopia ports
#
SCRIPTS = configure aclocal.m4
MAJOR_VERSION=1
MINOR_VERSION=3
PATCH_LEVEL=140
-MY_PATCH_LEVEL=
+MY_PATCH_LEVEL=jcn1
# use the above to send patches: MY_PATCH_LEVEL is always empty for a
# released version.
+% A simple scale in LilyPond
+%
+% Type:
+%
+% ly2dvi example-1
+% xdvi example-1 # or your dvi viewer here
+%
\score {
\context Voice \notes\relative c {
c' d e f g a b c
-
- % A simple scale in Mudela.
- %
- % Type:
- %
- % ly2dvi example-1
- % xdvi example-1 # or your dvi viewer here
- %
- % For more elaborate examples see twinkle.ly, input/* and mutopia/*.
- %
- % A docmument on Mudela is under construction: Documentation/tex/mudela.doc
- % (available as .ps from the website too).
-
}
\paper { }
\midi { }
+% Some beamed and slurred notes of different taste in LilyPond
+%
+% Type:
+%
+% ly2dvi example-2
+% xdvi example-2 # or your dvi viewer here
+%
\score {
\context Voice \notes\relative c {
a''2 ~ c4( [e8 )e] [a,16 a a a]
-
- % Some beamed and slurred notes of different taste in Mudela.
- %
- % Type:
- %
- % ly2dvi example-2
- % xdvi example-2 # or your dvi viewer here
- %
- % For more elaborate examples see twinkle.ly, input/* and mutopia/*.
- %
- % A docmument on Mudela is under construction: Documentation/tex/mudela.doc
- % (available as .ps from the website too).
-
}
\paper { }
\midi { }
\midi{}
}
-% A full-mudela example with two staffs
+% A full example with two staffs
%
% Type:
%
% ly2dvi example-3
% xdvi example-3 # or your dvi viewer here
-%
-% For more elaborate examples see twinkle.ly, input/* and mutopia/*.
-%
-% A docmument on Mudela is under construction: Documentation/tex/mudela.doc
-% (available as .ps from the website too).
#
# Magic: find and include LilyPond's StepMake rules
#
-# 0: follow LILYPONDPREFIX
-# 1: try source tree
-# 2: try installed tree in $HOME
-# 3: try system installed tree
-#
-make-root=$(wildcard $(LILYPONDPREFIX)/make)
+# 0: try local tree
+# 1: follow LILYPONDPREFIX
+# 2: try source tree in home
+# 3: try installed tree in $HOME
+# 4: try system installed tree
+# 5: try system installed tree
+#
+make-root=$(wildcard $(depth)/make)
+make-root?=$(wildcard $(LILYPONDPREFIX)/make)
make-root?=$(wildcard $(HOME)/usr/src/lilypond/make)
+make-root?=$(wildcard $(HOME)/usr/share/lilypond/make)
make-root?=$(wildcard /usr/share/lilypond/make)
-make-root?=$(wildcard /usr/share/lilypond/make)
+make-root?=$(wildcard /usr/local/share/lilypond/make)
#make-root=<LilyPond's datadir>/make
ifneq ($(make-root),)
### some versions apparently choke on $(message)
@echo Making $@ from $<
endif
-
local-mutopia:
$(MAKE) examples="$(mutopia-examples)" PAPERSIZE=letter local-WWW $(mutopia-letter)
rm -f $(outdir)-letter/*
-local-help:
+local-help: local-mutopia-help
+
+local-mutopia-help:
@echo -e "\
<NAME> update $(outdir)/<NAME>.ps\n\
<NAME>-book update booklet $(outdir)/<NAME>-book.ps\n\
#
-
-#
-# mutopia-archive playground
-#
-
-
-# -> mutopia-vars.make
-MUTOPIA_MIRROR = http://www.mutopiaproject.org/ftp
-# ugh: doesn't work
-# mutopia-dir = $(pwd:%/mutopia/%=mutopia)
-mutopia-dir = $(shell pwd | sed 's@.*mutopia@@')
-wget-list = $(mutopia-examples:%=$(mutopia-dir)/%)
-
-local-remove-ly:
- -mv -f $(wildcard *.ly) $(outdir)
-
-remove-ly: local-remove-ly
- $(LOOP)
-
-local-download: $(mutopia-examples:%=%.ly)
- @echo downloading $<
-
-download: local-download
- $(LOOP)
-
-# -> mutopia-rules.make
-ifeq ($(zipped),)
-%.ly:
- wget $(MUTOPIA_MIRROR)/$(mutopia-dir)/$@
-else
-%.zip:
- wget $(MUTOPIA_MIRROR)/$(mutopia-dir)/$@
-
-%.ly: %-lys.zip
- unzip $<
-endif
-
-
--- /dev/null
+ifeq ($(zipped),)
+%.ly:
+ wget $(MUTOPIA_MIRROR)/$(mutopia-dir)/$@
+ $(MAKE) local-convert-ly
+else
+%.zip:
+ wget $(MUTOPIA_MIRROR)/$(mutopia-dir)/$@
+
+%.ly: %-lys.zip
+ unzip $<
+ $(MAKE) local-convert-ly
+endif
+
+%/GNUmakefile:
+ mkdir -p $(@D)
+ $(if $(shell grep '[.]ly' $(@D)/index.html), \
+ echo 'mutopia-examples = $(@D)' > $@, \
+ $(if $(shell grep '[.]zip' $(@D)/index.html), \
+ echo -e 'zipped = true\nmutopia-examples = $(@D)' > $@))
+ echo -e $(GNUmakefile) >> $@
+
+
--- /dev/null
+
+local-ly-clean:
+ -mv -f $(wildcard *.ly) $(outdir)
+
+ly-clean: local-ly-clean
+ $(LOOP)
+
+local-download: $(mutopia-examples:%=%.ly)
+ @echo downloading $<
+
+download: local-download
+ $(LOOP)
+
+#
+# Lots smarter would be to do one recursive wget, getting all index.html,
+# parse those with python script to setup tree.
+#
+local-sync:
+ wget --recursive --no-parent --level=1 --timestamping --dont-remove-listing --no-host-directories --accept=index.html $(MUTOPIA_MIRROR)/$(mutopia-dir)/
+# ugh
+# -mv ./ftp/$(mutopia-dir)/* .
+ cp -r ./ftp/$(mutopia-dir)/* .
+ rm -rf ./ftp
+ $(MAKE) 'dirs-before=$(dirs-before)' generate-GNUmakefiles
+
+#
+# should we dowload .ly and .zip just to fill-in tree?
+#
+sync: local-sync
+# wget --recursive --no-parent --timestamping --dont-remove-listing --no-host-directories --cut-dirs=2 --accept=foo $(MUTOPIA_MIRROR)/$(mutopia-dir)/
+ $(LOOP)
+
+generate-GNUmakefiles: $(dirs-after:%=%/GNUmakefile)
+
+# too time-consuming?
+# local-dist: local-ly-clean
+
+local-help: local-ports-help
+
+local-ports-help:
+ @echo -e "\
+ download download .lys from $(MUTOPIA_MIRROR)\n\
+ ly-clean move all .lys to $(outdir)\n\
+ sync generate missing parts of tree\n\
+"\
+
--- /dev/null
+
+# -> mutopia-vars.make
+MUTOPIA_MIRROR = http://www.mutopiaproject.org/ftp
+# ugh: doesn't work
+# mutopia-dir = $(pwd:%/mutopia/%=mutopia)
+mutopia-dir = $(shell pwd | sed 's@.*mutopia@@')
+
+
+wget-list = $(mutopia-examples:%=$(mutopia-dir)/%)
+
+dirs-ignore = GNUmakefile out out-% index.html ftp
+dirs-before = $(SUBDIRS)
+dirs-after = $(filter-out .,$(shell find . -maxdepth 1 -type d -not -name 'out*'))
+
+
+GNUmakefile = '\
+depth = $(depth)/..\n\
+include $$(depth)/ports/ports.make\n\
+'
+
+
-# mutopia/Makefile
-
-depth = ../../..
-
-SUBDIRS = concerto-in-e-major
-
-LOCALSTEPMAKE_TEMPLATES=mutopia
-
-include $(depth)/mutopia/mutopia.make
-
-# mutopia/Makefile
-
-depth = ../../../..
-
-SUBDIRS =
-
-LOCALSTEPMAKE_TEMPLATES=mutopia
-
-zipped = true
-mutopia-examples = concerto-in-e-major
-
-include $(depth)/mutopia/mutopia.make
-
-
-# mutopia/Makefile
-
-depth = ../../..
-
-SUBDIRS = bach-invention-01
-
-LOCALSTEPMAKE_TEMPLATES=mutopia
-
-include $(depth)/mutopia/mutopia.make
-
-# mutopia/Makefile
-
-depth = ../../../..
-
-SUBDIRS =
-
-LOCALSTEPMAKE_TEMPLATES=mutopia
-
-mutopia-examples = bach-invention-01
-
-include $(depth)/mutopia/mutopia.make
-
-
-# mutopia/Makefile
-
-depth = ../..
-
-SUBDIRS = BWV772 BWV1042
-
-LOCALSTEPMAKE_TEMPLATES=mutopia
-
-include $(depth)/mutopia/mutopia.make
-
copyright = "Public Domain";
maintainer = "Jan Nieuwenhuizen";
maintainer_email = "janneke@gnu.org";
- lastupdated = "2001/Mar/18";
+ lastupdated = "2001/Mar/19";
mutopiapublicdomain = "\\parbox{\hsize}{\\thefooter\\quad\\small
\\\\This music is part of the Mutopia project,
\\texttt{http://www.mutopiaproject.org/}\\\\It has been typeset
".\\\\Unrestricted modification and redistribution is permitted
and encouraged---copy this music and share it.}";
tagline = \mutopiapublicdomain;
- footer = "pre-Mutopia-2001/03/18-57";
+ footer = "Mutopia-2001/03/19-57";
}
SUBDIRS = J.S.Bach Coriolan F.Schubert D.Zipoli Hymns E.Satie
-# empty mutopia-archive dirs
-SUBDIRS += BachJS
-
LOCALSTEPMAKE_TEMPLATES=mutopia
-EXTRA_DIST_FILES = mutopia.make
-
-include $(depth)/mutopia/mutopia.make
+include $(depth)/make/stepmake.make
-# mutopia/mutopia.make
-
-#
-# Magic: find and include LilyPond's StepMake rules
-#
-# 0: follow LILYPONDPREFIX
-# 1: try source tree
-# 2: try installed tree in $HOME
-# 3: try system installed tree
-#
-make-root=$(wildcard $(LILYPONDPREFIX)/make)
-make-root?=$(wildcard $(HOME)/usr/src/lilypond/make)
-make-root?=$(wildcard /usr/share/lilypond/make)
-make-root?=$(wildcard /usr/share/lilypond/make)
-#make-root=<LilyPond's datadir>/make
-ifneq ($(make-root),)
-### some versions apparently choke on $(message)
-### $(message running from $(make-root))
-depth=$(make-root)/..
-LOCALSTEPMAKE_TEMPLATES=ly mutopia
-include $(make-root)/stepmake.make
-else
-$(error can't find LilyPond's stepmake installation)
-endif
-#
-
--- /dev/null
+# ports/Makefile
+
+depth = ..
+
+SUBDIRS = mutopia
+
+LOCALSTEPMAKE_TEMPLATES=mutopia
+
+EXTRA_DIST_FILES = ports.make README.ports
+
+# include $(depth)/make/stepmake.make
+include $(depth)/ports/ports.make
+
--- /dev/null
+
+Experimental portal to www.mutopiaproject.org
+
+Issue
+
+ make help
+
+to get started.
+
+
+TODO
+
+ * smarter sync target.
+
+ * flexible publish target, for home and www.mutopiaproject.org use.
+
+ * fine grained `make mutopia' targets. Currently, make mutopia
+ generates everything: dvi, ps, pngs, in a4 and letter formats.
+ Very useful for submitting to mutopia, but bit over the top otherwise.
+
+ * documentation: users should use the bootstrapping in make/ly.make
+ to generate mutopia submissions.
\ No newline at end of file
--- /dev/null
+ depth = ../../..
+ include $(depth)/ports/ports.make
+
--- /dev/null
+ depth = ../../../..
+ include $(depth)/ports/ports.make
+
--- /dev/null
+mutopia-examples = belle
+ depth = ../../../../..
+ include $(depth)/ports/ports.make
+
--- /dev/null
+ depth = ../../../..
+ include $(depth)/ports/ports.make
+
--- /dev/null
+zipped = true
+mutopia-examples = solo-cello-suite-ii
+ depth = ../../../../..
+ include $(depth)/ports/ports.make
+
--- /dev/null
+ depth = ../../../..
+ include $(depth)/ports/ports.make
+
--- /dev/null
+zipped = true
+mutopia-examples = concerto-in-e-major
+ depth = ../../../../..
+ include $(depth)/ports/ports.make
+
--- /dev/null
+ depth = ../../../..
+ include $(depth)/ports/ports.make
+
--- /dev/null
+zipped = true
+mutopia-examples = concerto-in-d-minor
+ depth = ../../../../..
+ include $(depth)/ports/ports.make
+
--- /dev/null
+ depth = ../../../..
+ include $(depth)/ports/ports.make
+
--- /dev/null
+mutopia-examples = bach-invention-01
+ depth = ../../../../..
+ include $(depth)/ports/ports.make
+
--- /dev/null
+ depth = ../../../..
+ include $(depth)/ports/ports.make
+
--- /dev/null
+mutopia-examples = wtk1-fugue1
+ depth = ../../../../..
+ include $(depth)/ports/ports.make
+
--- /dev/null
+mutopia-examples = wtk1-prelude1
+ depth = ../../../../..
+ include $(depth)/ports/ports.make
+
--- /dev/null
+ depth = ../../../..
+ include $(depth)/ports/ports.make
+
--- /dev/null
+mutopia-examples = wtk1-fugue2
+ depth = ../../../../..
+ include $(depth)/ports/ports.make
+
--- /dev/null
+mutopia-examples = wtk1-prae2
+ depth = ../../../../..
+ include $(depth)/ports/ports.make
+
--- /dev/null
+ depth = ../../../..
+ include $(depth)/ports/ports.make
+
--- /dev/null
+mutopia-examples = fugue_re_mineur_BWV851
+ depth = ../../../../..
+ include $(depth)/ports/ports.make
+
--- /dev/null
+ depth = ../../../..
+ include $(depth)/ports/ports.make
+
--- /dev/null
+mutopia-examples = wtk1-fugue9
+ depth = ../../../../..
+ include $(depth)/ports/ports.make
+
--- /dev/null
+mutopia-examples = wtk1-prelude9
+ depth = ../../../../..
+ include $(depth)/ports/ports.make
+
--- /dev/null
+ depth = ../../../..
+ include $(depth)/ports/ports.make
+
--- /dev/null
+mutopia-examples = wtk2-fugue2
+ depth = ../../../../..
+ include $(depth)/ports/ports.make
+
--- /dev/null
+mutopia-examples = Bach_Preludio_BWV997
+ depth = ../../../../..
+ include $(depth)/ports/ports.make
+
--- /dev/null
+ depth = ../../../..
+ include $(depth)/ports/ports.make
+
--- /dev/null
+mutopia-examples = bwv997-01prelude
+ depth = ../../../../..
+ include $(depth)/ports/ports.make
+
--- /dev/null
+mutopia-examples = bwv997-02fuga
+ depth = ../../../../..
+ include $(depth)/ports/ports.make
+
--- /dev/null
+mutopia-examples = bwv997-03sarabande
+ depth = ../../../../..
+ include $(depth)/ports/ports.make
+
--- /dev/null
+mutopia-examples = bwv997-04gigue
+ depth = ../../../../..
+ include $(depth)/ports/ports.make
+
--- /dev/null
+mutopia-examples = bwv997-05double
+ depth = ../../../../..
+ include $(depth)/ports/ports.make
+
--- /dev/null
+ depth = ../../../..
+ include $(depth)/ports/ports.make
+
--- /dev/null
+mutopia-examples = praludum-in-c-moll
+ depth = ../../../../..
+ include $(depth)/ports/ports.make
+
--- /dev/null
+ depth = ../../..
+ include $(depth)/ports/ports.make
+
--- /dev/null
+zipped = true
+mutopia-examples = chorale_1
+ depth = ../../../..
+ include $(depth)/ports/ports.make
+
--- /dev/null
+ depth = ../../..
+ include $(depth)/ports/ports.make
+
--- /dev/null
+mutopia-examples = Reg1_Suon1
+ depth = ../../../..
+ include $(depth)/ports/ports.make
+
--- /dev/null
+mutopia-examples = Reg1_Suon2
+ depth = ../../../..
+ include $(depth)/ports/ports.make
+
--- /dev/null
+mutopia-examples = Reg1_Suon3
+ depth = ../../../..
+ include $(depth)/ports/ports.make
+
--- /dev/null
+mutopia-examples = Reg1_Suon4
+ depth = ../../../..
+ include $(depth)/ports/ports.make
+
--- /dev/null
+mutopia-examples = Reg1_Suon5
+ depth = ../../../..
+ include $(depth)/ports/ports.make
+
--- /dev/null
+mutopia-examples = Reg1_Suon6
+ depth = ../../../..
+ include $(depth)/ports/ports.make
+
--- /dev/null
+ depth = ../../..
+ include $(depth)/ports/ports.make
+
--- /dev/null
+ depth = ../../../..
+ include $(depth)/ports/ports.make
+
--- /dev/null
+mutopia-examples = fur-elise
+ depth = ../../../../..
+ include $(depth)/ports/ports.make
+
--- /dev/null
+mutopia-examples = Benda_SonateG3
+ depth = ../../../..
+ include $(depth)/ports/ports.make
+
--- /dev/null
+ depth = ../../..
+ include $(depth)/ports/ports.make
+
--- /dev/null
+ depth = ../../../..
+ include $(depth)/ports/ports.make
+
--- /dev/null
+mutopia-examples = Pfeminor
+ depth = ../../../../..
+ include $(depth)/ports/ports.make
+
--- /dev/null
+ depth = ../../..
+ include $(depth)/ports/ports.make
+
--- /dev/null
+ depth = ../../..
+ include $(depth)/ports/ports.make
+
--- /dev/null
+ depth = ../../../..
+ include $(depth)/ports/ports.make
+
--- /dev/null
+mutopia-examples = carcassi-op60-01
+ depth = ../../../../..
+ include $(depth)/ports/ports.make
+
--- /dev/null
+mutopia-examples = carcassi-op60-03
+ depth = ../../../../..
+ include $(depth)/ports/ports.make
+
--- /dev/null
+mutopia-examples = carcassi-op60-08
+ depth = ../../../../..
+ include $(depth)/ports/ports.make
+
--- /dev/null
+mutopia-examples = carcassi-op60-15
+ depth = ../../../../..
+ include $(depth)/ports/ports.make
+
--- /dev/null
+ depth = ../../..
+ include $(depth)/ports/ports.make
+
--- /dev/null
+mutopia-examples = carulli-duet-in-g
+ depth = ../../../..
+ include $(depth)/ports/ports.make
+
--- /dev/null
+ depth = ../../..
+ include $(depth)/ports/ports.make
+
--- /dev/null
+ depth = ../../../..
+ include $(depth)/ports/ports.make
+
--- /dev/null
+zipped = true
+mutopia-examples = sonatina-36-1
+ depth = ../../../../..
+ include $(depth)/ports/ports.make
+
--- /dev/null
+zipped = true
+mutopia-examples = sonatina-36-2
+ depth = ../../../../..
+ include $(depth)/ports/ports.make
+
--- /dev/null
+zipped = true
+mutopia-examples = sonatina-36-3
+ depth = ../../../../..
+ include $(depth)/ports/ports.make
+
--- /dev/null
+zipped = true
+mutopia-examples = sonatina-36-4
+ depth = ../../../../..
+ include $(depth)/ports/ports.make
+
--- /dev/null
+ depth = ../../../..
+ include $(depth)/ports/ports.make
+
--- /dev/null
+mutopia-examples = unquietthoughts
+ depth = ../../../../..
+ include $(depth)/ports/ports.make
+
--- /dev/null
+ depth = ../../..
+ include $(depth)/ports/ports.make
+
--- /dev/null
+# ports/mutopia/Makefile
+
+depth = ../..
+
+include $(depth)/ports/ports.make
+
--- /dev/null
+ depth = ../../..
+ include $(depth)/ports/ports.make
+
--- /dev/null
+mutopia-examples = caromioben
+ depth = ../../../..
+ include $(depth)/ports/ports.make
+
--- /dev/null
+ depth = ../../..
+ include $(depth)/ports/ports.make
+
--- /dev/null
+mutopia-examples = maple
+ depth = ../../../..
+ include $(depth)/ports/ports.make
+
--- /dev/null
+ depth = ../../..
+ include $(depth)/ports/ports.make
+
--- /dev/null
+mutopia-examples = milan-pavan2
+ depth = ../../../..
+ include $(depth)/ports/ports.make
+
--- /dev/null
+ depth = ../../..
+ include $(depth)/ports/ports.make
+
--- /dev/null
+ depth = ../../../..
+ include $(depth)/ports/ports.make
+
--- /dev/null
+zipped = true
+mutopia-examples = horn-concerto-3
+ depth = ../../../../..
+ include $(depth)/ports/ports.make
+
--- /dev/null
+ depth = ../../..
+ include $(depth)/ports/ports.make
+
--- /dev/null
+ depth = ../../../..
+ include $(depth)/ports/ports.make
+
--- /dev/null
+mutopia-examples = caprice-24
+ depth = ../../../../..
+ include $(depth)/ports/ports.make
+
--- /dev/null
+ depth = ../../..
+ include $(depth)/ports/ports.make
+
--- /dev/null
+ depth = ../../../..
+ include $(depth)/ports/ports.make
+
--- /dev/null
+mutopia-examples = morceau-de-concert
+ depth = ../../../../..
+ include $(depth)/ports/ports.make
+
--- /dev/null
+ depth = ../../..
+ include $(depth)/ports/ports.make
+
--- /dev/null
+mutopia-examples = gnossienne_1
+ depth = ../../../..
+ include $(depth)/ports/ports.make
+
--- /dev/null
+mutopia-examples = gnossienne_2
+ depth = ../../../..
+ include $(depth)/ports/ports.make
+
--- /dev/null
+mutopia-examples = gnossienne_3
+ depth = ../../../..
+ include $(depth)/ports/ports.make
+
--- /dev/null
+mutopia-examples = gnossienne_4
+ depth = ../../../..
+ include $(depth)/ports/ports.make
+
--- /dev/null
+mutopia-examples = gnossienne_5
+ depth = ../../../..
+ include $(depth)/ports/ports.make
+
--- /dev/null
+mutopia-examples = gymnopedie_1
+ depth = ../../../..
+ include $(depth)/ports/ports.make
+
--- /dev/null
+mutopia-examples = gymnopedie_2
+ depth = ../../../..
+ include $(depth)/ports/ports.make
+
--- /dev/null
+mutopia-examples = gymnopedie_3
+ depth = ../../../..
+ include $(depth)/ports/ports.make
+
--- /dev/null
+mutopia-examples = AnSylvia
+ depth = ../../../../..
+ include $(depth)/ports/ports.make
+
--- /dev/null
+ depth = ../../../..
+ include $(depth)/ports/ports.make
+
--- /dev/null
+ depth = ../../..
+ include $(depth)/ports/ports.make
+
--- /dev/null
+ depth = ../../..
+ include $(depth)/ports/ports.make
+
--- /dev/null
+# mutopia/mutopia.make
+
+#
+# Magic: find and include LilyPond's StepMake rules
+#
+# 0: try local tree
+# 1: follow LILYPONDPREFIX
+# 2: try source tree in home
+# 3: try installed tree in $HOME
+# 4: try system installed tree
+# 5: try system installed tree
+#
+make-root=$(wildcard $(depth)/make)
+#
+make-root?=$(wildcard $(LILYPONDPREFIX)/make)
+make-root?=$(wildcard $(HOME)/usr/share/lilypond/make)
+make-root?=$(wildcard /usr/share/lilypond/make)
+make-root?=$(wildcard /usr/local/share/lilypond/make)
+# make-root=<LilyPond's datadir>/make
+
+ifeq ($(SUBDIRS),)
+SUBDIRS = $(filter-out .,$(shell find . -maxdepth 1 -type d -not -name 'out*'))
+endif
+
+ifneq ($(make-root),)
+LOCALSTEPMAKE_TEMPLATES=ports mutopia ly
+include $(make-root)/stepmake.make
+else
+$(error can't find LilyPond's stepmake installation)
+endif
+#
+
'''
TODO:
- * --dependencies
+ * check --dependencies
+
+ * move versatile taglines,
+
+ \header {
+ beginfooter=\mutopiaPD
+ endfooter=\tagline -> 'lily was here <version>'
+ }
+
+ * head/header tagline/endfooter
* dvi from lilypond .tex output? This is hairy, because we create dvi
from lilypond .tex *and* header output.
'latexheaders' : [],
'latexpackages' : ['geometry'],
'papersize' : [],
- 'pagenumber' : [],
+ 'pagenumber' : [1],
'textheight' : [],
'linewidth' : [],
'orientation' : []
linewidth = 597
s = s + '\geometry{width=%spt%s,headheight=2mm,headsep=0pt,footskip=2mm,%s}\n' % (linewidth, textheight, orientation)
- s= s + r'''
-\usepackage[latin1]{inputenc}
+ s = s + r'''
+\usepackage[latin1]{inputenc}
\input{titledefs}
\makeatletter
-\renewcommand{\@oddfoot}{\parbox{\textwidth}{\mbox{}\thefooter}}%%
+\renewcommand{\@oddfoot}{\parbox{\textwidth}{\mbox{}\makelilypondfooter}}%
'''
- if extra['pagenumber'] and extra['pagenumber'][-1]:
+
+ if extra['pagenumber'] and extra['pagenumber'][-1] and extra['pagenumber'][-1] != 'no':
s = s + r'''
- \renewcommand{\@oddhead}{\parbox{\textwidth}%%
- {\mbox{}\small\theheader\hfill\textbf{\thepage}}}%%'''
+\renewcommand{\@oddhead}{\parbox{\textwidth}%
+ {\mbox{}\small\makelilypondheader\hfill\textbf{\thepage}}}
+'''
else:
- s = s + '\\pagestyle{empty}'
-
- s = s + '\\begin{document}'
+ s = s + '\\pagestyle{empty}\n'
+
+ s = s + '\\makeatother\n'
+ s = s + '\\begin{document}\n'
+
first = 1
for t in tfiles:
s = s + one_latex_definition (t, first)
first = 0
-
+
+ s = s + r'''
+\makeatletter
+\renewcommand{\@oddfoot}{\parbox{\textwidth}{\mbox{}\lilypondtagline}}%
+\makeatother
+'''
s = s + '\\end{document}'
return s
\global\let\lilypondpiece\relax%
\global\let\mustmakelilypondpiecetitle\undefined%
}
+% header -- head ?
+\def\makelilypondheader
+{
+ \ifx\lilypondhead\undefined\else%
+ \parbox{\textwidth}{\mbox{}\lilypondhead}\fi
+}
+\def\makelilypondfooter
+{
+ \ifx\lilypondfooter\undefined\else%
+ \parbox{\textwidth}{\mbox{}\lilypondfooter}\fi
+}
\endinput