-.PHONY: tree-regen
-# FIXME: temporary hack: must regenerate after building fonts
-tree-regen:
- rm -rf $(builddir)/share
- make -C $(builddir) link-tree
-
-default: pfa_warning $(ALL_GEN_FILES) $(outdir)/emmentaler-20.otf tree-regen
-
-pfa_warning:
-ifneq ($(shell $(MFTRACE) --version | sed 's/ .*//'),mftrace)
- @echo ""
- @echo "ERROR: mftrace not found"
- @echo ""
- @echo "For obtaining PFA fonts, either install mftrace "
- @echo "(see http://www.xs4all.nl/~hanwen/mftrace/ ),"
- @echo "or try one of the following commands in this directory: "
- @echo ""
- @echo " make get-pfa "
- @echo " make get-rpm-pfa "
- @echo " make get-deb-pfa "
- @echo ""
- @echo "These commands will try to download the files from internet."
- @false
-endif
-
-
-debian-mirror=http://ftp.us.debian.org
-debian-package =lilypond_$(TOPLEVEL_VERSION)-1_i386.deb
-$(outdir)/$(debian-package):
- wget --passive-ftp -P $(outdir) $(debian-mirror)/debian/pool/main/l/lilypond/$(debian-package)
-
-get-deb-pfa: $(outdir)/$(debian-package)
- rm -rf $(outdir)/./usr
- ar p $< data.tar.gz | \
- tar -C $(outdir) -zvxf - '*.pfa'
- cp `find $(outdir)/usr/ -name '*.pfa'` $(outdir)/
-
-
-redhat-package=lilypond-$(TOPLEVEL_VERSION)-1.i386.rpm
-$(outdir)/$(redhat-package):
- wget --passive-ftp -P $(outdir) http://lilypond.org/download/binaries/Fedora-3/$(redhat-package)
-
-get-rpm-pfa: $(outdir)/$(redhat-package)
- cd $(outdir) ; rm -rf usr/ # (root alert!)
- cd $(outdir) ; rpm2cpio $(redhat-package) | cpio -uid '*.pfa'
- cp `find $(outdir)/usr/ -name '*.pfa'` $(outdir)/
-
-# change this dependency
-get-pfa: get-rpm-pfa
-
-
-##
-## todo: this also depends on .tfm, FIXME.
-$(outdir)/%.lisp $(outdir)/%.otf-gtable $(outdir)/%.enc $(outdir)/%.tex $(outdir)/%list.ly $(outdir)/%.dep: $(outdir)/%.log $(outdir)/%.tfm
- $(PYTHON) $(buildscript-dir)/mf-to-table.py --global-lisp=$(outdir)/$(<F:.log=.otf-gtable) --lisp=$(outdir)/$(<F:.log=.lisp) --outdir=$(outdir) --dep $(outdir)/$(<F:.log=.dep) --enc $(outdir)/$(<F:.log=.enc) --tex $(outdir)/$(<F:.log=.tex) --ly $(outdir)/$(<F:.log=list.ly) $<
-
-fontdir: $(addprefix $(outdir)/, lilypond.map lilypond.sfd private-fonts fonts.scale fonts.dir Fontmap.lily)
-
-
-$(outdir)/lilypond.map: GNUmakefile
- for i in $(FETA_FONTS); do echo $$i $$i '<'$$i.pfa; done > $@
- for i in $(STAFF_SIZES); do\
- echo "Emmentaler-$$i Emmentaler-$$i <emmentaler-$$i.cff.ps";\
- echo "PFAEmmentaler-$$i PFAEmmentaler-$$i <PFAemmentaler-$$i.pfa";\
- done >> $@
- echo "Aybabtu-Regular Aybabtu-Regular <aybabtu.cff.ps" >> $@
- echo "PFAAybabtu-Regular PFAAybabtu-Regular <aybabtu.cff.ps" >> $@
-#
-# FIXME: needed for make web on Debian/unstable -- not in any other .map file
- echo "FreeSans FreeSans <FreeSans.ttf" >> $@
- echo "Kochi-Gothic Kochi-Gothic <kochi-gothic.ttf" >> $@
-
-$(outdir)/Fontmap.lily: GNUmakefile
- for i in $(FETA_FONTS); do echo "/$$i ($$i.pfa);" ; done > $@
- for i in $(STAFF_SIZES); \
- do echo "/Emmentaler-$$i (emmentaler-$$i.cff.ps);" ; done \
- do echo "/PFAEmmentaler-$$i (PFAemmentaler-$$i.pfa);" ; done \
- >> $@
- echo "/Aybabtu (aybabtu.cff.ps);" >> $@
- echo "/PFAAybabtu (PFAaybabtu.pfa);" >> $@