2014-11-17 17:56:15 -03:00
|
|
|
|
|
|
|
MSGLANGS=$(notdir $(wildcard *.po))
|
|
|
|
|
|
|
|
MSGOBJS=$(addprefix locale/,$(MSGLANGS:.po=/LC_MESSAGES/pamac.mo))
|
|
|
|
|
2016-03-01 11:00:05 -03:00
|
|
|
gettext: ../data/polkit/org.manjaro.pamac.policy.in $(MSGOBJS)
|
2015-01-24 14:09:47 -03:00
|
|
|
itstool -j ../data/polkit/org.manjaro.pamac.policy.in -o ../data/polkit/org.manjaro.pamac.policy $(MSGLANGS:.po=.mo)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf locale
|
|
|
|
rm -f *.mo
|
2016-03-01 11:00:05 -03:00
|
|
|
rm -f ../data/polkit/org.manjaro.pamac.policy
|
2015-01-24 14:09:47 -03:00
|
|
|
|
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
|