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)
22 PKGBUILD-example.txt \
31 # Files that should be removed, but which Automake does not know.
32 MOSTLYCLEANFILES = *.xml
33 MAINTAINERCLEANFILES = $(ASCIIDOC_MANS)
36 GIT_VERSION := $(shell sh -c 'git describe --abbrev=4 | sed s/^v//')-dirty
37 REAL_PACKAGE_VERSION = $(GIT_VERSION)
39 REAL_PACKAGE_VERSION = $(PACKAGE_VERSION)
44 dist_man_MANS = $(ASCIIDOC_MANS) repo-remove.8
47 man_MANS += $(DOXYGEN_MANS)
52 $(DOXYGEN) $(srcdir)/Doxyfile
58 -a pacman_version="$(REAL_PACKAGE_VERSION)" \
59 -a pacman_date="`date +%Y-%m-%d`" \
60 -a sysconfdir=$(sysconfdir)
64 --xsltproc-opts='-param man.endnotes.list.enabled 0' \
65 --xsltproc-opts='-param man.endnotes.are.numbered 0'
68 a2x $(A2X_OPTS) --asciidoc-opts="$(ASCIIDOC_OPTS)" $@.txt
70 # These rules are due to the includes and files of the asciidoc text
71 $(ASCIIDOC_MANS): asciidoc.conf footer.txt
72 pacman.8: pacman.8.txt
73 makepkg.8: makepkg.8.txt
74 repo-add.8: repo-add.8.txt
75 PKGBUILD.5: PKGBUILD.5.txt PKGBUILD-example.txt
76 makepkg.conf.5: makepkg.conf.5.txt
77 pacman.conf.5: pacman.conf.5.txt
78 libalpm.3: libalpm.3.txt
79 # this one is just a symlink
80 repo-remove.8: repo-add.8
81 ln -s repo-add.8 repo-remove.8
84 # vim:set ts=2 sw=2 noet: