Commit 19d2562e authored by Tobias Quathamer's avatar Tobias Quathamer

Move some common Makefile parts into common.mk

parent 7a2c6a77
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 $@ $<
......
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
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
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
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
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
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
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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment