[Pkg-isocodes-devel] [iso-codes] 02/07: Move pot creation into common.mk
Tobias Quathamer
toddy at moszumanska.debian.org
Fri Mar 4 13:07:02 UTC 2016
This is an automated email from the git hooks/post-receive script.
toddy pushed a commit to branch master
in repository iso-codes.
commit cf650b4734b33ef99df513030c0e826a58a9a7d2
Author: Dr. Tobias Quathamer <toddy at debian.org>
Date: Fri Mar 4 12:47:05 2016 +0100
Move pot creation into common.mk
---
common.mk | 4 ++++
iso_15924/Makefile.am | 4 ----
iso_3166-1/Makefile.am | 4 ----
iso_3166-2/Makefile.am | 4 ----
iso_4217/Makefile.am | 4 ----
iso_639-2/Makefile.am | 6 ------
iso_639-3/Makefile.am | 4 ----
iso_639-5/Makefile.am | 4 ----
8 files changed, 4 insertions(+), 30 deletions(-)
diff --git a/common.mk b/common.mk
index efc5a0f..e08f4ef 100644
--- a/common.mk
+++ b/common.mk
@@ -19,6 +19,10 @@ MOSTLYCLEANFILES = \
%.mo: %.po
$(MSGFMT) $(MSGFMT_FLAGS) -o $@ $<
+# Generic target to create .pot files from JSON data files
+$(DOMAIN).pot: $(top_srcdir)/data/$(DOMAIN).json
+ python3 $(top_srcdir)/bin/pot_from_json.py $(DOMAIN) $(top_srcdir)/data
+
# Used in the domain subdirectories for checking that
# all .po files contain UTF-8 data
check-local:
diff --git a/iso_15924/Makefile.am b/iso_15924/Makefile.am
index 81d2519..e664874 100644
--- a/iso_15924/Makefile.am
+++ b/iso_15924/Makefile.am
@@ -1,7 +1,3 @@
DOMAIN = iso_15924
include $(top_srcdir)/common.mk
-
-iso_15924.pot: iso_15924.xml
- ../iso2pot.py --is-version ${VERSION} --comments alpha_4_code \
- --fields name --outfile $@ $<
diff --git a/iso_3166-1/Makefile.am b/iso_3166-1/Makefile.am
index ab22bc3..20f2323 100644
--- a/iso_3166-1/Makefile.am
+++ b/iso_3166-1/Makefile.am
@@ -1,7 +1,3 @@
DOMAIN = iso_3166-1
include $(top_srcdir)/common.mk
-
-iso_3166.pot: iso_3166.xml
- ../iso2pot.py --is-version $(VERSION) --comments alpha_3_code \
- --fields name,names,official_name,common_name --outfile $@ $<
diff --git a/iso_3166-2/Makefile.am b/iso_3166-2/Makefile.am
index 83a3684..8f4fcff 100644
--- a/iso_3166-2/Makefile.am
+++ b/iso_3166-2/Makefile.am
@@ -1,7 +1,3 @@
DOMAIN = iso_3166-2
include $(top_srcdir)/common.mk
-
-iso_3166_2.pot: iso_3166_2.xml
- ../iso2pot.py --is-version ${VERSION} --comment code \
- --fields name --outfile $@ $<
diff --git a/iso_4217/Makefile.am b/iso_4217/Makefile.am
index af7d221..73ef5a0 100644
--- a/iso_4217/Makefile.am
+++ b/iso_4217/Makefile.am
@@ -1,7 +1,3 @@
DOMAIN = iso_4217
include $(top_srcdir)/common.mk
-
-iso_4217.pot: iso_4217.xml
- ../iso2pot.py --is-version ${VERSION} --comments letter_code \
- --fields currency_name --outfile $@ $<
diff --git a/iso_639-2/Makefile.am b/iso_639-2/Makefile.am
index 8397709..408c316 100644
--- a/iso_639-2/Makefile.am
+++ b/iso_639-2/Makefile.am
@@ -1,9 +1,3 @@
DOMAIN = iso_639-2
include $(top_srcdir)/common.mk
-
-iso_639.pot: iso_639.xml
- $(top_srcdir)/iso2pot.py --is-version $(VERSION) \
- --comments iso_639_2T_code \
- --comments iso_639_1_code \
- --fields name,common_name --outfile $@ iso_639.xml
diff --git a/iso_639-3/Makefile.am b/iso_639-3/Makefile.am
index d391802..4150ede 100644
--- a/iso_639-3/Makefile.am
+++ b/iso_639-3/Makefile.am
@@ -1,7 +1,3 @@
DOMAIN = iso_639-3
include $(top_srcdir)/common.mk
-
-iso_639_3.pot: iso_639_3.xml
- ../iso2pot.py --is-version ${VERSION} --comment id \
- --fields name,inverted_name,reference_name,common_name --outfile $@ $<
diff --git a/iso_639-5/Makefile.am b/iso_639-5/Makefile.am
index b17f385..659eee5 100644
--- a/iso_639-5/Makefile.am
+++ b/iso_639-5/Makefile.am
@@ -1,7 +1,3 @@
DOMAIN = iso_639-5
include $(top_srcdir)/common.mk
-
-iso_639_5.pot: iso_639_5.xml
- ../iso2pot.py --is-version ${VERSION} --comment id \
- --fields name --outfile $@ $<
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-isocodes/iso-codes.git
More information about the Pkg-isocodes-devel
mailing list