summaryrefslogtreecommitdiff
path: root/masterdb/Makefile.am
diff options
context:
space:
mode:
authorGaetan Nadon <memsize@videotron.ca>2011-06-05 14:01:20 -0400
committerGaetan Nadon <memsize@videotron.ca>2011-06-11 17:28:02 -0400
commit1c4537d44ca85d9f6c0c102983a1732d734858ee (patch)
treeb43f365ce471b7a3ef78bb6764dad6e2a360ea1f /masterdb/Makefile.am
parentf9a896a91c43c8c61b8b452cc81f7bc9f77b91c2 (diff)
Masterdb: read the target dbs from the usual doc directory
This is a coordinated change with the packages building DocBook/XML. The target dbs are now installed alongside the generated documents. Currently they are installed in $prefix/sgml/X11/dbs alongside masterdb which has the potential of installing outside the package prefix and cause distcheck to fail when user does not have write permission in this package. The master db xi:include statement is changed. It uses a fully qualified path but could also have used a relative path although it is difficult to ensure it would work reliably. The generated html/pdf link are still relative. The README elaborates on requirements which previously existed but were not introduced by this patch. Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
Diffstat (limited to 'masterdb/Makefile.am')
-rw-r--r--masterdb/Makefile.am12
1 files changed, 8 insertions, 4 deletions
diff --git a/masterdb/Makefile.am b/masterdb/Makefile.am
index b967d68..4b8044d 100644
--- a/masterdb/Makefile.am
+++ b/masterdb/Makefile.am
@@ -11,16 +11,20 @@ CLEANFILES = $(sgmldbs_DATA)
%.html.xml: %.xml
$(AM_V_GEN)$(SED) -e 's|__ext__|html|g' \
- -e 's|__db__|html|g' < $< > $@
+ -e 's|__db__|html|g' \
+ -e 's|@datarootdir[@]|$(datarootdir)|g' < $< > $@
%.txt.xml: %.xml
$(AM_V_GEN)$(SED) -e 's|__ext__|txt|g' \
- -e 's|__db__|html|g' < $< > $@
+ -e 's|__db__|html|g' \
+ -e 's|@datarootdir[@]|$(datarootdir)|g' < $< > $@
%.pdf.xml: %.xml
$(AM_V_GEN)$(SED) -e 's|__ext__|pdf|g' \
- -e 's|__db__|fo|g' < $< > $@
+ -e 's|__db__|fo|g' \
+ -e 's|@datarootdir[@]|$(datarootdir)|g' < $< > $@
%.ps.xml: %.xml
$(AM_V_GEN)$(SED) -e 's|__ext__|ps|g' \
- -e 's|__db__|fo|g' < $< > $@
+ -e 's|__db__|fo|g' \
+ -e 's|@datarootdir[@]|$(datarootdir)|g' < $< > $@