_alpm_checkconflicts split
[pacman.git] / doc / Makefile.am
blobabc761b80d83054539a413808f0e70ec36ab61f8
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.
6 ASCIIDOC_MANS = \
7         pacman.8 \
8         makepkg.8 \
9         repo-add.8 \
10         PKGBUILD.5 \
11         makepkg.conf.5 \
12         pacman.conf.5 \
13         libalpm.3
15 DOXYGEN_MANS = $(wildcard man3/*.3)
17 man_MANS =
19 if USE_ASCIIDOC
20 man_MANS += $(ASCIIDOC_MANS)
21 endif
22 if USE_DOXYGEN
23 man_MANS += $(DOXYGEN_MANS)
24 endif
26 EXTRA_DIST = \
27         pacman.8.txt \
28         makepkg.8.txt \
29         repo-add.8.txt \
30         PKGBUILD.5.txt \
31         PKGBUILD-example.txt \
32         makepkg.conf.5.txt \
33         pacman.conf.5.txt \
34         libalpm.3.txt \
35         footer.txt \
36         Doxyfile \
37         $(ASCIIDOC_MANS) \
38         $(DOXYGEN_MANS)
40 # Files that should be removed, but which Automake does not know.
41 MOSTLYCLEANFILES = $(DOXYGEN_MANS) *.xml
43 if USE_DOXYGEN
44 all: doxygen.in
46 doxygen.in:
47         $(DOXYGEN) $(srcdir)/Doxyfile
48 endif
50 if USE_ASCIIDOC
51 ASCIIDOC_OPTS = \
52         -f asciidoc.conf \
53         -a pacman_version="$(PACKAGE_VERSION)" \
54         -a pacman_date="`date +%Y-%m-%d`" \
55         -a sysconfdir=$(sysconfdir)
56 A2X_OPTS = \
57         -d manpage \
58         -f manpage \
59         --xsltproc-opts='-param man.endnotes.list.enabled 0' \
60         --xsltproc-opts='-param man.endnotes.are.numbered 0'
62 $(ASCIIDOC_MANS):
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
74 endif
76 # vim:set ts=2 sw=2 noet: