]> git.donarmstrong.com Git - lilypond.git/blobdiff - Documentation/essay/GNUmakefile
mass-link: handle filesystem crossing and support OS without link support
[lilypond.git] / Documentation / essay / GNUmakefile
index c93c9e062454b89f9cba92aef976d59ec4ead1d2..068109cdcfb59bd4f9fedd5a3ab145c4c827938a 100644 (file)
@@ -1,5 +1,40 @@
 depth = ../..
 
-LOCALSTEPMAKE_TEMPLATES = ly
+STEPMAKE_TEMPLATES=tex documentation
+LOCALSTEPMAKE_TEMPLATES = lilypond ly
+
+OUT_BIB_FILES = $(addprefix $(outdir)/, $(BIB_FILES))
+EXTRA_DIST_FILES= $(BIB_FILES) $(call src-wildcard,*.bst) 
+BIB_FILES= $(call src-wildcard,*.bib)
 
 include $(depth)/make/stepmake.make
+
+# we no longer create bibliography files in this subdir,
+# since it needs to be done in the main Documentation/ dir.
+# all the below can _probably_ be removed, but I haven't
+# examined it in detail.
+# I think this is just going to wait until we switch to waf.  -gp
+dvi: $(DVI_FILES) $(OUT_BIB_FILES)
+
+ps: $(PS_FILES)
+
+default:
+
+GENHTMLS = engraving colorado computer-notation
+OUTGENHTMLS = $(addprefix $(outdir)/, $(GENHTMLS:%=%.html))
+
+ifeq ($(out),www)
+#   temporary build fix; we don't know yet what's happening
+#   to the literature index.  -gp
+# local-WWW-2: $(addprefix $(outdir)/, $(BIB_FILES:.bib=.html) lit-index.html)
+endif
+
+$(outdir)/%.bib: %.bib
+       ln -f $< $@
+
+$(outdir)/%.html: %.bib
+       BSTINPUTS=$(src-dir) $(buildscript-dir)/bib2html -o $@ $<
+
+local-clean:
+       rm -f fonts.aux fonts.log feta*.tfm feta*.*pk
+