29 MOFILES
= ${POFILES
:.po
=.mo
}
30 LOCALES
= ${MOFILES
:.mo
=}
32 UPDATEPOFILES
= ${POFILES
:.po
=.po-update
}
34 MSGID_BUGS_ADDRESS
= https
://bugs.archlinux.org
/index.php?project
=2
39 msgfmt
--check -o
$@
$<
41 %.po-update
: %.po aur.pot
42 lang
=`echo $@ | sed -e 's/\.po-update$$//'`; \
43 msgmerge
-U
--no-location
--lang
="$$lang" $< aur.pot
47 pkgver
=`sed -n 's/.*"AUR_VERSION", "\(.*\)".*/\1/p' ../web/lib/version.inc.php`; \
48 xgettext
--default-domain
=aur
-L php
--keyword
=__
--no-location \
49 --add-comments
=TRANSLATORS
: --package-name
="$$pkgname" \
50 --package-version
="$$pkgver" \
51 --msgid-bugs-address
='${MSGID_BUGS_ADDRESS}' \
52 --directory ..
/web
--files-from POTFILES
-o aur.pot
55 ${MAKE} ${UPDATEPOFILES}
61 for l in
${LOCALES}; do mkdir
-p
${DESTDIR}${PREFIX}/$$l/LC_MESSAGES
/; done
62 for l in
${LOCALES}; do cp
$$l.mo
${DESTDIR}${PREFIX}/$$l/LC_MESSAGES
/aur.mo
; done
65 for l in
${LOCALES}; do
rm -rf
${DESTDIR}${PREFIX}/$$l/LC_MESSAGES
/; done
67 .PHONY
: all update-pot update-po
clean install uninstall