summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorPaul W. Frields <stickster@gmail.com>2007-03-22 04:50:40 +0000
committerPaul W. Frields <stickster@gmail.com>2007-03-22 04:50:40 +0000
commitf361daea9451f2c8f02291194778442a8e43ae16 (patch)
treee34052a1e91982f2e0b6e3110dbe33d66833895c /common
parent93667bda2e3daf74f7ef1aa82cdd0233fd1ed04b (diff)
downloadfedora-doc-utils-f361daea9451f2c8f02291194778442a8e43ae16.tar.gz
fedora-doc-utils-f361daea9451f2c8f02291194778442a8e43ae16.tar.xz
fedora-doc-utils-f361daea9451f2c8f02291194778442a8e43ae16.zip
Update Makefile to use new PO location
Diffstat (limited to 'common')
-rw-r--r--common/entities/Makefile28
1 files changed, 14 insertions, 14 deletions
diff --git a/common/entities/Makefile b/common/entities/Makefile
index 3f602c0..f9a187e 100644
--- a/common/entities/Makefile
+++ b/common/entities/Makefile
@@ -19,7 +19,7 @@ OTHERS =da de en it pa pt_BR ru zh_CN ja_JP pt pl nl es el fr fr_FR ja sr sv uk
# 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 @@ help::
#
.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 @@ help::
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 @@ help::
#
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 @@ help::
#######################################################################
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