Makefile.am 789 Bytes
Newer Older
Daniel Drake's avatar
Daniel Drake committed
1
AUTOMAKE_OPTIONS = dist-bzip2
2
SUBDIRS = src data tests pam doc po
Bastien Nocera's avatar
Bastien Nocera committed
3
EXTRA_DIST = TODO intltool-extract.in intltool-merge.in intltool-update.in
Daniel Drake's avatar
Daniel Drake committed
4

5 6
DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc

7 8
all: check create-pot

9 10
check: check-translations

11 12 13
create-pot:
	$(MAKE) -C po fprintd.pot

14 15 16
check-translations:
	@for i in $(top_srcdir)/po/*.po ; do								\
		if ! grep -q `basename $$i | sed 's,.po,,'` $(top_srcdir)/po/LINGUAS ; then		\
17
			echo '**********************************';					\
18
			echo '***' `basename $$i | sed 's,.po,,'` missing from po/LINGUAS '***' ;	\
19
			echo '**********************************';					\
20 21 22
			exit 1;										\
		fi;											\
	done;
23 24 25 26

update-translations: create-pot check-translations
	@tx pull --all --force --skip
	@tx push --source
27 28

-include $(top_srcdir)/git.mk