1 # Horde .mo files makefile
3 # $Horde: horde/po/Makefile,v 1.2.2.3 2002/05/20 17:36:22 jan Exp $
7 MSGFMT
= msgfmt
--statistics
-c
-v
-o
8 MSGFMTSOL
= msgfmt
-v
-o
11 XGETTEXT_OPTS
= -j
-k__
-o
12 PHPFILES
= find htdocs
include -name
"*.php"
18 cd ..
&& ${XGETTEXT} --no-location
${XGETTEXT_OPTS} po
/${APPLICATION}.pot
`${PHPFILES}`
19 cd ..
&& ${XGETTEXT} --add-location
${XGETTEXT_OPTS} po
/${APPLICATION}.pot
`${PHPFILES}`
22 cd ..
&& ${XGETTEXT} ${XGETTEXT_OPTS} po
/${APPLICATION}.pot
`${PHPFILES}`
24 %.po
: ${APPLICATION}.pot
25 @echo
"Updating .po files from .pot:"
29 @echo
"Checking for os ... ${OSTYPE}"; \
30 if
test "${OSTYPE}" = "solaris"; then \
31 echo
"You'll probably get some warnings on Solaris. This is normal."; \
33 for LOCALE in
`ls *.po | sed 's/\.[^.]*$$//g'`; do \
34 if
test $${LOCALE}.po
= "messages.po"; then \
37 echo
"Compiling locale $${LOCALE}:"; \
38 if .
/shtool mkdir
-p ..
/locale
/$${LOCALE}/LC_MESSAGES
; then \
39 if
test "${OSTYPE}" = "solaris"; then \
40 if
${MSGFMTSOL} ..
/locale
/$${LOCALE}/LC_MESSAGES
/${APPLICATION}.mo
$${LOCALE}.po
; then \
48 if
${MSGFMT} ..
/locale
/$${LOCALE}/LC_MESSAGES
/${APPLICATION}.mo
$${LOCALE}.po
; then \
57 echo
"Could not create locale directory for $${LOCALE}."; \