Remove unused variable
[vte.git] / git.mk
diff --git a/git.mk b/git.mk
index 74fa564..5ab41ba 100644 (file)
--- a/git.mk
+++ b/git.mk
@@ -115,6 +115,7 @@ $(srcdir)/.gitignore: Makefile.am $(top_srcdir)/git.mk
                                po/.intltool-merge-cache \
                                "po/*.gmo" \
                                "po/*.mo" \
+                               po/$(GETTEXT_PACKAGE).pot \
                                intltool-extract.in \
                                intltool-merge.in \
                                intltool-update.in \
@@ -171,8 +172,11 @@ gitignore-recurse-maybe:
                $(MAKE) $(AM_MAKEFLAGS) gitignore-recurse; \
        fi;
 gitignore-recurse:
-       @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
-         test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) .gitignore gitignore-recurse || echo "Skipping $$subdir"); \
+       @for subdir in $(DIST_SUBDIRS); do \
+         case " $(SUBDIRS) " in \
+           *" $$subdir "*) :;; \
+           *) test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) .gitignore gitignore-recurse || echo "Skipping $$subdir");; \
+         esac; \
        done
 gitignore: $(srcdir)/.gitignore gitignore-recurse