Makefile.am 988 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
DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc --with-systemdsystemunitdir='$${libdir}/systemd/system-distcheck'
6

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

update-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