[Pkg-isocodes-devel] [iso-codes] 02/04: Some cleanups to common.mk
Tobias Quathamer
toddy at moszumanska.debian.org
Tue Feb 23 18:41:18 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 c1aff3f6b6eea0304161eced7902c0e7e00d7034
Author: Dr. Tobias Quathamer <toddy at debian.org>
Date: Tue Feb 23 17:32:06 2016 +0100
Some cleanups to common.mk
---
common.mk | 14 ++++++--------
1 file changed, 6 insertions(+), 8 deletions(-)
diff --git a/common.mk b/common.mk
index 82581e7..431d095 100644
--- a/common.mk
+++ b/common.mk
@@ -5,6 +5,8 @@ pofiles = $(wildcard $(srcdir)/*.po)
mofiles = $(patsubst $(srcdir)/%.po,%.mo, $(pofiles))
noinst_DATA = $(mofiles) $(xml_DATA:.xml=.pot)
+localedir = $(datadir)/locale
+
EXTRA_DIST = \
$(pofiles) \
$(xml_DATA) \
@@ -13,15 +15,14 @@ EXTRA_DIST = \
MOSTLYCLEANFILES = \
$(mofiles)
-check-local: check-content
-
# Generic target to create binary .mo files from .po files
%.mo: %.po
$(MSGFMT) $(MSGFMT_FLAGS) -o $@ $<
-.PHONY: check-content
-check-content:
- perl $(top_srcdir)/check_valid_utf8.pl $(pofiles)
+# Used in the domain subdirectories for checking that
+# all .po files contain UTF-8 data
+check-local:
+ python3 $(top_srcdir)/check_valid_utf8.py $(pofiles)
# This target merges all po files with the current pot file,
# removes obsolete msgids and substitutes the Project-Id-Version
@@ -51,10 +52,7 @@ update-po:
sed -i -e 's/^\"Language: tt at iqtelif\\n\"/\"Language: tt\\n\"/' tt.po; \
fi
-localedir = $(datadir)/locale
-
install-data-hook: $(mofiles)
- $(mkinstalldirs) $(DESTDIR)$(datadir)
$(mkinstalldirs) $(DESTDIR)$(localedir)
catalogs='$(mofiles)'; \
for cat in $$catalogs; do \
--
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