2007-09-23 19:19:06 -07: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
|
|
|
|
# man_MANS if --enable-asciidoc was used.
|
|
|
|
|
2007-07-06 13:54:18 -07:00
|
|
|
ASCIIDOC_MANS = \
|
2007-02-21 20:36:02 -08:00
|
|
|
pacman.8 \
|
|
|
|
makepkg.8 \
|
2007-07-09 11:22:01 -07:00
|
|
|
repo-add.8 \
|
2007-02-21 20:36:02 -08:00
|
|
|
PKGBUILD.5 \
|
|
|
|
makepkg.conf.5 \
|
|
|
|
pacman.conf.5 \
|
|
|
|
libalpm.3
|
2006-02-17 12:48:45 -08:00
|
|
|
|
2007-07-09 11:38:02 -07:00
|
|
|
if USE_DOXYGEN
|
|
|
|
DOXYGEN_MANS = $(wildcard man3/*.3)
|
2006-02-20 12:08:24 -08:00
|
|
|
endif
|
2006-02-17 12:48:45 -08:00
|
|
|
|
2007-09-23 19:19:06 -07:00
|
|
|
if USE_ASCIIDOC
|
2007-07-09 11:38:02 -07:00
|
|
|
man_MANS = $(ASCIIDOC_MANS) $(DOXYGEN_MANS)
|
2007-09-23 19:19:06 -07:00
|
|
|
else
|
|
|
|
man_MANS = $(DOXYGEN_MANS)
|
|
|
|
endif
|
2007-07-09 11:38:02 -07:00
|
|
|
|
2007-07-01 14:55:44 -07:00
|
|
|
EXTRA_DIST = \
|
|
|
|
pacman.8.txt \
|
|
|
|
makepkg.8.txt \
|
2007-07-09 11:22:01 -07:00
|
|
|
repo-add.8.txt \
|
2007-07-01 14:55:44 -07:00
|
|
|
PKGBUILD.5.txt \
|
2007-07-06 08:30:53 -07:00
|
|
|
PKGBUILD-example.txt \
|
2007-07-01 14:55:44 -07:00
|
|
|
makepkg.conf.5.txt \
|
|
|
|
pacman.conf.5.txt \
|
|
|
|
libalpm.3.txt \
|
|
|
|
footer.txt \
|
2007-07-09 11:38:02 -07:00
|
|
|
Doxyfile \
|
|
|
|
$(ASCIIDOC_MANS)
|
2007-07-01 14:55:44 -07:00
|
|
|
|
|
|
|
# Files that should be removed, but which Automake does not know.
|
2007-07-09 11:38:02 -07:00
|
|
|
MOSTLYCLEANFILES = $(DOXYGEN_MANS) *.xml
|
2007-07-05 22:56:11 -07:00
|
|
|
|
2007-07-09 11:38:02 -07:00
|
|
|
if USE_DOXYGEN
|
2007-07-01 15:40:43 -07:00
|
|
|
all: doxygen.in
|
|
|
|
|
|
|
|
doxygen.in:
|
2007-10-14 15:29:32 -07:00
|
|
|
$(DOXYGEN) $(srcdir)/Doxyfile
|
2007-07-01 15:40:43 -07:00
|
|
|
endif
|
2007-02-22 19:23:06 -08:00
|
|
|
|
2007-07-09 11:38:02 -07: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-07-06 13:54:18 -07:00
|
|
|
$(ASCIIDOC_MANS):
|
2007-07-05 22:56:11 -07:00
|
|
|
a2x -d manpage -f manpage --asciidoc-opts="$(ASCIIDOC_OPTS)" $@.txt
|
2007-02-22 19:23:06 -08:00
|
|
|
|
2007-07-06 13:54:18 -07: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 11:22:01 -07:00
|
|
|
repo-add.8: repo-add.8.txt
|
2007-07-06 13:54:18 -07: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 11:38:02 -07:00
|
|
|
endif
|
2007-07-06 08:30:53 -07:00
|
|
|
|
2007-06-04 14:49:09 -07:00
|
|
|
# vim:set ts=2 sw=2 noet:
|