1 # We have to do some funny stuff here with the manpages. In order to ensure
2 # a dist tarball doesn't get put out there without manpages, we keep those
3 # files listed in EXTRA_DIST no matter what. However, we only add them to
4 # man_MANS if --enable-asciidoc and/or --enable-doxygen are used.
15 DOXYGEN_MANS = $(wildcard man3/*.3)
20 man_MANS += $(ASCIIDOC_MANS)
23 man_MANS += $(DOXYGEN_MANS)
31 PKGBUILD-example.txt \
40 # Files that should be removed, but which Automake does not know.
41 MOSTLYCLEANFILES = $(DOXYGEN_MANS) *.xml
47 $(DOXYGEN) $(srcdir)/Doxyfile
53 -a pacman_version="$(PACKAGE_VERSION)" \
54 -a pacman_date="`date +%Y-%m-%d`" \
55 -a sysconfdir=$(sysconfdir)
59 --xsltproc-opts='-param man.endnotes.list.enabled 0' \
60 --xsltproc-opts='-param man.endnotes.are.numbered 0'
63 a2x $(A2X_OPTS) --asciidoc-opts="$(ASCIIDOC_OPTS)" $@.txt
65 # These rules are due to the includes and files of the asciidoc text
66 $(ASCIIDOC_MANS): footer.txt
67 pacman.8: pacman.8.txt
68 makepkg.8: makepkg.8.txt
69 repo-add.8: repo-add.8.txt
70 PKGBUILD.5: PKGBUILD.5.txt PKGBUILD-example.txt
71 makepkg.conf.5: makepkg.conf.5.txt
72 pacman.conf.5: pacman.conf.5.txt
73 libalpm.3: libalpm.3.txt
76 # vim:set ts=2 sw=2 noet: