Makefile.am 799 Bytes
Newer Older
1
SUBDIRS = iso_15924 iso_3166 iso_3166_2 iso_4217 iso_639 iso_639_3
2

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

EXTRA_DIST = \
7
	LICENSE			\
8
	rules.make		\
9 10
	iso2pot.py		\
	check_valid_utf8.pl
11 12

DISTCLEANFILES = $(pkgconfig_DATA)
13 14 15


.PHONY: release
16 17 18 19 20 21 22
release: update-po check distcheck

.PHONY: update-po
update-po:
	for domain in $(SUBDIRS); do \
		cd $$domain && make update-po && cd ..; \
	done
23 24

.PHONY: sign-release
25 26 27
sign-release: iso-codes-$(VERSION).tar.xz
	rm -f iso-codes-$(VERSION).tar.xz.sig
	gpg --detach-sign iso-codes-$(VERSION).tar.xz
28 29 30

.PHONY: upload
upload:
31
	@if [[ -f "iso-codes-$(VERSION).tar.xz" ]] \
32
	&& [[ -f "iso-codes-$(VERSION).tar.xz.sig" ]]; then \
33
		scp iso-codes-$(VERSION).tar.* \
34
		alioth.debian.org:/srv/home/groups/pkg-isocodes/htdocs/downloads; \
35
	fi