--- /dev/null
+# project LilyPond -- the musical typesetter
+# title zucht
+# file make/Makefile.am.dist
+#
+# Copyright (c) 1997 by
+# Jan Nieuwenhuizen <jan@digicash.com>
+# Han-Wen Nienhuys <hanwen@stack.nl>
+# ...your sort order here, or how to comment-out a comment
+
+IN_FILES = $(wildcard *.in)
+MAKE_FILES = $(wildcard *.make)
+EXTRA_DIST = Makefile.am.wild $(IN_FILES) $(MAKE_FILES) lilypond.spec lilypond.lsm lelievijver.lsm
+
+spec: $(outdir)/lilypond.spec
+
+rpmdocs = $(addprefix Documentation/, $(notdir $(shell ls ../Documentation/$(outdir)/*.txt)))\
+ BUGS TODO NEWS DEDICATION ANNOUNCE README
+rpmmudocs = $(addprefix Documentation/, $(notdir $(shell ls ../Documentation/*.doc)))
+rpmdvis = $(rpmmudocs:.doc=.dvi)
+rpmexamples = $(addprefix input/, $(notdir $(shell ls ../input/*.{ly,tex})))
+
+date = $(shell date '+%d%b%y'|tr a-z A-Z)
+
+SED_VERSION= sed 's!@TOPLEVEL_VERSION@!${TOPLEVEL_VERSION}!g'
+SED_DATE=sed 's!@DATE@!${date}!g'
+SED_EXAMPLES = sed 's!@EXAMPLE_LYS@!${rpmexamples} ${rpmmudocs}!g'
+SED_DOCS=sed 's!@TEXT_DOCS@!${rpmdocs}!g'
+
+lilypond.spec: lilypond.spec.in ../VERSION
+ cat $< | $(SED_VERSION) | $(SED_DOCS) | $(SED_EXAMPLES) > $@
+
+%.lsm: %.lsm.in ../VERSION
+ cat $< | $(SED_VERSION) | $(SED_DATE) > $@
+
# list of distribution files:
#
SCRIPTS = configure configure.in install-sh aclocal.m4
-README_FILES = BUGS DEDICATION ANNOUNCE-0.1 ANNOUNCE COPYING ONEWS NEWS README TODO \
- INSTALL.txt AUTHORS.txt
+README_FILES = BUGS DEDICATION ANNOUNCE-0.1 ANNOUNCE \
+ COPYING ONEWS NEWS README TODO \
+ INSTALL.txt AUTHORS.txt PATCHES.txt
EXTRA_DISTFILES = .dstreamrc mudela-mode.el VERSION $(README_FILES) $(SCRIPTS) $(SYMLINKS)
# do not dist ./Makefile (is copied from make/Toplevel.make)
rm -f INSTALL.txt
ln `$(FIND) ./ -name INSTALL.txt -print |head -1` .
-
# all machine generated junk resides in out/
distclean:
set -e; for i in `find . -type d -name 'out' -print`; do \
--- /dev/null
+
+$(outdir)/%.dvi: %.mf
+ mf $<
+ gftodvi $(basename $<)
+# mv $(basename $<).dvi $(outdir)
+ rm $(basename $<).*gf
+
+$(outdir)/%.log: %.mf
+ mf $<
+# mv $(@F) $@
+ rm $(basename $< ).*gf
+
+$(lyout)/%.ly $(texout)/%.tex: $(outdir)/%.log
+ $(PYTHON) $(depth)/bin/mf-to-table --ly $(lyout)/$(<F:.log=.ly) --tex $(texout)/$(<F:.log=.tex) $<
+
+$(MFDEPS): $(FONT_FILES)
+# do something silly to avoid barfs if python not installed.
+ echo > $@
+ $(PYTHON) $(depth)/bin/mf-deps $^ >> $@
+
+# silly workaround for stupid TeXs
+systempks:
+# irix 5.3
+# MakeTeXPK feta16 300 300 magstep\(0.0\)
+ set -e ; for a in $(FONT_FILES); do \
+ MakeTeXPK `basename $$a .mf` 300 300 magstep\(0.0\) ; \
+ mf "\mode=ljfour; input `basename $$a .mf`" ;\
+# mv -f `find . -name '*.tfm' -print -o -name '*gf' -print` out/ ; \
+ mv -f `find . -name '*.tfm' -print -o -name '*gf' -print` ; \
+ done
+