Imported Upstream version 4.4
[platform/upstream/iso-codes.git] / Makefile.am
1 SUBDIRS = $(DOMAINS)
2
3 pkgconfigdir = $(datadir)/pkgconfig
4 pkgconfig_DATA = iso-codes.pc
5
6 # Install the JSON files.
7 jsondir = $(pkgdatadir)/json
8 dist_json_DATA = $(wildcard $(srcdir)/data/*.json)
9
10 # Include the "bin" directory, the bootstrap script,
11 # the common Makefile snippet
12 # and the markdown documentation currently not handled
13 # by automake
14 EXTRA_DIST = bin bootstrap common.mk README.md ChangeLog.md
15
16 DISTCLEANFILES = $(pkgconfig_DATA)
17
18 # Updates all pot files
19 .PHONY: pot
20 pot:
21         for domain in $(DOMAINS); do \
22                 cd $$domain && make $$domain.pot && cd ..; \
23         done
24
25 # Updates all xml files
26 .PHONY: xml
27 xml:
28         for domain in $(DOMAINS); do \
29                 cd $$domain && make $$domain.xml && cd ..; \
30         done
31
32 .PHONY: release
33 release: update-po check distcheck
34
35 .PHONY: update-po
36 update-po:
37         for domain in $(DOMAINS); do \
38                 cd $$domain && make update-po && cd ..; \
39         done
40
41 .PHONY: sign-release
42 sign-release: iso-codes-$(VERSION).tar.xz
43         rm -f iso-codes-$(VERSION).tar.xz.sig
44         gpg --detach-sign iso-codes-$(VERSION).tar.xz