1AUTOMAKE_OPTIONS = dist-bzip2
2SUBDIRS = src data tests pam doc po
3EXTRA_DIST = TODO intltool-extract.in intltool-merge.in intltool-update.in
4
5DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc --with-systemdsystemunitdir='$${libdir}/systemd/system-distcheck'
6
7all: check create-pot
8
9check: check-translations
10
11create-pot:
12	$(MAKE) -C po fprintd.pot
13
14check-translations:
15	@for i in $(top_srcdir)/po/*.po ; do								\
16		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			exit 1;										\
21		fi;											\
22	done;
23
24update-translations: create-pot check-translations
25	@tx -r $(srcdir) pull --all --force --skip
26	@if [ ! -d .tx ] ; then mkdir .tx ; fi ; if [ x$(srcdir) != x$(builddir) ] ; then cp -f $(srcdir)/.tx/config .tx/ ; fi
27	@tx push --source
28
29-include $(top_srcdir)/git.mk
30