aboutsummaryrefslogtreecommitdiff
path: root/Makefile.def
diff options
context:
space:
mode:
authorAndrew Burgess <andrew.burgess@embecosm.com>2020-10-12 16:04:32 +0100
committerAndrew Burgess <andrew.burgess@embecosm.com>2020-10-14 15:05:14 +0100
commitba4d88ad892fe29c6ca7938c8861f8edef5f7a3f (patch)
tree687b829aaaa52b49f7b1397f5b09902b2729baae /Makefile.def
parent58bf9b6a7ff56d53f851f78e02c255440de9258a (diff)
downloadgdb-ba4d88ad892fe29c6ca7938c8861f8edef5f7a3f.zip
gdb-ba4d88ad892fe29c6ca7938c8861f8edef5f7a3f.tar.gz
gdb-ba4d88ad892fe29c6ca7938c8861f8edef5f7a3f.tar.bz2
gdb/gdbserver: add dependencies for distclean-gnulib
After commit: commit 361cb219351d8b7e39e1962fe77f40aa80657b27 Date: Tue Oct 6 10:09:06 2020 +0100 gnulib: Ensure all libraries are used when building gdb/gdbserver We now get an error when, at the top level of the build tree, we do 'make distclean'. The reason for this is that the gnulib directory is cleaned before the gdb directory, cleaning gnulib deletes Makefile.gnulib.inc from the gnulib build directory, which is currently pulled in by the gdb Makefile.in using 'include'. This commit adds a dependency between distclean-gnulib and both distclean-gdb and distclean-gdbserver. This means that gdb and gdbserver will be cleaned before gnulib, as a result the Makefile.gnulib.inc file should exist when needed. ChangeLog: * Makefile.in: Rebuild. * Makefile.def: Make distclean-gnulib depend on distclean-gdb and distclean-gdbserver.
Diffstat (limited to 'Makefile.def')
-rw-r--r--Makefile.def6
1 files changed, 6 insertions, 0 deletions
diff --git a/Makefile.def b/Makefile.def
index 76d062b..089e70a 100644
--- a/Makefile.def
+++ b/Makefile.def
@@ -548,6 +548,12 @@ dependencies = { module=configure-libctf; on=all-intl; };
dependencies = { module=configure-libctf; on=all-zlib; };
dependencies = { module=configure-libctf; on=all-libiconv; };
+// The Makefiles in gdb and gdbserver pull in a file that configure
+// generates in the gnulib directory, so distclean gnulib only after
+// gdb and gdbserver.
+dependencies = { module=distclean-gnulib; on=distclean-gdb; };
+dependencies = { module=distclean-gnulib; on=distclean-gdbserver; };
+
// Warning, these are not well tested.
dependencies = { module=all-bison; on=all-intl; };
dependencies = { module=all-bison; on=all-build-texinfo; };