depth = ..
NAME = documentation
-SUBDIRS=man tex pictures topdocs ntweb
+SUBDIRS=man tex metadoc bibliography pictures topdocs ntweb
STEPMAKE_TEMPLATES=documentation
README_TOP_FILES=NEWS DEDICATION TODO ANNOUNCE-0.1 AIMS
INFO_FILES = $(wildcard $(outdir)/$(package).info*)
--- /dev/null
+# Documentation/tex/Makefile
+
+depth=../..
+
+DATA_FILES = $(wildcard *.data)
+datafiles = $(addprefix $(outdir)/,$(DATA_FILES:.data=.html))
+TEX_FILES = $(wildcard *.tex)
+DOC_FILES = $(wildcard *.doc)
+DVI_FILES = $(addprefix $(outdir)/,$(DOC_FILES:.doc=.dvi) $(YO_FILES:.yo=.dvi))
+OUT_BIB_FILES = $(addprefix $(outdir)/, $(BIB_FILES))
+
+# just include me
+YO_URG_FILES = $(wildcard *.yo-urg)
+
+OUTTEX_FILES = $(addprefix $(outdir)/, $(TEX_FILES))
+OUTDOC_FILES = $(addprefix $(outdir)/, $(DOC_FILES))
+EL_FILES = $(wildcard *.el)
+BIB_FILES= $(wildcard *.bib)
+EXTRA_DIST_FILES= $(BIB_FILES) $(DOC_FILES) $(DATA_FILES) $(EL_FILES) $(YO_URG_FILES) $(TEX_FILES) $(wildcard *.sty)
+HTML_FILES = $(addprefix $(outdir)/, $(YO_FILES:.yo=.html))
+PS_FILES = $(DVI_FILES:.dvi=.ps)
+
+STEPMAKE_TEMPLATES=tex documentation
+LOCALSTEPMAKE_TEMPLATES=lilypond mudela
+
+export BIBINPUTS:=$(shell pwd)//$(PATHSEP)$(BIBINPUTS)
+include $(depth)/make/stepmake.make
+
+
+
+
+
+
+dvi: $(OUT_BIB_FILES) $(DVI_FILES)
+
+ps: $(PS_FILES)
+
+# urg
+default:
+
+GENHTMLS = engraving colorado computer-notation
+OUTGENHTMLS = $(addprefix $(outdir)/, $(GENHTMLS:%=%.html))
+
+#urg should generalise and move Lilypond -> StepMake
+# URG. Lilypond specific. Move out.
+$(outdir)/%.html: %.data $(depth)/VERSION
+ $(PYTHON) $(step-bindir)/table-to-html.py --columns=7 --linesep='\r' --package=$(topdir) -o $@ $<
+ $(PYTHON) $(step-bindir)/add-html-footer.py --package=$(topdir) $@
+
+$(outdir)/%.tex: %.data $(depth)/VERSION
+ $(PYTHON) $(step-bindir)/table-to-html.py --columns=7 --linesep='\r' --package=$(topdir) -o $@ --latex $<
+
+
+
+local-WWW: $(HTML_FILES) $(OUTTEX_FILES:.tex=.ps.gz) $(OUTYO_FILES:.yo=.latex) $(OUTYO_FILES:.yo=.ps.gz) $(addprefix $(outdir)/, $(BIB_FILES:.bib=.html)) $(datafiles)
+ $(PYTHON) $(step-bindir)/ls-latex.py --package=$(topdir) --title 'LaTeX documents about design and implementation of LilyPond' \
+ $(YO_FILES) $(OUTYO_FILES:.yo=.latex) $(BIB_FILES) $(DOC_FILES) $(TEX_FILES)\
+ | sed "s!$(outdir)/!!g" > $(outdir)/index.html
+ $(PYTHON) $(step-bindir)/add-html-footer.py --package=$(topdir) $(outdir)/index.html
+
+$(outdir)/%.bib: %.bib
+ ln -f $< $@
+
+# ignore result since bib2html is nonstandard. Errors would halt the RPM build.j
+$(outdir)/%.html: %.bib
+ -bib2html $< $@
+
+# Yeah right:
+# make -k out/mudela.dvi => cp -f out/vocabulary.tex out/mudela.dvi
+
+#out/%: $(outdir)/%
+# cp -f $< $@
+
+locamlclean:
+ rm -f fonts.aux fonts.log feta*.tfm feta*.*pk
itemize(
it()url(Mudela)(../tex/DOEXPAND(outdir)/tutorial.html)
-it()url(TeX documents about LilyPond)(../tex/DOEXPAND(outdir)/index.html)
+it()url(User documentation)(../tex/DOEXPAND(outdir)/index.html)
+it()url(Hacker documentation)(../metadoc/DOEXPAND(outdir)/index.html)
it()url(Manual pages)(../man/DOEXPAND(outdir)/index.html)
+it()url(Bibliography)(../bibliography/DOEXPAND(outdir)/vocabulary.html)
it()url(Musical vocabulary)(../tex/DOEXPAND(outdir)/vocabulary.html)
)
--- /dev/null
+
+mailto(janneke@gnu.org)
+COMMENT(
+ (PIPETHROUGH(echo -n `date '+%d/%b/%y'|tr '[a-z]' '[A-Z]'`)())
+)
+manpage(LilyPond)
+ (1)
+ (1998)
+ (midi2ly)
+ (The LilyPond package)
+
+metalC(Automatically generated by yodl(1) from midi2ly.yo.)
+
+manpagename(midi2ly)(convert MIDI to bf(mudela)(5))
+
+manpagedescription()
+midi2ly translates a MIDI input file to Mudela (GNU LilyPond source
+format). midi2ly is part of the GNU LilyPond music typesetting package.
+
+manpagessynopsis()
+
+ midi2ly [options] midi-file
+
+manpageoptions()
+
+description(
+dit(-b, --no-quantify,)
+ Write exact durations, e.g.: `a4*385/384'.
+dit(-D, --debug,)
+ Print lots of debugging stuff.
+dit(-h, --help,)
+ Show a summary of usage.
+dit(-I, --include=file(DIR),)
+ Add DIR to search path.
+dit(-k, --key=ACC[:MINOR],)
+ Set default key. ACC > 0 sets number of sharps; ACC < 0 sets number
+ of flats. A minor key is indicated by ":1".
+dit(-n, --no-silly,)
+ Assume no plets or double dots, assume smallest (reciprocal) duration 16.
+dit(-o, --output=file(FILE),)
+ Set file(FILE) as default output.
+dit(-p, --no-plets,)
+ Assume no plets.
+dit(-q, --quiet,)
+ Be quiet.
+dit(-s, --smallest=N,)
+ Assume no shorter (reciprocal) durations than N.
+dit(-v, --verbose,)
+ Be verbose.
+dit(-w, --warranty,)
+ Show the warranty with which midi2ly comes. (It comes with bf(NO WARRANTY)!)
+dit(-x, --no-double-dots,)
+ Assume no double dotted notes.
+)
+
+manpagesection(DISCLAIMER)
+
+midi2ly is copyright 1996, 1997 by its authors. midi2ly is distributed
+as part of GNU LilyPond, under the terms of the GNU General Public
+License. midi2ly is provided without any warranty what so ever.
+midi2ly may be freely distributed. For further information consult
+the GNU General Public License, from the file file(COPYING).
+
+manpageseealso()
+
+description(
+dit(bf(lilypond)(1))
+ The GNU LilyPond music typesetter.
+dit(mudela-man)
+ On the input format. This is a LilyPond-enhanced LaTeX document.
+)
+
+manpageauthor()
+
+Please consult the documentation file file(AUTHORS) for more detailed
+information, and small contributions.
+
+nemail(Jan Nieuwenhuizen)(janneke@gnu.org), lurl(http://www.xs4all.nl/~jantien)
+
--- /dev/null
+# Documentation/tex/Makefile
+
+depth=../..
+
+DATA_FILES = $(wildcard *.data)
+datafiles = $(addprefix $(outdir)/,$(DATA_FILES:.data=.html))
+TEX_FILES = $(wildcard *.tex)
+DOC_FILES = $(wildcard *.doc)
+DVI_FILES = $(addprefix $(outdir)/,$(DOC_FILES:.doc=.dvi) $(YO_FILES:.yo=.dvi))
+OUT_BIB_FILES = $(addprefix $(outdir)/, $(BIB_FILES))
+
+# just include me
+YO_URG_FILES = $(wildcard *.yo-urg)
+
+OUTTEX_FILES = $(addprefix $(outdir)/, $(TEX_FILES))
+OUTDOC_FILES = $(addprefix $(outdir)/, $(DOC_FILES))
+EL_FILES = $(wildcard *.el)
+BIB_FILES= $(wildcard *.bib)
+EXTRA_DIST_FILES= $(BIB_FILES) $(DOC_FILES) $(DATA_FILES) $(EL_FILES) $(YO_URG_FILES) $(TEX_FILES) $(wildcard *.sty)
+HTML_FILES = $(addprefix $(outdir)/, $(YO_FILES:.yo=.html))
+PS_FILES = $(DVI_FILES:.dvi=.ps)
+
+STEPMAKE_TEMPLATES=tex documentation
+LOCALSTEPMAKE_TEMPLATES=lilypond mudela
+
+export BIBINPUTS:=$(shell pwd)//$(PATHSEP)$(BIBINPUTS)
+include $(depth)/make/stepmake.make
+
+
+
+
+
+
+dvi: $(OUT_BIB_FILES) $(DVI_FILES)
+
+ps: $(PS_FILES)
+
+# urg
+default:
+
+GENHTMLS = engraving colorado computer-notation
+OUTGENHTMLS = $(addprefix $(outdir)/, $(GENHTMLS:%=%.html))
+
+#urg should generalise and move Lilypond -> StepMake
+# URG. Lilypond specific. Move out.
+$(outdir)/%.html: %.data $(depth)/VERSION
+ $(PYTHON) $(step-bindir)/table-to-html.py --columns=7 --linesep='\r' --package=$(topdir) -o $@ $<
+ $(PYTHON) $(step-bindir)/add-html-footer.py --package=$(topdir) $@
+
+$(outdir)/%.tex: %.data $(depth)/VERSION
+ $(PYTHON) $(step-bindir)/table-to-html.py --columns=7 --linesep='\r' --package=$(topdir) -o $@ --latex $<
+
+
+
+local-WWW: $(HTML_FILES) $(OUTTEX_FILES:.tex=.ps.gz) $(OUTYO_FILES:.yo=.latex) $(OUTYO_FILES:.yo=.ps.gz) $(addprefix $(outdir)/, $(BIB_FILES:.bib=.html)) $(datafiles)
+ $(PYTHON) $(step-bindir)/ls-latex.py --package=$(topdir) --title 'LaTeX documents about design and implementation of LilyPond' \
+ $(YO_FILES) $(OUTYO_FILES:.yo=.latex) $(BIB_FILES) $(DOC_FILES) $(TEX_FILES)\
+ | sed "s!$(outdir)/!!g" > $(outdir)/index.html
+ $(PYTHON) $(step-bindir)/add-html-footer.py --package=$(topdir) $(outdir)/index.html
+
+$(outdir)/%.bib: %.bib
+ ln -f $< $@
+
+# ignore result since bib2html is nonstandard. Errors would halt the RPM build.j
+$(outdir)/%.html: %.bib
+ -bib2html $< $@
+
+# Yeah right:
+# make -k out/mudela.dvi => cp -f out/vocabulary.tex out/mudela.dvi
+
+#out/%: $(outdir)/%
+# cp -f $< $@
+
+locamlclean:
+ rm -f fonts.aux fonts.log feta*.tfm feta*.*pk
TEX_FILES = $(wildcard *.tex)
DOC_FILES = $(wildcard *.doc)
DVI_FILES = $(addprefix $(outdir)/,$(DOC_FILES:.doc=.dvi) $(YO_FILES:.yo=.dvi))
-OUT_BIB_FILES = $(addprefix $(outdir)/, $(BIB_FILES))
# just include me
YO_URG_FILES = $(wildcard *.yo-urg)
OUTTEX_FILES = $(addprefix $(outdir)/, $(TEX_FILES))
OUTDOC_FILES = $(addprefix $(outdir)/, $(DOC_FILES))
-EL_FILES = $(wildcard *.el)
-BIB_FILES= $(wildcard *.bib)
-EXTRA_DIST_FILES= $(BIB_FILES) $(DOC_FILES) $(DATA_FILES) $(EL_FILES) $(YO_URG_FILES) $(TEX_FILES) $(wildcard *.sty) testje.fly
+
+EXTRA_DIST_FILES= $(DOC_FILES) $(DATA_FILES) $(EL_FILES) $(YO_URG_FILES) $(TEX_FILES) testje.fly
HTML_FILES = $(addprefix $(outdir)/, $(YO_FILES:.yo=.html))
PS_FILES = $(DVI_FILES:.dvi=.ps)
STEPMAKE_TEMPLATES=tex documentation
LOCALSTEPMAKE_TEMPLATES=lilypond mudela
-export BIBINPUTS:=$(shell pwd)//$(PATHSEP)$(BIBINPUTS)
include $(depth)/make/stepmake.make
-dvi: $(OUT_BIB_FILES) $(DVI_FILES)
+dvi: $(DVI_FILES)
ps: $(PS_FILES)
$(outdir)/glossary.html: $(outdir)/glossary-table.html
-local-WWW: $(HTML_FILES) $(OUTDOC_FILES:.doc=.ps.gz) $(OUTTEX_FILES:.tex=.ps.gz) $(OUTYO_FILES:.yo=.latex) $(OUTYO_FILES:.yo=.ps.gz) $(addprefix $(outdir)/, $(BIB_FILES:.bib=.html)) $(datafiles)
+local-WWW: $(HTML_FILES) $(OUTDOC_FILES:.doc=.ps.gz) $(OUTTEX_FILES:.tex=.ps.gz) $(OUTYO_FILES:.yo=.latex) $(OUTYO_FILES:.yo=.ps.gz) $(datafiles)
$(PYTHON) $(step-bindir)/ls-latex.py --package=$(topdir) --title 'LaTeX documents about LilyPond' \
$(YO_FILES) $(OUTYO_FILES:.yo=.latex) $(BIB_FILES) $(DOC_FILES) $(TEX_FILES)\
| sed "s!$(outdir)/!!g" > $(outdir)/index.html
$(outdir)/%.bib: %.bib
ln -f $< $@
-# ignore result since bib2html is nonstandard. Errors would halt the RPM build.j
-$(outdir)/%.html: %.bib
- -bib2html $< $@
-
# Yeah right:
# make -k out/mudela.dvi => cp -f out/vocabulary.tex out/mudela.dvi
-
+% We're testing \mudelafile here.
c''4^"This! Is! A! Test!" d e
tar -C htmldocs -xzf out/htmldoc.tar.gz
#tar -C $RPM_BUILD_ROOT/tmp/lilypond-rpm-doc -xzf out/htmldoc.tar.gz
-strip lily/out/lilypond mi2mu/out/mi2mu
+strip lily/out/lilypond midi2ly/out/midi2ly
make prefix="$RPM_BUILD_ROOT/usr" install
# gzip -9fn $RPM_BUILD_ROOT/usr/info/* || true
/usr/bin/mudela-book
/usr/bin/ly2dvi
/usr/bin/lilypond
-/usr/bin/mi2mu
-/usr/man/man1/mi2mu.1
+/usr/bin/midi2ly
+/usr/man/man1/midi2ly.1
/usr/man/man1/lilypond.1
/usr/man/man1/mudela-book.1
/usr/man/man1/ly2dvi.1
--- /dev/null
+# title makefile for midi2ly
+# file midi2ly/Makefile
+
+depth = ..
+
+NAME = midi2ly
+MODULE_NAME = midi2ly
+
+SUBDIRS = include
+EXTRA_DIST_FILES += TODO
+MODULE_LIBS=$(depth)/lib $(depth)/flower
+STEPMAKE_TEMPLATES=c++ executable po
+
+include $(depth)/make/stepmake.make
+
+# explicit dependencies: (how to do auto?)
+#
+midi-lexer.l: $(outdir)/midi-parser.hh
+
+
+$(outdir)/midi2ly-version.o: $(outdir)/version.hh
+