]> git.donarmstrong.com Git - lilypond.git/blobdiff - Documentation/Makefile
release: 0.0.57
[lilypond.git] / Documentation / Makefile
index ab7466ffe5b9f72bf5a70f0defdaebd68439d4f8..542425ec77452aa95b838f750d9b90d52d334cc0 100644 (file)
@@ -1,27 +1,69 @@
-PODS=README.pod CodingStyle.pod lilygut.pod lilyinput.pod error.pod\
-       faq.pod
-TXTS=$(PODS:.pod=.txt)
-MANS=$(PODS:.pod=.1)
-HTMLS=$(PODS:.pod=.html)
-DISTFILES=$(PODS) Makefile
+# 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 
+#
 
-%.txt: %.1
-       groff -man -Tascii $< > $@
+#
 
-%.1: %.pod
-       pod2man --center="LilyPond documentation" --section="0"\
-               --release="LilyPond $(MAJVER).$(MINVER).$(PATCHLEVEL)" $< > $@
+OUTPODFILES = $(addprefix $(outdir)/,$(PODFILES))
+TEXTFILES = $(OUTPODFILES:.pod=.text)
+GROFFFILES = $(OUTPODFILES:.pod=.1)
+HTMLFILES = $(OUTPODFILES:.pod=.html)
+#
 
-html: 
-       pod2html
\ No newline at end of file
+# list of distribution files:
+#
+EXTRA_DISTFILES = lelie_icon.gif lelie_logo.gif
+#
+
+default: do-doc
+       true
+do-doc: $(TEXTFILES)
+
+html: $(HTMLFILES)
+
+htmldist: html
+       ./$(lily_bindir)/make_website
+
+
+# generic targets and rules:
+#
+include ./$(depth)/make/Targets.make
+include ./$(depth)/make/Rules.make
+#
+
+localclean:
+       rm -f out/*
+       rm -f $(TEXTFILES) $(HTMLFILES) $(GROFFFILES)
+
+MAN1FILES = lilypond convert-mudela mi2mu
+MAN1GROFF = $(addprefix $(outdir)/, $(addsuffix .1,$(MAN1FILES)))
+
+bla:
+       echo $(MANGROFF)
+       echo $(MANFILES)
+
+localinstall: $(outdir)/lilypond.1 $(outdir)/mudela.5
+       $(INSTALL) -d $(mandir)/man5
+       $(INSTALL) -d $(mandir)/man1
+       $(INSTALL) -m 755 $(MAN1GROFF) $(mandir)/man1
+       $(INSTALL) -m 755 $(outdir)/mudela.5 $(mandir)/man5
+
+localuninstall:
+       rm -f $(mandir)/man1/lilypond.1
+       rm -f $(mandir)/man1/convert-mudela.1