Modify git.mk to handle our split NLS directories

GTK+ has two directories for translations: the default 'po' and the
additional 'po-properties' for the GObject properties translation
domain.

Since the content of the translations directories are filled by
autoreconf and gettext, and are duplicated between the two gettext
domains we use, we should handle this ad hoc inside git.mk, instead of
trying to catch up by adding po-properties files in GITIGNOREFILES.
This commit is contained in:
Emmanuele Bassi
2016-08-03 11:52:08 +01:00
parent 9e1afd7ba8
commit 445286c2c3
2 changed files with 25 additions and 25 deletions

View File

@ -104,13 +104,7 @@ AM_DISTCHECK_CONFIGURE_FLAGS = \
--enable-introspection \
--enable-installed-tests
GITIGNOREFILES = \
po-properties/Makefile.in.in \
po-properties/Makefile.in \
po-properties/Makefile \
po-properties/*.gmo \
po-properties/*.mo \
po-properties/POTFILES \
po-properties/stamp-it
GITIGNORE_TRANSLATION_DIRS = po-properties
GITIGNOREFILES = po-properties/gtk30-properties.pot
-include $(top_srcdir)/git.mk

40
git.mk
View File

@ -214,28 +214,34 @@ $(srcdir)/.gitignore: Makefile.am $(top_srcdir)/git.mk
$(appstream_XML:.xml=.valid) \
; do echo "/$$x"; done; \
fi; \
if test -f $(srcdir)/po/Makefile.in.in; then \
for tdir in po $(GITIGNORE_TRANSLATION_DIRS); do \
if test -f "$(srcdir)/$$tdir/Makefile.in.in"; then \
for x in \
$$tdir/Makefile.in.in \
$$tdir/Makefile.in.in~ \
$$tdir/Makefile.in \
$$tdir/Makefile \
$$tdir/Makevars.template \
$$tdir/POTFILES \
$$tdir/Rules-quot \
$$tdir/stamp-it \
$$tdir/stamp-po \
$$tdir/.intltool-merge-cache \
"$$tdir/*.gmo" \
"$$tdir/*.header" \
"$$tdir/*.mo" \
"$$tdir/*.sed" \
"$$tdir/*.sin" \
$$tdir/$(GETTEXT_PACKAGE).pot \
; do echo "/$$x"; done; \
fi; \
for x in \
po/Makefile.in.in \
po/Makefile.in.in~ \
po/Makefile.in \
po/Makefile \
po/Makevars.template \
po/POTFILES \
po/Rules-quot \
po/stamp-it \
po/.intltool-merge-cache \
"po/*.gmo" \
"po/*.header" \
"po/*.mo" \
"po/*.sed" \
"po/*.sin" \
po/$(GETTEXT_PACKAGE).pot \
ABOUT-NLS \
intltool-extract.in \
intltool-merge.in \
intltool-update.in \
; do echo "/$$x"; done; \
fi; \
done; \
if test -f $(srcdir)/configure; then \
for x in \
autom4te.cache \