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:
parent
1b999c9b6a
commit
183f0e3ba4
@ -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
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user