]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/Makefile
9f74fbb9a91b4208f1d6aa74f49d07c40f5c5996
[lilypond.git] / Documentation / Makefile
1 # Documentation/Makefile
2
3 # subdir level:
4 #
5 depth = ..
6 #
7
8 # identify module:
9 #
10 NAME = Documentation
11 MAJOR_VERSION = $(TOPLEVEL_MAJOR_VERSION)
12 MINOR_VERSION = $(TOPLEVEL_MINOR_VERSION)
13 PATCH_LEVEL = $(TOPLEVEL_PATCH_LEVEL)
14 # use to send patches, always empty for released version:
15 MY_PATCH_LEVEL = $(TOPLEVEL_MY_PATCH_LEVEL)
16 build = ./$(depth)/lily/$(outdir)/.build
17 #
18
19 # generic variables:
20 #
21 include ./$(depth)/make/Variables.make 
22 #
23
24 # list of source files:
25 #
26 PODFILES = $(shell ls *.pod)
27 OUTPODFILES = $(patsubst %,$(outdir)/%,$(PODFILES))
28 TEXTFILES = $(OUTPODFILES:.pod=.text)
29 GROFFFILES = $(OUTPODFILES:.pod=.1)
30 HTMLFILES = $(OUTPODFILES:.pod=.html)
31 #
32
33 # list of distribution files:
34 #
35 DISTFILES = $(PODFILES) Makefile lelie_logo.gif
36 #
37
38 default: do-doc
39
40 do-doc: $(TEXTFILES)
41
42 html: $(pod)
43         pod2html
44
45 htmldist: html
46         ./$(lily_bindir)/make_website
47
48
49 # generic targets and rules:
50 #
51 include ./$(depth)/make/Targets.make
52 include ./$(depth)/make/Rules.make
53 #
54
55 localclean:
56         rm -f $(TEXTFILES) $(HTMLFILES) $(GROFFFILES)
57
58 localinstall: $(outdir)/lilypond.1
59         $(INSTALL) -d $(mandir)/man1
60         $(INSTALL) -m 755 $< $(mandir)/man1
61
62 localuninstall:
63         rm -f $(mandir)/man1/lilypond.1