* config.gdb: Don't create readline dir in subdir builds.
* main.c: Include with "..." form for non-system include files, so "gcc -MM" for "make depend" works. Include readline files with "...h" rather than <readline/...h>.
This commit is contained in:
parent
477cf2a958
commit
9a7c775f1c
|
@ -168,12 +168,6 @@ case ${srcdir} in
|
||||||
echo "srcdir=${srcdir}" >./Makefile.sdir
|
echo "srcdir=${srcdir}" >./Makefile.sdir
|
||||||
grep -s "source ${srcdir}/.gdbinit" .gdbinit 2>/dev/null || \
|
grep -s "source ${srcdir}/.gdbinit" .gdbinit 2>/dev/null || \
|
||||||
echo "source ${srcdir}/.gdbinit" >> .gdbinit
|
echo "source ${srcdir}/.gdbinit" >> .gdbinit
|
||||||
if [ ! -d readline ]; then
|
|
||||||
mkdir readline
|
|
||||||
# This could be a symlink, but getting the name right (because
|
|
||||||
# srcdir can be either relative or absolute) would be hairy.
|
|
||||||
cp ${srcdir}/readline/Makefile readline
|
|
||||||
fi
|
|
||||||
esac
|
esac
|
||||||
|
|
||||||
make "srcdir=${srcdir}" \
|
make "srcdir=${srcdir}" \
|
||||||
|
|
Loading…
Reference in New Issue