]> git.donarmstrong.com Git - lilypond.git/blobdiff - Documentation/Makefile
release: 0.1.43
[lilypond.git] / Documentation / Makefile
index 0dc97f7dbe4a25d2b03293a2567a157e8c22b1c4..48df92b09df5f5ec6701420b9cdbe7c31e8468aa 100644 (file)
@@ -1,30 +1,77 @@
-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
+# Documentation/Makefile
 
+# subdir level:
+#
+depth = ..
+#
 
-default:
-       $(MAKE) -C .. doc
+# identify module:
+#
+NAME = Documentation
 
-doc: $(TXTS)
+#
 
-dist:
-       ln $(DISTFILES) $(DDIR)/$(SUBDIR)
-clean:
-       rm -f $(TXTS) $(MANS)
+# generic variables:
+#
+include ./$(depth)/make/Variables.make 
+include ./$(depth)/make/Version.make
+include ./$(depth)/make/Files.make 
+include ./Rules.make
+#
 
-%.txt: %.1
-       groff -man -Tascii $< > $@
 
-%.1: %.pod
-       pod2man --center="LilyPond documentation" --section="0"\
-               --release="LilyPond $(MAJVER).$(MINVER).$(PATCHLEVEL)" $< > $@
+#
+DOCFILES = $(wildcard *.doc)
+OUTPODFILES = $(addprefix $(outdir)/,$(PODFILES))
+TEXTFILES = $(OUTPODFILES:.pod=.txt)
+GROFFFILES = $(OUTPODFILES:.pod=.1)
+HTMLFILES = $(OUTPODFILES:.pod=.html)
+DVIFILES = $(addprefix $(outdir)/, $(DOCFILES:.doc=.dvi))
 
-html: $(pod)
-       pod2html
+
+default: do-doc
+#
+# list of distribution files:
+#
+XPMS=$(wildcard *.xpm)
+giffiles=$(XPMS:.xpm=.gif)
+
+gifs: $(addprefix $(outdir)/, $(giffiles))
+
+
+EXTRA_DISTFILES = $(XPMS)  $(DOCFILES)  vocabulary-data vocabulary-forms.el 
+
+# don't do DVI files. They can only be made if lily is installed
+do-doc: $(TEXTFILES)
+
+html: $(HTMLFILES)
 
 htmldist: html
-       make_website
+       $(lily_bindir)/make_website
+
+dvi: $(DVIFILES)
+
+# generic targets and rules:
+#
+include $(depth)/make/Targets.make
+include $(depth)/make/Rules.make
+#
+
+localclean:
+       rm -f `find $(outdir)`
+
+
+
+MAN1FILES = lilypond convert-mudela mi2mu mudela-book
+MAN1GROFF = $(addprefix $(outdir)/, $(addsuffix .1,$(MAN1FILES)))
+
+localinstall: $(outdir)/lilypond.1
+       $(INSTALL) -d $(mandir)/man1
+       $(INSTALL) -m 644 $(MAN1GROFF) $(mandir)/man1
+
+
+localuninstall:
+       (cd  $(mandir)/man1/; rm -f $(MAN1GROFF))
+
+
+