From 55ba565654bf6bd7c832565f26a41d936123f67e Mon Sep 17 00:00:00 2001 From: Papoteur Date: Fri, 14 Jul 2023 08:05:32 +0200 Subject: Add dist option to Makefile --- po/Makefile | 27 +++------------------------ 1 file changed, 3 insertions(+), 24 deletions(-) diff --git a/po/Makefile b/po/Makefile index ea9b4f2..87e3c9d 100644 --- a/po/Makefile +++ b/po/Makefile @@ -13,7 +13,9 @@ clean: rm -rf $$lang;\ done - +dist: tar +tar: + git archive --prefix $(PACKAGE_NAME)-$(VERSION)/ $(VERSION) | xz -9 > $(PACKAGE_NAME)-$(VERSION).tar.xz pot: cat ../usr/share/applications/$(PACKAGE_NAME).desktop.in | grep _ | cut -d "=" --fields=2 | sed 's|^|_("|g' | sed 's|$$|")|g' > ../usr/share/applications/$(PACKAGE_NAME).desktop.tmp xgettext --copyright-holder='Daniel Napora ' --package-name=mageiawelcome --from-code=UTF-8 --add-comments \ @@ -33,27 +35,4 @@ po: rm -f $$lang-old.po; \ done -gmo: - @echo " **COMPILING** languages: $(LANGUAGES)" - @for lang in $(LANGUAGES); do \ - echo " **COMPILEMO** $$lang" ; \ - mkdir -p $$lang/LC_MESSAGES/; \ - msgfmt --verbose -o $$lang/LC_MESSAGES/$(PACKAGE_NAME).mo $$lang.po; \ - done - -qm: - @echo " **COMPILING** languages: $(LANGUAGES)" - @for lang in $(LANGUAGES); do \ - echo " **COMPILEMO** $$lang" ; \ - lconvert -o $$lang.ts $$lang.po ; \ - lrelease $$lang.ts ; \ - done - -install: - @echo " **INSTALL** languages: $(LANGUAGES)" - mkdir -p $(DESTDIR)/share/mageiawelcome/translations/ - @for lang in $(LANGUAGES); do \ - echo " **INSTALLMO** $$lang" ; \ - cp $$lang.qm $(DESTDIR)/share/mageiawelcome/translations/mageiawelcome_$$lang.qm; \ - done -- cgit v1.2.1