[gtk+] Modify git.mk to handle our split NLS directories



commit 445286c2c3fdb7a3c246491da8ceb2a82c07dfd4
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Wed Aug 3 11:52:08 2016 +0100

    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.

 Makefile.am |   10 ++--------
 git.mk      |   40 +++++++++++++++++++++++-----------------
 2 files changed, 25 insertions(+), 25 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index 0e9eeff..86f773a 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -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
diff --git a/git.mk b/git.mk
index af15798..6175190 100644
--- a/git.mk
+++ b/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 \


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]