mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
Simplify the creation of out-of-tree Makefiles
They now always use the absolute path to the src Makefile. Silence the mkinstalldir call.
This commit is contained in:
parent
9d4ed7ab99
commit
eaee3d5f44
17
configure.in
17
configure.in
@ -1265,18 +1265,15 @@ AC_OUTPUT([ \
|
||||
src/intl/gettext/ref-del.sed
|
||||
])
|
||||
|
||||
srcdir2="$(cd "$srcdir" && pwd)"
|
||||
if test "$srcdir2" != "$builddir"; then
|
||||
MAKEFILES=$("$MAKE" -C "$srcdir" list | grep Makefile)
|
||||
abs_srcdir="$(cd "$srcdir" && pwd)"
|
||||
# builddir is always absolute!
|
||||
if test "$abs_srcdir" != "$builddir"; then
|
||||
MAKEFILES=$("$MAKE" -C "$abs_srcdir" list | grep Makefile)
|
||||
|
||||
for i in $MAKEFILES; do
|
||||
$MKINSTALLDIRS "$builddir/$(dirname $i)"
|
||||
grep top_builddir= "$srcdir/$i" > "$builddir/$i"
|
||||
case "$srcdir" in
|
||||
/*) echo "include $srcdir/$i" >> "$builddir/$i" ;;
|
||||
*) echo "include \$(top_builddir)/$srcdir/$i" >> "$builddir/$i" ;;
|
||||
esac
|
||||
echo "creating $builddir/$i"
|
||||
echo "creating $i"
|
||||
$MKINSTALLDIRS "$builddir/$(dirname $i)" >/dev/null
|
||||
echo "include $abs_srcdir/$i" > "$builddir/$i"
|
||||
done
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user