mirror of
https://gitlab.com/mishakmak/pam-fprint-grosshack.git
synced 2026-04-08 20:03:34 +02:00
These utilities are generally useful beyond only testing purproses. And, since it is desirable to have automated tests inside the tests subdirecty, it makes sense to move them elsewhere.
30 lines
988 B
Makefile
30 lines
988 B
Makefile
AUTOMAKE_OPTIONS = dist-bzip2
|
|
SUBDIRS = src data utils pam doc po
|
|
EXTRA_DIST = TODO intltool-extract.in intltool-merge.in intltool-update.in
|
|
|
|
DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc --with-systemdsystemunitdir='$${libdir}/systemd/system-distcheck'
|
|
|
|
all: check create-pot
|
|
|
|
check: check-translations
|
|
|
|
create-pot:
|
|
$(MAKE) -C po fprintd.pot
|
|
|
|
check-translations:
|
|
@for i in $(top_srcdir)/po/*.po ; do \
|
|
if ! grep -q `basename $$i | sed 's,.po,,'` $(top_srcdir)/po/LINGUAS ; then \
|
|
echo '**********************************'; \
|
|
echo '***' `basename $$i | sed 's,.po,,'` missing from po/LINGUAS '***' ; \
|
|
echo '**********************************'; \
|
|
exit 1; \
|
|
fi; \
|
|
done;
|
|
|
|
update-translations: create-pot check-translations
|
|
@tx -r $(srcdir) pull --all --force --skip
|
|
@if [ ! -d .tx ] ; then mkdir .tx ; fi ; if [ x$(srcdir) != x$(builddir) ] ; then cp -f $(srcdir)/.tx/config .tx/ ; fi
|
|
@tx push --source
|
|
|
|
-include $(top_srcdir)/git.mk
|