[Pkg-isocodes-devel] [iso-codes] 01/02: Move some common Makefile parts into common.mk

Tobias Quathamer toddy at moszumanska.debian.org
Mon Feb 22 19:49:06 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 19d2562e6def7aec0be51797503a4bb31f18a2ec
Author: Dr. Tobias Quathamer <toddy at debian.org>
Date:   Mon Feb 22 18:55:20 2016 +0100

    Move some common Makefile parts into common.mk
---
 common.mk              | 17 +++++++++++++++++
 iso_15924/Makefile.am  | 19 +------------------
 iso_3166/Makefile.am   | 19 +------------------
 iso_3166_2/Makefile.am | 19 +------------------
 iso_4217/Makefile.am   | 19 +------------------
 iso_639/Makefile.am    | 19 +------------------
 iso_639_3/Makefile.am  | 19 +------------------
 iso_639_5/Makefile.am  | 19 +------------------
 8 files changed, 24 insertions(+), 126 deletions(-)

diff --git a/common.mk b/common.mk
index 02a6f85..5cef71a 100644
--- a/common.mk
+++ b/common.mk
@@ -1,4 +1,21 @@
+xmldir = $(datadir)/xml/iso-codes
+xml_DATA = $(DOMAIN).xml
 
+pofiles = $(wildcard $(srcdir)/*.po)
+mofiles = $(patsubst $(srcdir)/%.po,%.mo, $(pofiles))
+noinst_DATA = $(mofiles) $(xml_DATA:.xml=.pot)
+
+EXTRA_DIST = \
+	$(pofiles)	\
+	$(xml_DATA)	\
+	$(DOMAIN).pot
+
+MOSTLYCLEANFILES = \
+	$(mofiles)
+
+check-local: check-content
+
+# Generic target to create binary .mo files from .po files
 %.mo: %.po
 	$(MSGFMT) $(MSGFMT_FLAGS) -o $@ $<
 
diff --git a/iso_15924/Makefile.am b/iso_15924/Makefile.am
index 6f5f07d..93dcead 100644
--- a/iso_15924/Makefile.am
+++ b/iso_15924/Makefile.am
@@ -1,25 +1,8 @@
 DOMAIN = iso_15924
 VERSION = @PACKAGE_VERSION@
 
-xmldir = $(datadir)/xml/iso-codes
-xml_DATA = $(DOMAIN).xml
-
-pofiles = $(wildcard $(srcdir)/*.po)
-mofiles = $(patsubst $(srcdir)/%.po,%.mo, $(pofiles))
-noinst_DATA = $(mofiles) $(xml_DATA:.xml=.pot) 
+include $(top_srcdir)/common.mk
 
 iso_15924.pot: iso_15924.xml
 	../iso2pot.py --is-version ${VERSION}  --comments alpha_4_code \
 		--fields name  --outfile $@ $<
-
-EXTRA_DIST = \
-	$(pofiles)	\
-	$(xml_DATA)	\
-	iso_15924.pot
-
-MOSTLYCLEANFILES = \
-	$(mofiles)
-
-check-local: check-content
-
-include $(top_srcdir)/common.mk
diff --git a/iso_3166/Makefile.am b/iso_3166/Makefile.am
index 0fb118d..5d25cd2 100644
--- a/iso_3166/Makefile.am
+++ b/iso_3166/Makefile.am
@@ -1,25 +1,8 @@
 DOMAIN = iso_3166
 VERSION = @PACKAGE_VERSION@
 
-xmldir = $(datadir)/xml/iso-codes
-xml_DATA = $(DOMAIN).xml
-
-pofiles = $(wildcard $(srcdir)/*.po)
-mofiles = $(patsubst $(srcdir)/%.po,%.mo, $(pofiles))
-noinst_DATA = $(mofiles) $(xml_DATA:.xml=.pot)
+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 $@ $<
-
-EXTRA_DIST = \
-	$(pofiles)	\
-	$(xml_DATA)	\
-	iso_3166.pot
-
-MOSTLYCLEANFILES = \
-	$(mofiles)
-
-check-local: check-content
-
-include $(top_srcdir)/common.mk
diff --git a/iso_3166_2/Makefile.am b/iso_3166_2/Makefile.am
index 9875e43..c2903bf 100644
--- a/iso_3166_2/Makefile.am
+++ b/iso_3166_2/Makefile.am
@@ -1,25 +1,8 @@
 DOMAIN = iso_3166_2
 VERSION = @PACKAGE_VERSION@
 
-xmldir = $(datadir)/xml/iso-codes
-xml_DATA = $(DOMAIN).xml
-
-pofiles = $(wildcard $(srcdir)/*.po)
-mofiles = $(patsubst $(srcdir)/%.po,%.mo, $(pofiles))
-noinst_DATA = $(mofiles) $(xml_DATA:.xml=.pot) 
+include $(top_srcdir)/common.mk
 
 iso_3166_2.pot: iso_3166_2.xml
 	../iso2pot.py --is-version ${VERSION} --comment code \
 		--fields name --outfile $@ $< 
-
-EXTRA_DIST = \
-	$(pofiles)	\
-	$(xml_DATA)	\
-	iso_3166_2.pot
-
-MOSTLYCLEANFILES = \
-	$(mofiles)
-
-check-local: check-content
-
-include $(top_srcdir)/common.mk
diff --git a/iso_4217/Makefile.am b/iso_4217/Makefile.am
index fb57584..2234b1c 100644
--- a/iso_4217/Makefile.am
+++ b/iso_4217/Makefile.am
@@ -1,25 +1,8 @@
 DOMAIN = iso_4217
 VERSION = @PACKAGE_VERSION@
 
-xmldir = $(datadir)/xml/iso-codes
-xml_DATA = $(DOMAIN).xml
-
-pofiles = $(wildcard $(srcdir)/*.po)
-mofiles = $(patsubst $(srcdir)/%.po,%.mo, $(pofiles))
-noinst_DATA = $(mofiles) $(xml_DATA:.xml=.pot) 
+include $(top_srcdir)/common.mk
 
 iso_4217.pot: iso_4217.xml
 	../iso2pot.py --is-version ${VERSION}  --comments letter_code \
 		--fields currency_name  --outfile $@ $< 
-
-EXTRA_DIST = \
-	$(pofiles)	\
-	$(xml_DATA)	\
-	iso_4217.pot
-
-MOSTLYCLEANFILES = \
-	$(mofiles)
-
-check-local: check-content
-
-include $(top_srcdir)/common.mk
diff --git a/iso_639/Makefile.am b/iso_639/Makefile.am
index 6db2592..4c33c73 100644
--- a/iso_639/Makefile.am
+++ b/iso_639/Makefile.am
@@ -1,27 +1,10 @@
 DOMAIN = iso_639
 VERSION = @PACKAGE_VERSION@
 
-xmldir = $(datadir)/xml/iso-codes
-xml_DATA = $(DOMAIN).xml
-
-pofiles = $(wildcard $(srcdir)/*.po)
-mofiles = $(patsubst $(srcdir)/%.po,%.mo, $(pofiles))
-noinst_DATA = $(mofiles) iso_639.pot
+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
-
-EXTRA_DIST = \
-	$(pofiles)	\
-	$(xml_DATA)	\
-	iso_639.pot
-
-MOSTLYCLEANFILES = \
-	$(mofiles)
-
-check-local: check-content
-
-include $(top_srcdir)/common.mk
diff --git a/iso_639_3/Makefile.am b/iso_639_3/Makefile.am
index d945638..fb1b563 100644
--- a/iso_639_3/Makefile.am
+++ b/iso_639_3/Makefile.am
@@ -1,25 +1,8 @@
 DOMAIN = iso_639_3
 VERSION = @PACKAGE_VERSION@
 
-xmldir = $(datadir)/xml/iso-codes
-xml_DATA = $(DOMAIN).xml
-
-pofiles = $(wildcard $(srcdir)/*.po)
-mofiles = $(patsubst $(srcdir)/%.po,%.mo, $(pofiles))
-noinst_DATA = $(mofiles) $(xml_DATA:.xml=.pot) 
+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 $@ $< 
-
-EXTRA_DIST = \
-	$(pofiles)	\
-	$(xml_DATA)	\
-	iso_639_3.pot
-
-MOSTLYCLEANFILES = \
-	$(mofiles)
-
-check-local: check-content
-
-include $(top_srcdir)/common.mk
diff --git a/iso_639_5/Makefile.am b/iso_639_5/Makefile.am
index d35b7e7..94f452e 100644
--- a/iso_639_5/Makefile.am
+++ b/iso_639_5/Makefile.am
@@ -1,25 +1,8 @@
 DOMAIN = iso_639_5
 VERSION = @PACKAGE_VERSION@
 
-xmldir = $(datadir)/xml/iso-codes
-xml_DATA = $(DOMAIN).xml
-
-pofiles = $(wildcard $(srcdir)/*.po)
-mofiles = $(patsubst $(srcdir)/%.po,%.mo, $(pofiles))
-noinst_DATA = $(mofiles) $(xml_DATA:.xml=.pot) 
+include $(top_srcdir)/common.mk
 
 iso_639_5.pot: iso_639_5.xml
 	../iso2pot.py --is-version ${VERSION} --comment id \
 		--fields name --outfile $@ $< 
-
-EXTRA_DIST = \
-	$(pofiles)	\
-	$(xml_DATA)	\
-	iso_639_5.pot
-
-MOSTLYCLEANFILES = \
-	$(mofiles)
-
-check-local: check-content
-
-include $(top_srcdir)/common.mk

-- 
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