summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2009-05-03 20:29:17 -0400
committerBehdad Esfahbod <behdad@behdad.org>2009-05-03 20:29:17 -0400
commit967e4eb92e3b7ce2bd92f18a84ecdc3f8bb39ed3 (patch)
tree50b31b9e5f7a4d503b934f7f2641ff514934f4df
parentf7c76896afc0f34db01a039933ee64ddc23bc3ab (diff)
downloadpango-967e4eb92e3b7ce2bd92f18a84ecdc3f8bb39ed3.tar.gz
[git.mk] Fix DEST_SUBDIR recursion
-rw-r--r--git.mk15
1 files changed, 8 insertions, 7 deletions
diff --git a/git.mk b/git.mk
index b9b077ff..2e23c0a4 100644
--- a/git.mk
+++ b/git.mk
@@ -164,15 +164,16 @@ $(srcdir)/.gitignore: Makefile.am $(top_srcdir)/git.mk
LANG=C sort | uniq > $@.tmp && \
mv $@.tmp $@;
-all: $(srcdir)/.gitignore gitignore-recurse
-gitignore-recurse:
+all: $(srcdir)/.gitignore gitignore-recurse-maybe
+gitignore-recurse-maybe:
@if test "x$(SUBDIRS)" = "x$(DIST_SUBDIRS)"; then :; else \
- list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
- test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) .gitignore gitignore-recurse); \
- done; \
+ $(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); \
+ done
maintainer-clean: gitignore-clean
gitignore-clean:
-rm -f $(srcdir)/.gitignore
-.PHONY: gitignore-clean gitignore-recurse
-
+.PHONY: gitignore-clean gitignore-recurse gitignore-recurse-maybe