-fontpaths:
- -ln -s $(depth)/mf/out dvips
- -mkdir -p fonts
- -rm fonts/source
- -ln -s ../$(depth)/mf fonts/source
- -ln -s ../$(depth)/mf/out fonts/afm
- -ln -s ../$(depth)/mf/out fonts/tfm
- -ln -s ../$(depth)/mf/out fonts/type1
+default: builddir-setup
+
+builddir-setup: $(depth)/$(builddir)/share/lilypond/$(TOPLEVEL_VERSION)-force
+
+$(depth)/$(builddir)/share/lilypond/$(TOPLEVEL_VERSION)-force:
+ # Preparing LilyPond tree for builddir exec
+ @cd $(depth)/$(builddir) && rm -rf share
+ @cd $(depth)/$(builddir) && mkdir -p share/lilypond
+ @cd $(depth)/$(builddir)/share/lilypond && mkdir -p $(TOPLEVEL_VERSION)
+ @cd $(depth)/$(builddir)/share/lilypond/$(TOPLEVEL_VERSION) && \
+ ln -s ../../../$(srcdir)/ly ly && \
+ ln -s ../../../mf/$(outconfbase) dvips && \
+ ln -s ../../../mf/$(outconfbase) afm && \
+ ln -s ../../../mf/$(outconfbase) tfm && \
+ ln -s ../../../$(srcdir)/mf && \
+ ln -s ../../../$(srcdir)/ps && \
+ ln -s ../../../$(srcdir)/scm && \
+ ln -s ../../../$(srcdir)/tex
+ @cd $(depth)/$(builddir)/share/lilypond/$(TOPLEVEL_VERSION) && \
+ mkdir fonts
+ @cd $(depth)/$(builddir)/share/lilypond/$(TOPLEVEL_VERSION)/fonts && \
+ ln -s ../../../../$(srcdir)/mf source && \
+ ln -s ../../../../mf/$(outconfbase) afm && \
+ ln -s ../../../../mf/$(outconfbase) tfm && \
+ ln -s ../../../../mf/$(outconfbase) type1