build: Skip gitignore files when not building from git
There's really no point in going through the motions there.
This commit is contained in:
parent
a67997ef39
commit
10a9657db0
@ -6,13 +6,14 @@
|
|||||||
GIT_IGNORE_FILES = $(noinst_PROGRAMS) $(check_PROGRAMS) $(check_SCRIPTS) $(GIT_IGNORE_EXTRA)
|
GIT_IGNORE_FILES = $(noinst_PROGRAMS) $(check_PROGRAMS) $(check_SCRIPTS) $(GIT_IGNORE_EXTRA)
|
||||||
|
|
||||||
.gitignore: Makefile.am
|
.gitignore: Makefile.am
|
||||||
$(QUIET_GEN)( \
|
$(QUIET_GEN)if test -d "$(top_srcdir)/.git"; then \
|
||||||
echo "*.o" ; \
|
( echo "*.o" ; \
|
||||||
echo ".gitignore" ; \
|
echo ".gitignore" ; \
|
||||||
) > .gitignore ; \
|
) > .gitignore ; \
|
||||||
for p in $(GIT_IGNORE_FILES); do \
|
for p in $(GIT_IGNORE_FILES); do \
|
||||||
echo "/$$p" >> .gitignore ; \
|
echo "/$$p" >> .gitignore ; \
|
||||||
done
|
done \
|
||||||
|
fi
|
||||||
|
|
||||||
gitignore: .gitignore
|
gitignore: .gitignore
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user