vs2008.compile.fixes
[tfs.git] / docs / Makefile
blob639da82915b3d7028bc96f4c3daad5bf6dc8886f
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)/share/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 uninstall-local:
33 rm -f $(DESTDIR)$(man1dir)/$(DOC_MAN1)
35 DISTFILES= asciidoc.conf callouts.xsl Makefile tf.txt
37 dist-local: dist-default
39 test-local:
41 run-test-local: