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
10 XGETTEXT
= xgettext
--from-code
=iso-8859-15
-j
-k_b_
-o
11 PHPFILES
= find banana
-name
"*.php"
17 cd ..
&& ${XGETTEXT} po
/${APPLICATION}.pot
`${PHPFILES}`
19 %.po
: ${APPLICATION}.pot
20 @echo
"Updating .po files from .pot:"
24 @echo
"Checking for os ... ${OSTYPE}"; \
25 if
test "${OSTYPE}" = "solaris"; then \
26 echo
"You'll probably get some warnings on Solaris. This is normal."; \
28 for LOCALE in
`ls *.po | sed 's/\.[^.]*$$//g'`; do \
29 if
test $${LOCALE}.po
= "messages.po"; then \
32 echo
"Compiling locale $${LOCALE}:"; \
33 if .
/shtool mkdir
-p ..
/locale
/$${LOCALE}/LC_MESSAGES
; then \
34 if
test "${OSTYPE}" = "solaris"; then \
35 if
${MSGFMTSOL} ..
/locale
/$${LOCALE}/LC_MESSAGES
/${APPLICATION}.mo
$${LOCALE}.po
; then \
43 if
${MSGFMT} ..
/locale
/$${LOCALE}/LC_MESSAGES
/${APPLICATION}.mo
$${LOCALE}.po
; then \
52 echo
"Could not create locale directory for $${LOCALE}."; \