1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-11-15 13:55:09 -05:00

Fix man page generation for out of tree build

Fix failure at man page generation when building outside the source tree.
There may still be issues with other documentation types...

Signed-off-by: Allan McRae <allan@archlinux.org>
Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
Allan McRae 2011-06-13 21:53:23 +10:00 committed by Dan McGee
parent 07e97a5f2c
commit 4664a095a4

View File

@ -95,7 +95,7 @@ website: html
pkgdatadir = ${datadir}/${PACKAGE} pkgdatadir = ${datadir}/${PACKAGE}
ASCIIDOC_OPTS = \ ASCIIDOC_OPTS = \
-f asciidoc.conf \ -f $(srcdir)/asciidoc.conf \
-a pacman_version="$(REAL_PACKAGE_VERSION)" \ -a pacman_version="$(REAL_PACKAGE_VERSION)" \
-a pacman_date="`date +%Y-%m-%d`" \ -a pacman_date="`date +%Y-%m-%d`" \
-a pkgdatadir=$(pkgdatadir) \ -a pkgdatadir=$(pkgdatadir) \
@ -106,11 +106,12 @@ A2X_OPTS = \
--no-xmllint \ --no-xmllint \
-d manpage \ -d manpage \
-f manpage \ -f manpage \
--xsltproc-opts='-param man.endnotes.list.enabled 0 -param man.endnotes.are.numbered 0' --xsltproc-opts='-param man.endnotes.list.enabled 0 -param man.endnotes.are.numbered 0' \
--destination-dir='./'
# These rules are due to the includes and files of the asciidoc text # These rules are due to the includes and files of the asciidoc text
$(ASCIIDOC_MANS): asciidoc.conf footer.txt $(ASCIIDOC_MANS): asciidoc.conf footer.txt
a2x $(A2X_OPTS) --asciidoc-opts="$(ASCIIDOC_OPTS)" $@.txt a2x $(A2X_OPTS) --asciidoc-opts="$(ASCIIDOC_OPTS) --out-file=./$@.xml" $(srcdir)/$@.txt
%.html: %.txt %.html: %.txt
asciidoc $(ASCIIDOC_OPTS) $*.txt asciidoc $(ASCIIDOC_OPTS) $*.txt