summaryrefslogtreecommitdiffstats
path: root/Makefile.common
diff options
context:
space:
mode:
authorPaul W. Frields <stickster@gmail.com>2007-03-24 21:24:20 +0000
committerPaul W. Frields <stickster@gmail.com>2007-03-24 21:24:20 +0000
commit79218639b9e7b823fede534f4a86c0318f068235 (patch)
tree3d6092f13f8411a5992722af523b920041bb8c75 /Makefile.common
parent57266e4cf4dda8ecc65760aeabfe4a50a16af687 (diff)
downloadfedora-doc-utils-79218639b9e7b823fede534f4a86c0318f068235.tar.gz
fedora-doc-utils-79218639b9e7b823fede534f4a86c0318f068235.tar.xz
fedora-doc-utils-79218639b9e7b823fede534f4a86c0318f068235.zip
Make FDP-entities building a little cleaner.
Diffstat (limited to 'Makefile.common')
-rw-r--r--Makefile.common13
1 files changed, 5 insertions, 8 deletions
diff --git a/Makefile.common b/Makefile.common
index d7d0790..edf8ff3 100644
--- a/Makefile.common
+++ b/Makefile.common
@@ -1013,15 +1013,12 @@ fedora-doc-${DOCBASE}-khelp.desktop:: ${RPMINFO}
#
#########################################################################
# Build project-wide entities.
-# These must be built in their container dir so the DTD is parsed
-# correctly.
+#
define FDP_ENTITIES_template
-${FDPCOMMONDIR}/common/entities/entities-${1}.ent::
- pushd ${FDPCOMMONDIR}/common/entities && make entities-${1}.ent
-
-${1}/$${FDP_ENTITIES}:: ${FDPCOMMONDIR}/common/entities/entities-${1}.ent
- mkdir -p $$(shell dirname $$@)
- cp -p ${FDPCOMMONDIR}/common/entities/entities-${1}.ent $$@
+${1}/$${FDP_ENTITIES}::
+ mkdir -p ${1}
+ ( cd ${FDPCOMMONDIR}/common/entities ; $(MAKE) entities-${1}.ent )
+ cp -u ${FDPCOMMONDIR}/common/entities/entities-${1}.ent $$@
clean::
${RM} ${1}/$${FDP_ENTITIES}