summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPapoteur <papoteur@mageia.org>2023-07-14 08:05:32 +0200
committerPapoteur <papoteur@mageia.org>2023-07-14 08:05:32 +0200
commit55ba565654bf6bd7c832565f26a41d936123f67e (patch)
tree7b0a84fc8fe34ee7a367b3a08cbd7cc9c4758cc4
parentfa70e4d673596785bfa3b786f545db8814408bd4 (diff)
downloadmageiawelcome-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/Makefile27
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