improve makefiles

This commit is contained in:
guinux
2014-11-17 21:56:15 +01:00
parent ed0bacc1d3
commit 93bd73a3fc
6 changed files with 109 additions and 58 deletions

12
po/Makefile Normal file
View File

@@ -0,0 +1,12 @@
MSGLANGS=$(notdir $(wildcard *.po))
MSGOBJS=$(addprefix locale/,$(MSGLANGS:.po=/LC_MESSAGES/pamac.mo))
locale/%/LC_MESSAGES/pamac.mo: %.po
msgfmt -c -o $*.mo $*.po
mkdir -p $(dir $@)
cp $*.mo $(dir $@)pamac.mo
gettext: $(MSGOBJS)
itstool -j ../data/polkit/org.manjaro.pamac.policy.in -o ../data/polkit/org.manjaro.pamac.policy $(MSGLANGS:.po=.mo)