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