docs-common/common/entities Makefile,1.30,1.31

Paul W. Frields (pfrields) fedora-docs-commits at redhat.com
Thu Mar 22 04:50:42 UTC 2007


Author: pfrields

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

Modified Files:
	Makefile 
Log Message:
Update Makefile to use new PO location


Index: Makefile
===================================================================
RCS file: /cvs/docs/docs-common/common/entities/Makefile,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -r1.30 -r1.31
--- Makefile	17 Feb 2007 01:31:51 -0000	1.30
+++ Makefile	22 Mar 2007 04:50:40 -0000	1.31
@@ -19,7 +19,7 @@
 # Define macros to explicitly instantiate the files to work with
 #
 OTHERXMLFILES=$(foreach L,${OTHERS},entities-${L}.xml)
-POFILES=$(foreach L,${OTHERS},${L}.po)
+POFILES=$(foreach L,${OTHERS},po/${L}.po)
 ENTFILES=$(foreach L,${PRI_LANG} ${OTHERS},entities-${L}.ent)
 #
 #######################################################################
@@ -58,15 +58,15 @@
 #
 .PHONY:	pot
 
-pot entities.pot:: entities-${PRI_LANG}.xml
-	xml2po -o entities.pot $<
+pot po/entities.pot:: entities-${PRI_LANG}.xml
+	xml2po -o po/entities.pot $<
 
 distclean::
-	${RM} entities.pot
+	${RM} po/entities.pot
 
 help::
 	@printf ${HELPFMT} "make pot" 		"Create template PO file"
-	@printf ${HELPFMT} "make entities.pot" 	"Create template PO file"
+	@printf ${HELPFMT} "make po/entities.pot" "Create template PO file"
 #
 #######################################################################
 
@@ -78,22 +78,22 @@
 define	PO_template
 .PHONY:	po-${1}
 .PRECIOUS: ${1}.po
-po-${1} ${1}.po:: entities.pot
-	if [ ! -f ${1}.po ]; then					\
-		cp $$< ${1}.po;						\
+po-${1} po/${1}.po:: po/entities.pot
+	if [ ! -f po/${1}.po ]; then					\
+		cp $$< po/${1}.po;					\
 	else								\
-		msgmerge --update --backup=simple ${1}.po $$<;		\
+		msgmerge --update --backup=simple po/${1}.po $$<;	\
 	fi
 
 help::
 	@printf ${HELPFMT} "make po-${1}"	"Generate .PO file for locale '${1}'"
-	@printf ${HELPFMT} "make ${1}.po"	"Generate '${1}.po' file"
+	@printf ${HELPFMT} "make po/${1}.po"	"Generate '${1}.po' file"
 endef
 
 $(foreach L,${OTHERS},$(eval $(call PO_template,${L})))
 
 .PHONY:	po-all
-po-all:	${foreach L,${OTHERS},${L}.po}
+po-all:	${foreach L,${OTHERS},po/${L}.po}
 
 help::
 	@printf ${HELPFMT} "make po-all"	"Generate all .PO files"
@@ -107,8 +107,8 @@
 #
 define UPDATE_template
 .PHONY:	xml-${1}
-xml-${1} entities-${1}.xml:: entities-${PRI_LANG}.xml ${1}.po
-	xml2po -p ${1}.po entities-${PRI_LANG}.xml >entities-${1}.xml
+xml-${1} entities-${1}.xml:: entities-${PRI_LANG}.xml po/${1}.po
+	xml2po -p po/${1}.po entities-${PRI_LANG}.xml >entities-${1}.xml
 
 help::
 	@printf ${HELPFMT} "make xml-${1}"	"Translate XML for locale '${1}'"
@@ -174,7 +174,7 @@
 
 #######################################################################
 define	ENT_template
-entities-${1}.ent::	entities-${1}.xml entities.pot
+entities-${1}.ent::	entities-${1}.xml po/entities.pot
 	xsltproc -o $$@ --stringparam FDPCOMMONDIR "${FDPCOMMONDIR}" \
 		entities.xsl entities-${1}.xml
 endef




More information about the Fedora-docs-commits mailing list