summaryrefslogtreecommitdiff
path: root/git.mk
diff options
context:
space:
mode:
Diffstat (limited to 'git.mk')
-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