Makefile.env, Makefile's: add some variables to Makefiles.env and use them in the make targets 'pot-files'

Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
This commit is contained in:
Davide Madrisan 2012-11-19 23:30:22 +01:00
parent b1d7033d1e
commit 5774796d00
6 changed files with 14 additions and 10 deletions

View File

@ -15,6 +15,10 @@ Changes in version 1.16.0
* Makefiles - Davide Madrisan: * Makefiles - Davide Madrisan:
New target 'pot-files'. New target 'pot-files'.
* Makefiles.env, Makefile's - Davide Madrisan:
Add some variables to Makefiles.env and use them in the make targets
'pot-files'.
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
Changes in version 1.14.3 Changes in version 1.14.3

View File

@ -75,8 +75,8 @@ pot-files: dist-update
@echo "Creating pot files..." @echo "Creating pot files..."
@echo "Generating po template '$(PACKAGE).pot'..."; \ @echo "Generating po template '$(PACKAGE).pot'..."; \
/usr/bin/xgettext -i -L shell \ /usr/bin/xgettext -i -L shell \
--copyright-holder="Davide Madrisan" \ --copyright-holder="$(PO_COPYRIGH_HOLDER)" \
--msgid-bugs-address="davide.madrisan@gmail.com" \ --msgid-bugs-address="$(PO_BUGS_ADDRESS)" \
--no-location \ --no-location \
--package-name=$(PACKAGE) \ --package-name=$(PACKAGE) \
--package-version=${VERSION} \ --package-version=${VERSION} \
@ -85,8 +85,6 @@ pot-files: dist-update
@$(MAKE) pot-files -C plugins || exit 1 @$(MAKE) pot-files -C plugins || exit 1
@$(MAKE) pot-files -C tests || exit 1 @$(MAKE) pot-files -C tests || exit 1
# /usr/bin/msgmerge -i --update po/it/$(PACKAGE).po po/$(PACKAGE).pot
locales: locales:
@for loc in $(LOCALES); do\ @for loc in $(LOCALES); do\
$(MAKE) -C po/$$loc || exit 1;\ $(MAKE) -C po/$$loc || exit 1;\

View File

@ -36,3 +36,5 @@ INSTALL_SCRIPT = ${INSTALL_PROGRAM}
INSTALL_DATA = ${INSTALL} -m 644 INSTALL_DATA = ${INSTALL} -m 644
INSTALL_DIR = ${INSTALL} -d -m 755 INSTALL_DIR = ${INSTALL} -d -m 755
PO_COPYRIGH_HOLDER = Davide Madrisan
PO_BUGS_ADDRESS = davide.madrisan@gmail.com

View File

@ -36,8 +36,8 @@ pot-files: $(pck_libs)
@for f in $(pck_libs); do\ @for f in $(pck_libs); do\
echo -n "Generating po template '$$f.pot'...";\ echo -n "Generating po template '$$f.pot'...";\
/usr/bin/xgettext -i -L shell \ /usr/bin/xgettext -i -L shell \
--copyright-holder="Davide Madrisan" \ --copyright-holder="$(PO_COPYRIGH_HOLDER)" \
--msgid-bugs-address="davide.madrisan@gmail.com" \ --msgid-bugs-address="$(PO_BUGS_ADDRESS)" \
--no-location \ --no-location \
--package-name=$(PACKAGE) \ --package-name=$(PACKAGE) \
--package-version=${VERSION} \ --package-version=${VERSION} \

View File

@ -34,8 +34,8 @@ pot-files: $(pck_plugins)
@for f in $(pck_plugins); do\ @for f in $(pck_plugins); do\
echo -n "Generating po template '$$f.pot'...";\ echo -n "Generating po template '$$f.pot'...";\
/usr/bin/xgettext -i -L shell \ /usr/bin/xgettext -i -L shell \
--copyright-holder="Davide Madrisan" \ --copyright-holder="$(PO_COPYRIGH_HOLDER)" \
--msgid-bugs-address="davide.madrisan@gmail.com" \ --msgid-bugs-address="$(PO_BUGS_ADDRESS)" \
--no-location \ --no-location \
--package-name=$(PACKAGE) \ --package-name=$(PACKAGE) \
--package-version=${VERSION} \ --package-version=${VERSION} \

View File

@ -34,8 +34,8 @@ pot-files: $(pck_tests)
@for f in $(pck_tests); do\ @for f in $(pck_tests); do\
echo -n "Generating po template '$$f.pot'...";\ echo -n "Generating po template '$$f.pot'...";\
/usr/bin/xgettext -i -L shell \ /usr/bin/xgettext -i -L shell \
--copyright-holder="Davide Madrisan" \ --copyright-holder="$(PO_COPYRIGH_HOLDER)" \
--msgid-bugs-address="davide.madrisan@gmail.com" \ --msgid-bugs-address="$(PO_BUGS_ADDRESS)" \
--no-location \ --no-location \
--package-name=$(PACKAGE) \ --package-name=$(PACKAGE) \
--package-version=${VERSION} \ --package-version=${VERSION} \