+WWW:
+
+default: $(config_h) builddir-setup
+
+builddir-setup: $(builddir)/share/lilypond-force
+
+PO_FILES = $(wildcard $(srcdir)/po/*.po)
+HELP_CATALOGS = $(PO_FILES:$(srcdir)/po/%.po=%)
+CATALOGS = $(HELP_CATALOGS:lilypond=)
+
+$(builddir)/share/lilypond-force:
+# Preparing LilyPond tree for builddir exec
+ cd $(builddir) && rm -rf lib share
+ mkdir -p $(builddir)/lib/lilypond
+ mkdir -p $(builddir)/share/lilypond
+ mkdir -p $(builddir)/share/lilypond/fonts
+ mkdir -p $(builddir)/share/lilypond/tex
+ cd $(builddir)/lib/lilypond && \
+ ln -s ../../python/$(outconfbase) python
+ cd $(builddir)/share/lilypond && \
+ ln -s $(abs-srcdir)/ly ly && \
+ ln -s ../../mf/$(outconfbase) dvips && \
+ ln -s ../../mf/$(outconfbase) afm && \
+ ln -s ../../mf/$(outconfbase) tfm && \
+ ln -s $(abs-srcdir)/mf && \
+ ln -s $(abs-srcdir)/ps && \
+ ln -s ../../python/$(outconfbase) python && \
+ ln -s $(abs-srcdir)/scm
+ cd $(builddir)/share/lilypond/tex && \
+ ln -s $(abs-srcdir)/tex source && \
+ ln -s ../../../mf/$(outconfbase) generate
+ cd $(builddir)/share/lilypond/fonts && \
+ ln -s $(abs-srcdir)/mf source && \
+ ln -s ../../../mf/$(outconfbase) afm && \
+ ln -s ../../../mf/$(outconfbase) tfm && \
+ ln -s ../../../mf/$(outconfbase) type1
+ $(foreach i,$(CATALOGS), \
+ mkdir -p $(builddir)/share/locale/$i/LC_MESSAGES && \
+ cd $(builddir)/share/locale/$i/LC_MESSAGES && \
+ ln -fs ../../../../po/$(outconfbase)/$i.mo lilypond.mo &&) true
+ touch $@
+
+local-clean: builddir-setup-clean
+builddir-setup-clean:
+ cd $(builddir) && rm -rf share
+
+$(config_h): configure.in aclocal.m4
+#
+# this is to prevent people from getting
+# undefined symbols when we add them to config.h.in,
+# and they blindly run "cvs update; make".
+#
+ @echo
+ @echo ' *** $(config_h) is out of date'
+ @echo ' *** Remove it and rerun autogen:'
+ @echo ' rm $(config_h); ./autogen.sh'
+ @echo
+ @false