]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/man/GNUmakefile
5fd71fb08300889ec601a8c265e0cbdd99cd776b
[lilypond.git] / Documentation / man / GNUmakefile
1 # Documentation/man/Makefile
2
3 depth = ../..
4
5 STEPMAKE_TEMPLATES=documentation install-out
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 local-WWW: $(MANGROFF:.1=.html)
20         $(PYTHON) $(step-bindir)/ls-latex.py --package=$(topdir) --title 'Manual pages for LilyPond' $(YO_FILES) \
21           | sed "s!$(outdir)/!!g" > $(outdir)/index.html
22         $(PYTHON) $(step-bindir)/add-html-footer.py --package=$(topdir) $(outdir)/index.html