tazweb diff Makefile @ rev 188

Docs: reformat html and use html5 tags, up css; Makefile: use gettext to translate .desktop file, up po files.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue Mar 14 20:15:40 2017 +0200 (2017-03-14)
parents 02eed5624373
children b043c09b31f0
line diff
     1.1 --- a/Makefile	Mon Mar 13 01:50:53 2017 +0100
     1.2 +++ b/Makefile	Tue Mar 14 20:15:40 2017 +0200
     1.3 @@ -6,7 +6,7 @@
     1.4  
     1.5  PACKAGE=tazweb
     1.6  VERSION=1.10
     1.7 -LINGUAS?=de fr ja pt_BR ru vi_VN zh_CN zh_TW
     1.8 +LINGUAS?=$(shell grep -v "^\#" po/LINGUAS)
     1.9  
    1.10  CC?=gcc
    1.11  
    1.12 @@ -28,10 +28,10 @@
    1.13  # i18n
    1.14  
    1.15  pot:
    1.16 -	xgettext -o po/$(PACKAGE).pot -L C -k_ \
    1.17 +	xgettext -o po/$(PACKAGE).pot -k_ \
    1.18  		--package-name="TazWeb" \
    1.19  		--package-version="$(VERSION)" \
    1.20 -		./src/main.c
    1.21 +		./src/tazweb.c ./lib/helper.sh ./data/tazweb.desktop.in
    1.22  
    1.23  msgmerge:
    1.24  	@for l in $(LINGUAS); do \
    1.25 @@ -46,7 +46,11 @@
    1.26  		msgfmt -o po/mo/$$l/LC_MESSAGES/$(PACKAGE).mo po/$$l.po; \
    1.27  	done;
    1.28  
    1.29 -install:
    1.30 +desktop:
    1.31 +	msgfmt --desktop --template=data/tazweb.desktop.in -d po \
    1.32 +		-o data/tazweb.desktop;
    1.33 +
    1.34 +install: msgfmt desktop
    1.35  	mkdir -p \
    1.36  		$(DESTDIR)$(DOCDIR)/$(PACKAGE) \
    1.37  		$(DESTDIR)$(PREFIX)/bin \
    1.38 @@ -69,6 +73,7 @@
    1.39  	rm -f po/*.mo
    1.40  	rm -f po/*.*~
    1.41  	rm -f src/Makefile src/*.o src/tazweb-qt
    1.42 +	rm -f data/*.desktop
    1.43  
    1.44  help:
    1.45  	@echo "make [ ng | qt | pot | msgmerge | msgfmt | install | clean ]"