docs-common Makefile.common,1.102,1.103

Tommy Reynolds (jtr) fedora-docs-commits at redhat.com
Wed Mar 8 01:27:12 UTC 2006


Author: jtr

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

Modified Files:
	Makefile.common 
Log Message:
Delete created "foo.xml.in" symlink as soon as we're through with it.
Also removed all the zillion "rm *.in" commands from "make clean" ;-)



Index: Makefile.common
===================================================================
RCS file: /cvs/docs/docs-common/Makefile.common,v
retrieving revision 1.102
retrieving revision 1.103
diff -u -r1.102 -r1.103
--- Makefile.common	7 Mar 2006 16:12:49 -0000	1.102
+++ Makefile.common	8 Mar 2006 01:27:04 -0000	1.103
@@ -323,15 +323,20 @@
 #########################################################################
 # Define a template to generate the locale-specific XML files given the
 # original ${PRI_LANG} file and an updated po/${LANG}.po file.
+# We have to be funky and cd(1) into the ${LANG} directory so that
+# the "lang=foo" attribute that ${XML2PO} generates will be correct. 
+# Hiss! Boo!
 define	XML_template
 $(patsubst ${PRI_LANG}/%,${1}/%,${2}):: ${2} po/${1}.po 		\
 		${DOC_ENTITIES_ENT-${1}}
 	mkdir -p ${1}
 	ln -s -f ../${2} $$@.in
 	cd po && ${XML2PO} -e -p ${1}.po ../$$@.in >../$$@
-clean::
 	${RM} $$@.in
- endef
+endef
+
+clean::
+	for L in ${OTHERS}; do ${RM} $${L}/*.xml.in; done
 
 $(foreach L,${OTHERS},							\
 	$(foreach F,${XMLFILES-${PRI_LANG}},				\




More information about the Fedora-docs-commits mailing list