can change package name

This commit is contained in:
2016-04-07 15:53:48 +02:00
parent 9f36e679a1
commit ebf84b5a69
2 changed files with 18 additions and 5 deletions

View File

@ -1,6 +1,9 @@
#!/usr/bin/make
PACKAGE := tiramisu
ifeq ($(PACKAGE_DST),)
PACKAGE_DST := $(PACKAGE)
endif
INSTALL := install
INSTALL_DATA := install -m 644
@ -43,7 +46,7 @@ define install_translation
for file in `find ${1} -name "*.mo"`; do \
$(INSTALL_DIR) $(TRADUC_DEST)/`echo $$file | cut -d '/' -f 2` || true; \
$(INSTALL_DIR) $(TRADUC_DEST)/`echo $$file | cut -d '/' -f 2`/LC_MESSAGES || true; \
$(INSTALL_DATA) $$file $(TRADUC_DEST)/`echo $$file | cut -d '/' -f 2`/LC_MESSAGES || true; \
$(INSTALL_DATA) $$file $(TRADUC_DEST)/`echo $$file | cut -d '/' -f 2`/LC_MESSAGES/$(PACKAGE_DST).mo || true; \
done; \
fi
endef