From 6344922f978b061c9c9e04bf01ae0608e8adbd67 Mon Sep 17 00:00:00 2001 From: Ivailo Monev Date: Fri, 10 Jul 2015 23:47:08 +0300 Subject: [PATCH] make translations optional (issue #85) --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index a37221d..ec8c71b 100644 --- a/Makefile +++ b/Makefile @@ -38,9 +38,11 @@ gui: $(SED) -e 's|@VERSION@|$(VERSION)|' -e 's|@PREFIX@|$(PREFIX)|g' \ src/gui.py.in > src/gui.py $(PYUIC) src/gui.ui -o src/gui_ui.py +ifneq ($(shell which $(LRELEASE)),) $(PYLUPDATE) src/*.py -ts tr/customizer_bg_BG.ts $(LRELEASE) tr/customizer_bg_BG.ts - +endif + install: install-core install-gui install-core: @@ -70,8 +72,10 @@ install-gui: $(DESTDIR)$(PREFIX)/share/menu/customizer $(INSTALL) -m644 data/customizer.policy \ $(DESTDIR)$(PREFIX)/share/polkit-1/actions/customizer.policy +ifneq ($(shell which $(LRELEASE)),) $(INSTALL) -dm755 $(DESTDIR)$(TRDIR)/ $(INSTALL) -m644 tr/*.qm $(DESTDIR)$(TRDIR)/ +endif uninstall: $(RM) $(DESTDIR)$(PREFIX)/sbin/customizer