if you generate "make" targets for installed files, you can use "install -D -m 644"

This commit is contained in:
Albert Cahalan 2008-04-27 05:37:56 +00:00
parent a101226ec8
commit d32821d69d
2 changed files with 2 additions and 5 deletions

View file

@ -30,10 +30,7 @@ MOFILES:=$(patsubst src/po/%.po,trans/%.mo,$(POFILES))
INSTALLED_MOFILES:=$(patsubst trans/%.mo,$(LOCALE_PREFIX)/%/LC_MESSAGES/tuxpaint.mo,$(MOFILES))
$(INSTALLED_MOFILES): $(LOCALE_PREFIX)/%/LC_MESSAGES/tuxpaint.mo: trans/%.mo
mkdir -p $(@D)
cp $< $@
chmod 644 $@
install -D -m 644 $< $@
uninstall-i18n:
-rm $(LOCALE_PREFIX)/*/LC_MESSAGES/tuxpaint.mo