diff options
author | Papoteur <papoteur@mageia.org> | 2023-07-14 08:05:32 +0200 |
---|---|---|
committer | Papoteur <papoteur@mageia.org> | 2023-07-14 08:05:32 +0200 |
commit | 55ba565654bf6bd7c832565f26a41d936123f67e (patch) | |
tree | 7b0a84fc8fe34ee7a367b3a08cbd7cc9c4758cc4 | |
parent | fa70e4d673596785bfa3b786f545db8814408bd4 (diff) | |
download | mageiawelcome-55ba565654bf6bd7c832565f26a41d936123f67e.tar mageiawelcome-55ba565654bf6bd7c832565f26a41d936123f67e.tar.gz mageiawelcome-55ba565654bf6bd7c832565f26a41d936123f67e.tar.bz2 mageiawelcome-55ba565654bf6bd7c832565f26a41d936123f67e.tar.xz mageiawelcome-55ba565654bf6bd7c832565f26a41d936123f67e.zip |
Add dist option to Makefile
-rw-r--r-- | po/Makefile | 27 |
1 files 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 <napcok@gmail.com>' --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 |