]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/Makefile
ea4a7be9c09669ea909f1290159030c66e846161
[lilypond.git] / Documentation / Makefile
1 # Documentation/Makefile
2
3 # subdir level:
4 #
5 depth = ..
6 #
7
8 # identify module:
9 #
10 NAME = Documentation
11
12 #
13
14 # generic variables:
15 #
16 include ./$(depth)/make/Variables.make 
17 include ./$(depth)/make/Version.make
18 include ./$(depth)/make/Files.make 
19 include ./Rules.make
20 #
21
22
23 #
24 DOCFILES = $(wildcard *.doc)
25 OUTPODFILES = $(addprefix $(outdir)/,$(PODFILES))
26 TEXTFILES = $(OUTPODFILES:.pod=.text)
27 GROFFFILES = $(OUTPODFILES:.pod=.1)
28 HTMLFILES = $(OUTPODFILES:.pod=.html)
29 DVIFILES = $(addprefix $(outdir)/, $(DOCFILES:.doc=.dvi))
30
31 #
32 # list of distribution files:
33 #
34 EXTRA_DISTFILES = lelie_icon.gif lelie_logo.gif  $(DOCFILES)
35
36 default: do-doc
37
38 # don't do DVI files. They can only be made if lily is installed
39 do-doc: $(TEXTFILES)
40
41 html: $(HTMLFILES)
42
43 htmldist: html
44         $(lily_bindir)/make_website
45
46 dvi: $(DVIFILES)
47
48 # generic targets and rules:
49 #
50 include $(depth)/make/Targets.make
51 include $(depth)/make/Rules.make
52 #
53
54 localclean:
55         rm -f out/*
56         rm -f $(TEXTFILES) $(HTMLFILES) $(GROFFFILES)
57
58 MAN1FILES = lilypond convert-mudela mi2mu mudela-book
59 MAN1GROFF = $(addprefix $(outdir)/, $(addsuffix .1,$(MAN1FILES)))
60
61 localinstall: $(outdir)/lilypond.1
62         $(INSTALL) -d $(mandir)/man1
63         $(INSTALL) -m 644 $(MAN1GROFF) $(mandir)/man1
64
65
66 localuninstall:
67         (cd  $(mandir)/man1/; rm -f $(MAN1GROFF))
68
69
70