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
|
src/intl/gettext/ref-del.sed
|
||||||
])
|
])
|
||||||
|
|
||||||
srcdir2="$(cd "$srcdir" && pwd)"
|
abs_srcdir="$(cd "$srcdir" && pwd)"
|
||||||
if test "$srcdir2" != "$builddir"; then
|
# builddir is always absolute!
|
||||||
MAKEFILES=$("$MAKE" -C "$srcdir" list | grep Makefile)
|
if test "$abs_srcdir" != "$builddir"; then
|
||||||
|
MAKEFILES=$("$MAKE" -C "$abs_srcdir" list | grep Makefile)
|
||||||
|
|
||||||
for i in $MAKEFILES; do
|
for i in $MAKEFILES; do
|
||||||
$MKINSTALLDIRS "$builddir/$(dirname $i)"
|
echo "creating $i"
|
||||||
grep top_builddir= "$srcdir/$i" > "$builddir/$i"
|
$MKINSTALLDIRS "$builddir/$(dirname $i)" >/dev/null
|
||||||
case "$srcdir" in
|
echo "include $abs_srcdir/$i" > "$builddir/$i"
|
||||||
/*) echo "include $srcdir/$i" >> "$builddir/$i" ;;
|
|
||||||
*) echo "include \$(top_builddir)/$srcdir/$i" >> "$builddir/$i" ;;
|
|
||||||
esac
|
|
||||||
echo "creating $builddir/$i"
|
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user