docs-common Makefile.common,1.89,1.90

Tommy Reynolds (jtr) fedora-docs-commits at redhat.com
Fri Mar 3 20:39:28 UTC 2006


Author: jtr

Update of /cvs/docs/docs-common
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv26933

Modified Files:
	Makefile.common 
Log Message:
Deleted the 'DIR_template' foolishness and removed the "${LANG}" dummy
target, too.  Replaced the explicit "mkdir -p ${LANG}" in the rule to
derive the non-${PRI_LANG} XML.  This cuts down on the unnecessary
XML regeneration and speeds things up a good bit.



Index: Makefile.common
===================================================================
RCS file: /cvs/docs/docs-common/Makefile.common,v
retrieving revision 1.89
retrieving revision 1.90
diff -u -r1.89 -r1.90
--- Makefile.common	3 Mar 2006 19:55:40 -0000	1.89
+++ Makefile.common	3 Mar 2006 20:39:19 -0000	1.90
@@ -406,26 +406,11 @@
 #########################################################################
 
 #########################################################################
-define DIR_template
-${1}::
-	mkdir -p ${1}
-
-distclean::
-	${RM} -r ${1}
-
-help::
-	@printf ${TFMT} '${1}' 'Creates translated XML working directory'
-
-endef
-
-$(foreach L,${OTHERS},$(eval $(call DIR_template,${L})))
-#########################################################################
-
-#########################################################################
 # Define a template to generate the locale-specific XML files given the
 # original ${PRI_LANG} file and an updated po/${LANG}.po file.
 define	XML_template
-$(patsubst ${PRI_LANG}/%,${1}/%,${2}):: ${2} po/${1}.po ${1}
+$(patsubst ${PRI_LANG}/%,${1}/%,${2}):: ${2} po/${1}.po
+	mkdir -p ${1}
 	${XML2PO} -k -p po/${1}.po ${2} >$$@
 endef
 




More information about the Fedora-docs-commits mailing list