add.File.Excludes.manpage.text
[tfs.git] / docs / Makefile
blobf946c07dd42c9f0c34728f3b79a97828132420d6
1 thisdir = Documentation
2 include ../build/rules.make
4 DOC_MAN1=$(patsubst %.txt,%.1,$(wildcard *.txt))
5 DOC_HTML=$(patsubst %.txt,%.html,$(wildcard *.txt))
7 mandir?=$(prefix)/man
8 man1dir=$(mandir)/man1
10 INSTALL?=install
12 all-local: $(DOC_MAN1) $(DOC_HTML)
14 clean-local:
15 rm -f *.xml *.html *.1
17 %.html : %.txt
18 rm -f $@+ $@
19 asciidoc -b xhtml11 -d manpage -f asciidoc.conf -o - $< >$@+
20 mv $@+ $@
22 %.xml : %.txt
23 asciidoc -b docbook -d manpage -f asciidoc.conf $<
25 %.1 : %.xml
26 xmlto -m callouts.xsl man $<
28 install-local: $(DOC_MAN1) $(DOC_HTML)
29 $(INSTALL) -d -m755 $(DESTDIR)$(man1dir)
30 $(INSTALL) -m644 $(DOC_MAN1) $(DESTDIR)$(man1dir)
32 DISTFILES= asciidoc.conf callouts.xsl Makefile tf.txt
34 dist-local: dist-default