little Makefile fix

This commit is contained in:
guinux 2016-03-01 15:00:05 +01:00
parent 85731c3a9f
commit 7234a4925b
2 changed files with 2 additions and 2 deletions

View File

@ -16,7 +16,6 @@ clean:
cd resources && make clean cd resources && make clean
cd src && make clean cd src && make clean
cd po && make clean cd po && make clean
rm -f data/polkit/org.manjaro.pamac.policy
install: install:
mkdir -p $(prefix)/share/icons/hicolor mkdir -p $(prefix)/share/icons/hicolor

View File

@ -3,12 +3,13 @@ MSGLANGS=$(notdir $(wildcard *.po))
MSGOBJS=$(addprefix locale/,$(MSGLANGS:.po=/LC_MESSAGES/pamac.mo)) MSGOBJS=$(addprefix locale/,$(MSGLANGS:.po=/LC_MESSAGES/pamac.mo))
gettext: $(MSGOBJS) gettext: ../data/polkit/org.manjaro.pamac.policy.in $(MSGOBJS)
itstool -j ../data/polkit/org.manjaro.pamac.policy.in -o ../data/polkit/org.manjaro.pamac.policy $(MSGLANGS:.po=.mo) itstool -j ../data/polkit/org.manjaro.pamac.policy.in -o ../data/polkit/org.manjaro.pamac.policy $(MSGLANGS:.po=.mo)
clean: clean:
rm -rf locale rm -rf locale
rm -f *.mo rm -f *.mo
rm -f ../data/polkit/org.manjaro.pamac.policy
locale/%/LC_MESSAGES/pamac.mo: %.po locale/%/LC_MESSAGES/pamac.mo: %.po
msgfmt -c -o $*.mo $*.po msgfmt -c -o $*.mo $*.po