Makefile.am 1.17 KB
Newer Older
1
SUBDIRS = $(DOMAINS)
2

3
pkgconfigdir = $(datadir)/pkgconfig
4 5
pkgconfig_DATA = iso-codes.pc

6
# Install the JSON files.
Tobias Quathamer's avatar
Tobias Quathamer committed
7 8 9
jsondir = $(pkgdatadir)/json
dist_json_DATA = $(wildcard $(srcdir)/data/*.json)

10 11
# Include the "bin" directory, the common Makefile snippet
# and the markdown documentation currently not handled
12
# by automake
13
EXTRA_DIST = bin common.mk README.md
14 15

DISTCLEANFILES = $(pkgconfig_DATA)
16

17 18 19 20 21 22 23
# Updates all pot files
.PHONY: pot
pot:
	for domain in $(DOMAINS); do \
		cd $$domain && make $$domain.pot && cd ..; \
	done

24 25 26 27 28 29 30
# Updates all xml files
.PHONY: xml
xml:
	for domain in $(DOMAINS); do \
		cd $$domain && make $$domain.xml && cd ..; \
	done

31
.PHONY: release
32 33 34 35
release: update-po check distcheck

.PHONY: update-po
update-po:
36
	for domain in $(DOMAINS); do \
37 38
		cd $$domain && make update-po && cd ..; \
	done
39 40

.PHONY: sign-release
41 42 43
sign-release: iso-codes-$(VERSION).tar.xz
	rm -f iso-codes-$(VERSION).tar.xz.sig
	gpg --detach-sign iso-codes-$(VERSION).tar.xz
44 45 46

.PHONY: upload
upload:
47
	@if [[ -f "iso-codes-$(VERSION).tar.xz" ]] \
48
	&& [[ -f "iso-codes-$(VERSION).tar.xz.sig" ]]; then \
49
		scp iso-codes-$(VERSION).tar.* \
50
		alioth.debian.org:/srv/home/groups/pkg-isocodes/htdocs/downloads; \
51
	fi