]> git.donarmstrong.com Git - lilypond.git/blobdiff - Documentation/Makefile
release: 0.0.39-1
[lilypond.git] / Documentation / Makefile
index 0dc97f7dbe4a25d2b03293a2567a157e8c22b1c4..e95293e314d2206a27d98798a258c3e31792c041 100644 (file)
@@ -1,30 +1,53 @@
-PODS=README.pod CodingStyle.pod lilygut.pod lilyinput.pod error.pod\
-       faq.pod index.pod language.pod
-TXTS=$(PODS:.pod=.txt)
-MANS=$(PODS:.pod=.1)
-HTMLS=$(PODS:.pod=.html)
-DISTFILES=$(PODS) Makefile lelie_logo.png make_website
-
-
-default:
-       $(MAKE) -C .. doc
-
-doc: $(TXTS)
-
-dist:
-       ln $(DISTFILES) $(DDIR)/$(SUBDIR)
-clean:
-       rm -f $(TXTS) $(MANS)
-
-%.txt: %.1
-       groff -man -Tascii $< > $@
-
-%.1: %.pod
-       pod2man --center="LilyPond documentation" --section="0"\
-               --release="LilyPond $(MAJVER).$(MINVER).$(PATCHLEVEL)" $< > $@
+# Documentation/Makefile
+
+# subdir level:
+#
+depth = ..
+#
+
+# identify module:
+#
+NAME = Documentation
+MAJOR_VERSION = $(TOPLEVEL_MAJOR_VERSION)
+MINOR_VERSION = $(TOPLEVEL_MINOR_VERSION)
+PATCH_LEVEL = $(TOPLEVEL_PATCH_LEVEL)
+# use to send patches, always empty for released version:
+MY_PATCH_LEVEL = $(TOPLEVEL_MY_PATCH_LEVEL)
+build = ./$(depth)/lily/.build
+#
+
+# generic variables:
+#
+include ./$(depth)/make/Variables.make 
+#
+
+# list of source files:
+#
+PODFILES = $(shell ls *.pod)
+OUTPODFILES = $(patsubst %,$(outdir)/%,$(PODFILES))
+TEXTFILES = $(OUTPODFILES:.pod=.text)
+MANFILES = $(OUTPODFILES:.pod=.1)
+HTMLFILES = $(OUTPODFILES:.pod=.html)
+#
+
+# list of distribution files:
+#
+DISTFILES = $(PODFILES) Makefile lelie_logo.png
+#
+
+default: do-doc
+
+do-doc: $(TEXTFILES)
 
 html: $(pod)
        pod2html
 
 htmldist: html
-       make_website
+       ./$(bindir)/make_website
+
+# generic targets and rules:
+#
+include ./$(depth)/make/Targets.make
+include ./$(depth)/make/Rules.make
+#
+