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