Makefile.am 1020 Bytes
Newer Older
1
SUBDIRS = $(DOMAINS)
2

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

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

10 11
# Include the "bin" directory and the common Makefile snippet.
EXTRA_DIST = bin common.mk
12 13

DISTCLEANFILES = $(pkgconfig_DATA)
14

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

22
.PHONY: release
23 24 25 26
release: update-po check distcheck

.PHONY: update-po
update-po:
27
	for domain in $(DOMAINS); do \
28 29
		cd $$domain && make update-po && cd ..; \
	done
30 31

.PHONY: sign-release
32 33 34
sign-release: iso-codes-$(VERSION).tar.xz
	rm -f iso-codes-$(VERSION).tar.xz.sig
	gpg --detach-sign iso-codes-$(VERSION).tar.xz
35 36 37

.PHONY: upload
upload:
38
	@if [[ -f "iso-codes-$(VERSION).tar.xz" ]] \
39
	&& [[ -f "iso-codes-$(VERSION).tar.xz.sig" ]]; then \
40
		scp iso-codes-$(VERSION).tar.* \
41
		alioth.debian.org:/srv/home/groups/pkg-isocodes/htdocs/downloads; \
42
	fi