2007-09-23 22:19:06 -04:00
|
|
|
# We have to do some funny stuff here with the manpages. In order to ensure
|
|
|
|
# a dist tarball doesn't get put out there without manpages, we keep those
|
|
|
|
# files listed in EXTRA_DIST no matter what. However, we only add them to
|
2007-11-13 00:36:20 -05:00
|
|
|
# man_MANS if --enable-asciidoc and/or --enable-doxygen are used.
|
2007-09-23 22:19:06 -04:00
|
|
|
|
2007-07-06 16:54:18 -04:00
|
|
|
ASCIIDOC_MANS = \
|
2007-02-21 23:36:02 -05:00
|
|
|
pacman.8 \
|
|
|
|
makepkg.8 \
|
2007-07-09 14:22:01 -04:00
|
|
|
repo-add.8 \
|
2007-02-21 23:36:02 -05:00
|
|
|
PKGBUILD.5 \
|
|
|
|
makepkg.conf.5 \
|
|
|
|
pacman.conf.5 \
|
|
|
|
libalpm.3
|
2006-02-17 15:48:45 -05:00
|
|
|
|
2007-07-09 14:38:02 -04:00
|
|
|
DOXYGEN_MANS = $(wildcard man3/*.3)
|
2007-11-13 00:36:20 -05:00
|
|
|
|
|
|
|
man_MANS =
|
2006-02-17 15:48:45 -05:00
|
|
|
|
2007-09-23 22:19:06 -04:00
|
|
|
if USE_ASCIIDOC
|
2007-11-13 00:36:20 -05:00
|
|
|
man_MANS += $(ASCIIDOC_MANS)
|
|
|
|
endif
|
|
|
|
if USE_DOXYGEN
|
|
|
|
man_MANS += $(DOXYGEN_MANS)
|
2007-09-23 22:19:06 -04:00
|
|
|
endif
|
2007-07-09 14:38:02 -04:00
|
|
|
|
2007-07-01 17:55:44 -04:00
|
|
|
EXTRA_DIST = \
|
|
|
|
pacman.8.txt \
|
|
|
|
makepkg.8.txt \
|
2007-07-09 14:22:01 -04:00
|
|
|
repo-add.8.txt \
|
2007-07-01 17:55:44 -04:00
|
|
|
PKGBUILD.5.txt \
|
2007-07-06 11:30:53 -04:00
|
|
|
PKGBUILD-example.txt \
|
2007-07-01 17:55:44 -04:00
|
|
|
makepkg.conf.5.txt \
|
|
|
|
pacman.conf.5.txt \
|
|
|
|
libalpm.3.txt \
|
|
|
|
footer.txt \
|
2007-07-09 14:38:02 -04:00
|
|
|
Doxyfile \
|
2007-11-13 00:36:20 -05:00
|
|
|
$(ASCIIDOC_MANS) \
|
|
|
|
$(DOXYGEN_MANS)
|
2007-07-01 17:55:44 -04:00
|
|
|
|
|
|
|
# Files that should be removed, but which Automake does not know.
|
2007-07-09 14:38:02 -04:00
|
|
|
MOSTLYCLEANFILES = $(DOXYGEN_MANS) *.xml
|
2007-07-06 01:56:11 -04:00
|
|
|
|
2007-07-09 14:38:02 -04:00
|
|
|
if USE_DOXYGEN
|
2007-07-01 18:40:43 -04:00
|
|
|
all: doxygen.in
|
|
|
|
|
|
|
|
doxygen.in:
|
2007-10-14 18:29:32 -04:00
|
|
|
$(DOXYGEN) $(srcdir)/Doxyfile
|
2007-07-01 18:40:43 -04:00
|
|
|
endif
|
2007-02-22 22:23:06 -05:00
|
|
|
|
2007-07-09 14:38:02 -04:00
|
|
|
if USE_ASCIIDOC
|
|
|
|
ASCIIDOC_OPTS = \
|
|
|
|
-f asciidoc.conf \
|
|
|
|
-a pacman_version="$(PACKAGE_VERSION)" \
|
|
|
|
-a pacman_date="`date +%Y-%m-%d`" \
|
|
|
|
-a sysconfdir=$(sysconfdir)
|
2007-11-08 22:56:53 -05:00
|
|
|
A2X_OPTS = \
|
|
|
|
-d manpage \
|
|
|
|
-f manpage \
|
|
|
|
--xsltproc-opts='-param man.endnotes.list.enabled 0' \
|
|
|
|
--xsltproc-opts='-param man.endnotes.are.numbered 0'
|
2007-07-09 14:38:02 -04:00
|
|
|
|
2007-07-06 16:54:18 -04:00
|
|
|
$(ASCIIDOC_MANS):
|
2007-11-08 22:56:53 -05:00
|
|
|
a2x $(A2X_OPTS) --asciidoc-opts="$(ASCIIDOC_OPTS)" $@.txt
|
2007-02-22 22:23:06 -05:00
|
|
|
|
2007-07-06 16:54:18 -04:00
|
|
|
# These rules are due to the includes and files of the asciidoc text
|
|
|
|
$(ASCIIDOC_MANS): footer.txt
|
|
|
|
pacman.8: pacman.8.txt
|
|
|
|
makepkg.8: makepkg.8.txt
|
2007-07-09 14:22:01 -04:00
|
|
|
repo-add.8: repo-add.8.txt
|
2007-07-06 16:54:18 -04:00
|
|
|
PKGBUILD.5: PKGBUILD.5.txt PKGBUILD-example.txt
|
|
|
|
makepkg.conf.5: makepkg.conf.5.txt
|
|
|
|
pacman.conf.5: pacman.conf.5.txt
|
|
|
|
libalpm.3: libalpm.3.txt
|
2007-07-09 14:38:02 -04:00
|
|
|
endif
|
2007-07-06 11:30:53 -04:00
|
|
|
|
2007-06-04 17:49:09 -04:00
|
|
|
# vim:set ts=2 sw=2 noet:
|