pamac-classic/po/Makefile

17 lines
408 B
Makefile
Raw Normal View History

2014-11-17 17:56:15 -03:00
MSGLANGS=$(notdir $(wildcard *.po))
MSGOBJS=$(addprefix locale/,$(MSGLANGS:.po=/LC_MESSAGES/pamac.mo))
2017-10-10 16:29:22 -03:00
gettext: ../data/polkit/org.pamac.policy.in $(MSGOBJS)
2017-10-27 20:48:06 -03:00
msgfmt --xml --template ../data/polkit/org.pamac.policy.in -d ./ -o ../data/polkit/org.pamac.policy
clean:
rm -rf locale
rm -f *.mo
2014-11-17 17:56:15 -03:00
locale/%/LC_MESSAGES/pamac.mo: %.po
msgfmt -c -o $*.mo $*.po
mkdir -p $(dir $@)
cp $*.mo $(dir $@)pamac.mo