summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2015-04-23 21:33:30 +0100
committerEmmanuele Bassi <ebassi@gnome.org>2015-04-23 21:43:48 +0100
commit2e9eb3d783364955f005e99b3c19b3cc20fd4a80 (patch)
treeb6feb22a72ed80652cceb86d4c896b1b17e334db
parentd0e4821ae8930912bc171f51cef740d98b3046d3 (diff)
downloadclutter-2e9eb3d783364955f005e99b3c19b3cc20fd4a80.tar.gz
build: Skip gitignore files when not building from git
There's really no point in going through the motions there.
-rw-r--r--build/autotools/Makefile.am.gitignore15
1 files changed, 8 insertions, 7 deletions
diff --git a/build/autotools/Makefile.am.gitignore b/build/autotools/Makefile.am.gitignore
index b019a3ec3..ec3f3c796 100644
--- a/build/autotools/Makefile.am.gitignore
+++ b/build/autotools/Makefile.am.gitignore
@@ -6,13 +6,14 @@
GIT_IGNORE_FILES = $(noinst_PROGRAMS) $(check_PROGRAMS) $(check_SCRIPTS) $(GIT_IGNORE_EXTRA)
.gitignore: Makefile.am
- $(QUIET_GEN)( \
- echo "*.o" ; \
- echo ".gitignore" ; \
- ) > .gitignore ; \
- for p in $(GIT_IGNORE_FILES); do \
- echo "/$$p" >> .gitignore ; \
- done
+ $(QUIET_GEN)if test -d "$(top_srcdir)/.git"; then \
+ ( echo "*.o" ; \
+ echo ".gitignore" ; \
+ ) > .gitignore ; \
+ for p in $(GIT_IGNORE_FILES); do \
+ echo "/$$p" >> .gitignore ; \
+ done \
+ fi
gitignore: .gitignore