FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > ArchLinux > ArchLinux Pacman Development

 
 
LinkBack Thread Tools
 
Old 06-15-2011, 09:13 AM
Allan McRae
 
Default 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 documenation types...

Signed-off-by: Allan McRae <allan@archlinux.org>
---
doc/Makefile.am | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/doc/Makefile.am b/doc/Makefile.am
index bc0244c..4fb5780 100644
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -101,7 +101,7 @@ website: html
pkgdatadir = ${datadir}/${PACKAGE}

ASCIIDOC_OPTS =
- -f asciidoc.conf
+ -f $(srcdir)/asciidoc.conf
-a pacman_version="$(REAL_PACKAGE_VERSION)"
-a pacman_date="`date +%Y-%m-%d`"
-a pkgdatadir=$(pkgdatadir)
@@ -112,11 +112,12 @@ A2X_OPTS =
--no-xmllint
-d 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
$(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
asciidoc $(ASCIIDOC_OPTS) $*.txt
--
1.7.5.4
 

Thread Tools




All times are GMT. The time now is 08:28 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org