]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/Makefile
79934bc758438b62bd28ba8dca8f79a455d02a79
[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 #
20
21 #
22 DOCFILES = $(wildcard *.doc)
23 OUTPODFILES = $(addprefix $(outdir)/,$(PODFILES))
24 TEXTFILES = $(OUTPODFILES:.pod=.text)
25 GROFFFILES = $(OUTPODFILES:.pod=.1)
26 HTMLFILES = $(OUTPODFILES:.pod=.html)
27 DVIFILES = $(addprefix $(outdir)/, $(DOCFILES:.doc=.dvi))
28
29 #
30 # list of distribution files:
31 #
32 EXTRA_DISTFILES = lelie_icon.gif lelie_logo.gif  $(DOCFILES)
33 default: do-doc
34
35 do-doc: $(TEXTFILES) $(DVIFILES)
36
37 html: $(HTMLFILES)
38
39 htmldist: html
40         ./$(lily_bindir)/make_website
41
42
43 # generic targets and rules:
44 #
45 include ./$(depth)/make/Targets.make
46 include ./$(depth)/make/Rules.make
47 #
48
49 localclean:
50         rm -f out/*
51         rm -f $(TEXTFILES) $(HTMLFILES) $(GROFFFILES)
52
53 MAN1FILES = lilypond convert-mudela mi2mu mudela-book
54 MAN1GROFF = $(addprefix $(outdir)/, $(addsuffix .1,$(MAN1FILES)))
55
56 localinstall: $(outdir)/lilypond.1 $(outdir)/mudela.5
57         $(INSTALL) -d $(mandir)/man5
58         $(INSTALL) -d $(mandir)/man1
59         $(INSTALL) -m 755 $(MAN1GROFF) $(mandir)/man1
60
61
62 localuninstall:
63         (cd  $(mandir)/man1/; rm -f $(MAN1GROFF))
64
65
66