]> git.donarmstrong.com Git - lilypond.git/commitdiff
lilypond-0.1.49
authorfred <fred>
Sun, 24 Mar 2002 20:06:55 +0000 (20:06 +0000)
committerfred <fred>
Sun, 24 Mar 2002 20:06:55 +0000 (20:06 +0000)
make/Makefile.am.wild [new file with mode: 0644]
make/Toplevel.make.in
mf/Rules.make [new file with mode: 0644]

diff --git a/make/Makefile.am.wild b/make/Makefile.am.wild
new file mode 100644 (file)
index 0000000..fe82501
--- /dev/null
@@ -0,0 +1,34 @@
+# 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) > $@
+
index c90d0805a4d40df5ee6f0c1bd549237a0286cc48..ac3e42ec287e91ad0dce67b5ba91e175a313a26e 100644 (file)
@@ -34,8 +34,9 @@ SUBDIRS = bin flower lib lily mf mi2mu debian\
 # 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)
@@ -55,7 +56,6 @@ INSTALL.txt: check-doc-deps check-mf-deps
        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 \
diff --git a/mf/Rules.make b/mf/Rules.make
new file mode 100644 (file)
index 0000000..9c6f867
--- /dev/null
@@ -0,0 +1,31 @@
+
+$(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
+