mirror of
https://github.com/rkd77/elinks.git
synced 2024-09-27 02:56:18 -04: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
2748d043f9
commit
943f9d7185
@ -1347,7 +1347,10 @@ AC_OUTPUT([ \
|
|||||||
abs_srcdir="$(cd "$srcdir" && pwd)"
|
abs_srcdir="$(cd "$srcdir" && pwd)"
|
||||||
# builddir is always absolute!
|
# builddir is always absolute!
|
||||||
if test "$abs_srcdir" != "$builddir"; then
|
if test "$abs_srcdir" != "$builddir"; then
|
||||||
|
# Bootstrap the Makefile creation
|
||||||
echo "include $abs_srcdir/Makefile" > "$builddir/Makefile"
|
echo "include $abs_srcdir/Makefile" > "$builddir/Makefile"
|
||||||
|
# Make cg-status ignore this build directory
|
||||||
|
echo "*" > "$builddir/.gitignore"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
"$MAKE" "SRC=$abs_srcdir" init
|
"$MAKE" "SRC=$abs_srcdir" init
|
||||||
|
Loading…
Reference in New Issue
Block a user