summaryrefslogtreecommitdiffstats
path: root/common/entities/Makefile
diff options
context:
space:
mode:
authorTommy Reynolds <Tommy.Reynolds@MegaCoder.com>2006-02-28 02:06:49 +0000
committerTommy Reynolds <Tommy.Reynolds@MegaCoder.com>2006-02-28 02:06:49 +0000
commit66771e17f1c6ec9a86703622157d37a4b512ee19 (patch)
treeee10bda0eb22ab2bedc1a645f1d55b06951fced3 /common/entities/Makefile
parent5ba0ead194412c37d8f32580c82b934d1ae3a636 (diff)
downloadfedora-doc-utils-66771e17f1c6ec9a86703622157d37a4b512ee19.tar.gz
fedora-doc-utils-66771e17f1c6ec9a86703622157d37a4b512ee19.tar.xz
fedora-doc-utils-66771e17f1c6ec9a86703622157d37a4b512ee19.zip
Added "fdpcommon" kind of entity. Automatically relocate files
marked as "fdpcommon" when building the ".ent" files. Revert Karsten's "Makefile.common" change as a courtesey.
Diffstat (limited to 'common/entities/Makefile')
-rw-r--r--common/entities/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/common/entities/Makefile b/common/entities/Makefile
index 86fcda6..f95461e 100644
--- a/common/entities/Makefile
+++ b/common/entities/Makefile
@@ -23,7 +23,8 @@ ENTFILES=$(foreach L,${PRI_LANG} ${OTHERS},entities-${L}.ent)
# entities file
#
%.ent: %.xml
- xsltproc -o $@ entities.xsl $<
+ xsltproc -o $@ --stringparam FDPCOMMONDIR "${FDPCOMMONDIR}" \
+ entities.xsl $<
#
#######################################################################
@@ -34,6 +35,10 @@ HELPFMT ="%-23s\t| %s.\n"
#######################################################################
#######################################################################
+FDPCOMMONDIR:=$(shell cd .. && /bin/pwd)
+#######################################################################
+
+#######################################################################
# WARNING: put no targets before this one!
#
.PHONY: all
@@ -134,6 +139,7 @@ showvars::
@echo "OTHERXMLFILES=${OTHERXMLFILES}"
@echo "ENTFILES=${ENTFILES}"
@echo "POFILES=${POFILES}"
+ @echo "FDPCOMMONDIR=${FDPCOMMONDIR}"
help::
@printf ${HELPFMT} "make showvars" "Show certain macro values"
#