tazbug annotate Makefile @ rev 156

added files to be searched by xgettext
author Hans-G?nter Theisgen
date Thu Jan 10 16:21:06 2019 +0100 (2019-01-10)
parents 1f5468a81629
children
rev   line source
pankso@3 1 # Makefile for SliTaz Bugs.
pankso@3 2 #
pankso@3 3
pankso@3 4 PACKAGE="tazbug"
pankso@3 5 PREFIX?=/usr
pankso@3 6 DESTDIR?=
pankso@3 7 WEB?=/var/www
pankso@3 8 VAR?=/var/lib/slitaz
al@95 9 LINGUAS?=de el es fr ja pl pt_BR ru vi zh_CN
pankso@3 10
pankso@124 11 all: msgfmt
pankso@3 12
pankso@3 13 # i18n
pankso@3 14
pankso@3 15 pot:
pankso@3 16 xgettext -o po/tazbug.pot -L Shell --package-name="SliTaz Bugs" \
Hans-G?nter@156 17 ./web/bugs.cgi \
Hans-G?nter@156 18 ./web/plugins/dashboard/dashboard.cgi \
Hans-G?nter@156 19 ./web/plugins/mybugs/mybugs.cgi \
Hans-G?nter@156 20 ./web/plugins/packages/packages.cgi \
Hans-G?nter@156 21 ./web/plugins/users/users.cgi
pankso@125 22 xgettext -o po/cli/tazbug-cli.pot -L Shell --package-name="Tazbug cli" \
pankso@124 23 ./tazbug
pankso@3 24
pankso@3 25 msgmerge:
pankso@3 26 @for l in $(LINGUAS); do \
pankso@3 27 echo -n "Updating $$l po file."; \
pankso@3 28 msgmerge -U po/$$l.po po/$(PACKAGE).pot; \
pankso@3 29 done;
pankso@3 30
pankso@3 31 msgfmt:
pankso@3 32 @for l in $(LINGUAS); do \
pankso@3 33 echo "Compiling $$l mo file..."; \
pankso@3 34 mkdir -p po/mo/$$l/LC_MESSAGES; \
al@31 35 msgfmt -o po/mo/$$l/LC_MESSAGES/$(PACKAGE).mo po/$$l.po; \
pankso@3 36 done;
pankso@3 37
pankso@3 38 # Client install only. Server part is not packaged
pankso@3 39
pankso@3 40 install:
pankso@124 41 install -m 0777 -d $(DESTDIR)$(PREFIX)/bin
pankso@3 42 install -m 0777 -d $(DESTDIR)$(PREFIX)/share/applications
pankso@124 43 install -m 0755 tazbug $(DESTDIR)$(PREFIX)/bin
pankso@3 44 install -m 0644 data/tazbug.desktop \
pankso@3 45 $(DESTDIR)$(PREFIX)/share/applications
pankso@3 46
pankso@124 47 # On SliTaz vhost: make install-web WEB=/home/slitaz/www
pankso@3 48
pankso@124 49 install-web:
pankso@3 50 install -m 0700 -d $(DESTDIR)$(VAR)/people
pankso@3 51 install -m 0700 -d $(DESTDIR)$(VAR)/auth
pankso@25 52 install -m 0777 -d $(DESTDIR)$(WEB)/bugs
pankso@124 53 # authfile
pankso@3 54 touch $(DESTDIR)$(VAR)/auth/people
pankso@3 55 chmod 0600 $(DESTDIR)$(VAR)/auth/people
pankso@124 56 # admin users
pankso@124 57 touch $(DESTDIR)$(VAR)/auth/admin
pankso@124 58 chmod 0600 $(DESTDIR)$(VAR)/auth/people
pankso@25 59 cp -a web/* $(DESTDIR)$(WEB)/bugs
pankso@55 60 cp README $(DESTDIR)$(WEB)/bugs
pankso@3 61 chown -R www.www $(DESTDIR)$(VAR)/*
pankso@12 62 chown -R www.www $(DESTDIR)$(WEB)/bugs/bug
pankso@124 63 # i18n
pankso@124 64 install -m 0755 -d $(DESTDIR)$(PREFIX)/share/locale
pankso@124 65 cp -a po/mo/* $(DESTDIR)$(PREFIX)/share/locale
pankso@14 66
pankso@14 67 # Uninstall client
pankso@14 68
pankso@14 69 uninstall:
pankso@14 70 rm -f $(DESTDIR)$(PREFIX)/bin/tazbug*
pankso@14 71 rm -f $(DESTDIR)$(PREFIX)/share/applications/tazbug*
pankso@14 72 rm -f $(DESTDIR)$(PREFIX)/etc/slitaz/tazbug.conf
al@31 73
al@31 74 # Clean source
al@31 75
al@31 76 clean:
al@31 77 rm -rf po/mo
al@31 78 rm -f po/*~