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