1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-06-20 00:15:31 +00:00

Create .gitignore file when builddir != srcdir

... so that cg-status will not list files in the builddir when it is
embedded in the srcdir.
This commit is contained in:
Jonas Fonseca 2006-01-15 18:49:44 +01:00 committed by Jonas Fonseca
parent 2748d043f9
commit 943f9d7185

View File

@ -1347,7 +1347,10 @@ AC_OUTPUT([ \
abs_srcdir="$(cd "$srcdir" && pwd)"
# builddir is always absolute!
if test "$abs_srcdir" != "$builddir"; then
# Bootstrap the Makefile creation
echo "include $abs_srcdir/Makefile" > "$builddir/Makefile"
# Make cg-status ignore this build directory
echo "*" > "$builddir/.gitignore"
fi
"$MAKE" "SRC=$abs_srcdir" init