-ALL-TAGS:
- etags $(shell find . $(src-ext:%=-name '*.%' -or) -false | grep -v '/out')
-
-local-WWW:
-
-web: local-web
-html-doc: web
-index: web
-
-local-WWW-clean: top-WWW-clean
-
-WWW-clean:
- $(MAKE) -C Documentation WWW-clean
- $(MAKE) -C input WWW-clean
-
-top-WWW-clean:
- cd $(builddir) && rm -f $(TOP_HTMLS) lily-[0-9]*.png
- $(SHELL) $(buildscript-dir)/clean-fonts.sh
-
-WWW:
-
-default: builddir-setup
-
-builddir-setup: $(builddir)/share/lilypond-force
-
-$(builddir)/share/lilypond-force:
- # Preparing LilyPond tree for builddir exec
- @echo Making $(builddir)/share
- @cd $(builddir) && rm -rf share
- @mkdir -p $(builddir)/share/lilypond
- @mkdir -p $(builddir)/share/lilypond/fonts
- @mkdir -p $(builddir)/share/lilypond/tex
- @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 $(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
-
-local-clean: builddir-setup-clean
-builddir-setup-clean:
- @cd $(builddir) && rm -rf share
+
+web-clean:
+ $(MAKE) out=www clean
+ $(MAKE) $(tree-share-prefix)/lilypond-force
+
+default: $(config_h) build-dir-setup
+
+build-dir-setup: $(tree-share-prefix)/lilypond-force
+
+PO_FILES = $(call src-wildcard,$(src-depth)/po/*.po)
+HELP_CATALOGS = $(PO_FILES:po/%.po=%)
+CATALOGS = $(HELP_CATALOGS:lilypond=)
+
+$(tree-share-prefix)/lilypond-force link-tree: GNUmakefile
+# Preparing LilyPond tree for build-dir exec
+ cd $(top-build-dir)/$(outbase) && rm -rf bin lib share
+ mkdir -p $(tree-bin)
+ mkdir -p $(tree-share-prefix)
+ ln -s $(TOPLEVEL_VERSION) $(tree-share-prefix-current)
+ mkdir -p $(tree-lib-prefix)
+ ln -s $(TOPLEVEL_VERSION) $(tree-lib-prefix-current)
+ mkdir -p $(tree-share-prefix)/dvips
+ mkdir -p $(tree-share-prefix)/elisp
+ mkdir -p $(tree-share-prefix)/fonts
+ mkdir -p $(tree-share-prefix)/fonts/otf
+ mkdir -p $(tree-share-prefix)/fonts/tfm
+ mkdir -p $(tree-share-prefix)/fonts/type1
+ mkdir -p $(tree-share-prefix)/fonts/svg
+ mkdir -p $(tree-share-prefix)/fonts/map
+ mkdir -p $(tree-share-prefix)/fonts/enc
+ mkdir -p $(tree-share-prefix)/tex
+ cd $(tree-bin) && \
+ ln -sf ../../lily/$(outconfbase)/lilypond . && \
+ for i in abc2ly convert-ly etf2ly lilypond-book lilypond-invoke-editor midi2ly musicxml2ly; \
+ do ln -sf ../../scripts/$(outconfbase)/$$i . ; done
+ cd $(tree-lib-prefix) && \
+ ln -s ../../../../python/$(outconfbase) python
+ cd $(tree-share-prefix) && \
+ ln -s $(top-src-dir)/ly ly && \
+ ln -s ../../../../mf mf && \
+ ln -s $(top-src-dir)/ps && \
+ ln -s ../../../../python/$(outconfbase) python && \
+ ln -s $(top-src-dir)/scm && \
+ ln -s $(top-src-dir)/scripts scripts
+ cd $(tree-share-prefix)/dvips && \
+ ln -s ./../../../mf/$(outconfbase) mf-out && \
+ ln -s $(top-src-dir)/ps
+ cd $(tree-share-prefix)/tex && \
+ ln -s $(top-src-dir)/tex source && \
+ ln -s ../../../../../tex/$(outconfbase) tex-out && \
+ ln -s ../../../../../mf/$(outconfbase) mf-out
+
+ cd $(tree-share-prefix)/fonts && \
+ ln -s $(top-src-dir)/mf source && \
+ true
+ -cd $(tree-share-prefix)/elisp && \
+ ln -sf ../../../../../../elisp/$(outconfbase)/lilypond-words.el . && \
+ ln -s $(top-src-dir)/elisp/*.el .
+ $(foreach i,$(CATALOGS), \
+ (mkdir -p $(tree-share)/locale/$i/LC_MESSAGES && \
+ cd $(tree-share)/locale/$i/LC_MESSAGES && \
+ ln -sf ../../../../../po/$(outconfbase)/$i.mo lilypond.mo) &&) true
+ touch $(tree-share-prefix)/lilypond-force
+
+$(tree-share-prefix)/mf-link-tree link-mf-tree: $(tree-share-prefix)/lilypond-force
+ -rm -f $(tree-share-prefix)/fonts/otf/* && \
+ rm -f $(tree-share-prefix)/fonts/svg/* && \
+ rm -f $(tree-share-prefix)/fonts/tfm/* && \
+ rm -f $(tree-share-prefix)/fonts/type1/* && \
+ cd $(tree-share-prefix)/fonts/otf && \
+ ln -s ../../../../../../mf/$(outconfbase)/*.otf .
+ -cd $(tree-share-prefix)/fonts/svg && \
+ ln -s ../../../../../../mf/$(outconfbase)/*.svg .
+ -cd $(tree-share-prefix)/fonts/tfm && \
+ ln -s ../../../../../../mf/$(outconfbase)/*.tfm .
+ -cd $(tree-share-prefix)/fonts/type1 && \
+ ln -s ../../../../../../mf/$(outconfbase)/*.pfa .
+
+TAGS.make: dummy
+ etags -o $@ $(find $(srcdir) -name 'GNUmakefile*' -o -name '*.make')
+
+local-clean: build-dir-setup-clean local-web-clean
+
+local-web-clean:
+ rm -rf $(outdir)/web-root/
+
+
+
+build-dir-setup-clean:
+ cd $(top-build-dir) && rm -rf share
+
+$(config_h): config.hh.in
+#
+# 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