1
0
mirror of https://github.com/rkd77/elinks.git synced 2025-02-02 15:09:23 -05: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 1b999c9b6a
commit 183f0e3ba4

View File

@ -1292,8 +1292,11 @@ 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" "SRC=$abs_srcdir" init
# Make cg-status ignore this build directory
echo "*" > "$builddir/.gitignore"
fi