Commit 445286c2 authored by Emmanuele Bassi's avatar Emmanuele Bassi

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.
parent 9e1afd7b
......@@ -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
......@@ -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 \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment