summaryrefslogtreecommitdiffstats
path: root/Makefile.common
diff options
context:
space:
mode:
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}