31 MOFILES
= ${POFILES
:.po
=.mo
}
32 LOCALES
= ${MOFILES
:.mo
=}
34 UPDATEPOFILES
= ${POFILES
:.po
=.po-update
}
36 MSGID_BUGS_ADDRESS
= https
://bugs.archlinux.org
/index.php?project
=2
41 msgfmt
--check -o
$@
$<
43 %.po-update
: %.po aur.pot
44 lang
=`echo $@ | sed -e 's/\.po-update$$//'`; \
45 msgmerge
-U
--no-location
--lang
="$$lang" $< aur.pot
48 find ..
/web
-type f
-name
'*.php' -printf
'%P\n' |
sort >POTFILES
52 pkgver
=`sed -n 's/.*"AURWEB_VERSION", "\(.*\)".*/\1/p' ../web/lib/version.inc.php`; \
53 xgettext
--default-domain
=aur
-L php
--keyword
=__
--keyword
=_n
:1,2 \
54 --no-location
--add-comments
=TRANSLATORS
: \
55 --package-name
="$$pkgname" --package-version
="$$pkgver" \
56 --msgid-bugs-address
='${MSGID_BUGS_ADDRESS}' \
57 --directory ..
/web
--files-from POTFILES
-o aur.pot
60 ${MAKE} ${UPDATEPOFILES}
63 rm -f
*.mo
*.po\~ POTFILES
66 for l in
${LOCALES}; do mkdir
-p
${DESTDIR}${PREFIX}/$$l/LC_MESSAGES
/; done
67 for l in
${LOCALES}; do cp
$$l.mo
${DESTDIR}${PREFIX}/$$l/LC_MESSAGES
/aur.mo
; done
70 for l in
${LOCALES}; do
rm -rf
${DESTDIR}${PREFIX}/$$l/LC_MESSAGES
/; done
72 .PHONY
: all update-pot update-po
clean install uninstall POTFILES