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
12 all-local
: $(DOC_MAN1
) $(DOC_HTML
)
15 rm -f
*.xml
*.html
*.1
19 asciidoc
-b xhtml11
-d manpage
-f asciidoc.conf
-o
- $< >$@
+
23 asciidoc
-b docbook
-d manpage
-f asciidoc.conf
$<
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)
33 rm -f
$(DESTDIR
)$(man1dir)/$(DOC_MAN1
)
35 DISTFILES
= asciidoc.conf callouts.xsl Makefile tf.txt
37 dist-local
: dist-default