]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/man/Makefile
a3157a3eb9c6334d689a50e4a615af1bb2b1ec17
[lilypond.git] / Documentation / man / Makefile
1 # Documentation/man/Makefile
2
3 depth = ../..
4
5 include $(depth)/make/Stepmake.make 
6
7 include $(stepdir)/Documentation.vars.make
8 include $(stepdir)/Documentation_rules.make
9
10 SECTION=1
11 MANTXT = $(addprefix $(outdir)/, $(addsuffix .txt,$(basename $(TEXINFO_FILES) .texinfo)))
12 MANGROFF = $(addprefix $(outdir)/, $(addsuffix .$(SECTION),$(basename $(YO_FILES) .yo)))
13
14 OUTTEXINFO_FILES= $(addprefix $(outdir)/, $(addsuffix .texinfo,$(basename $(YO_FILES) .yo)))
15
16 default: $(MANTXT) $(MANGROFF)
17
18 texinfo: $(OUTTEXINFO_FILES)
19
20 INSTALLATION_OUT_FILES=$(MANGROFF)
21 INSTALLATION_OUT_DIR=$(mandir)/man$(SECTION)
22
23 include $(stepdir)/Install_outfiles.make
24
25 local-WWW: $(MANGROFF:.1=.html)
26         $(PYTHON) $(step-bindir)/ls-latex.py --package=$(topdir) --title 'Manual pages for LilyPond' $(YO_FILES) \
27           | sed "s!$(outdir)/!!g" > $(outdir)/index.html
28         $(PYTHON) $(step-bindir)/add-html-footer.py --package=$(topdir) $(outdir)/index.html