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

@ -790,7 +790,7 @@ install-dlls:
@strip -s $(BIN_PREFIX)/*.dll @strip -s $(BIN_PREFIX)/*.dll
@echo @echo
@echo "...Installing Configuration Files..." @echo "...Installing Configuration Files..."
@cp -r win32/etc/ $(BIN_PREFIX) @cp -R win32/etc/ $(BIN_PREFIX)
@echo @echo
@echo "...Installing Library Modules..." @echo "...Installing Library Modules..."
@mkdir -p $(BIN_PREFIX)/lib/gtk-2.0/2.10.0/engines @mkdir -p $(BIN_PREFIX)/lib/gtk-2.0/2.10.0/engines

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:=$(patsubst trans/%.mo,$(LOCALE_PREFIX)/%/LC_MESSAGES/tuxpaint.mo,$(MOFILES))
$(INSTALLED_MOFILES): $(LOCALE_PREFIX)/%/LC_MESSAGES/tuxpaint.mo: trans/%.mo $(INSTALLED_MOFILES): $(LOCALE_PREFIX)/%/LC_MESSAGES/tuxpaint.mo: trans/%.mo
mkdir -p $(@D) install -D -m 644 $< $@
cp $< $@
chmod 644 $@
uninstall-i18n: uninstall-i18n:
-rm $(LOCALE_PREFIX)/*/LC_MESSAGES/tuxpaint.mo -rm $(LOCALE_PREFIX)/*/LC_MESSAGES/tuxpaint.mo