]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/Makefile
release: 0.1.47
[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=.txt)
27 GROFFFILES = $(OUTPODFILES:.pod=.1)
28 HTMLFILES = $(OUTPODFILES:.pod=.html)
29 DVIFILES = $(addprefix $(outdir)/, $(DOCFILES:.doc=.dvi))
30
31
32 default: do-doc
33 #
34 # list of distribution files:
35 #
36 XPMS=$(wildcard *.xpm)
37 giffiles=$(XPMS:.xpm=.gif)
38
39 gifs: $(addprefix $(outdir)/, $(giffiles))
40
41
42 EXTRA_DISTFILES = $(XPMS)  $(DOCFILES)  vocabulary-data vocabulary-forms.el 
43
44 # don't do DVI files. They can only be made if lily is installed
45 do-doc: $(TEXTFILES)
46
47 html: $(HTMLFILES)
48
49 htmldist: html
50         $(lily_bindir)/make_website
51
52 dvi: $(DVIFILES)
53
54 # generic targets and rules:
55 #
56 include $(depth)/make/Targets.make
57 include $(depth)/make/Rules.make
58 #
59
60 localclean:
61         rm -f `find $(outdir) -type f`
62
63
64
65 MAN1FILES = lilypond convert-mudela mi2mu mudela-book
66 MAN1GROFF = $(addprefix $(outdir)/, $(addsuffix .1,$(MAN1FILES)))
67
68 localinstall: $(outdir)/lilypond.1
69         $(INSTALL) -d $(mandir)/man1
70         $(INSTALL) -m 644 $(MAN1GROFF) $(mandir)/man1
71
72
73 localuninstall:
74         (cd  $(mandir)/man1/; rm -f $(MAN1GROFF))
75
76
77