docs-common Makefile.common,1.55,1.56
Tommy Reynolds (jtr)
fedora-docs-commits at redhat.com
Wed Feb 15 14:37:26 UTC 2006
Author: jtr
Update of /cvs/docs/docs-common
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv4502
Modified Files:
Makefile.common
Log Message:
Added "${LANG}::" target to use as a dependant to the "xml-${LANG}" rules
so we don't invoke "mkdir -p ${LANG}" for every translated XML file.
Index: Makefile.common
===================================================================
RCS file: /cvs/docs/docs-common/Makefile.common,v
retrieving revision 1.55
retrieving revision 1.56
diff -u -r1.55 -r1.56
--- Makefile.common 15 Feb 2006 07:04:31 -0000 1.55
+++ Makefile.common 15 Feb 2006 14:37:18 -0000 1.56
@@ -297,9 +297,20 @@
#########################################################################
#########################################################################
+define DIR_template
+${1}::
+ mkdir ${1}
+
+distclean::
+ ${RM} -r ${1}
+endef
+
+$(foreach L,${OTHERS},$(eval $(call DIR_template,${L})))
+#########################################################################
+
+#########################################################################
define XML_template
-$(patsubst ${PRI_LANG}/%,${1}/%,${2}):: ${2} po/${1}.po
- mkdir -p ${1}
+$(patsubst ${PRI_LANG}/%,${1}/%,${2}):: ${2} po/${1}.po ${1}
${PO2XML} ${2} po/${1}.po >$$@
endef
More information about the Fedora-docs-commits
mailing list