[2/5] Always build 'all' in gdb/testsuite

Message ID 20210528192743.508390-3-tromey@adacore.com
State New
Headers show
Series
  • Some gdb build cleanups
Related show

Commit Message

Tom Tromey May 28, 2021, 7:27 p.m.
gdb's Makefile currently excludes testsuite from the subdirectories to
build.  I don't think there's a good reason for this, so this patch
adds testsuite to the SUBDIRS list and removes a special case from
'all'.

2021-05-28  Tom Tromey  <tromey@adacore.com>

	* Makefile.in (SUBDIRS): Add testsuite.
	(all): Don't exclude testsuite.
---
 gdb/ChangeLog   | 5 +++++
 gdb/Makefile.in | 4 ++--
 2 files changed, 7 insertions(+), 2 deletions(-)

-- 
2.26.3

Patch

diff --git a/gdb/Makefile.in b/gdb/Makefile.in
index bb6c5dfa784..06c2da5dcf8 100644
--- a/gdb/Makefile.in
+++ b/gdb/Makefile.in
@@ -1590,7 +1590,7 @@  COMMON_OBS = $(DEPFILES) $(CONFIG_OBS) $(YYOBJ) \
 	$(SUBDIR_TARGET_OBS) \
 	$(SUBDIR_GCC_COMPILE_OBS)
 
-SUBDIRS = doc @subdirs@ data-directory
+SUBDIRS = doc @subdirs@ data-directory testsuite
 CLEANDIRS = $(SUBDIRS)
 
 # List of subdirectories in the build tree that must exist.
@@ -1632,7 +1632,7 @@  generated_files = \
 PYTHON_CFLAGS = @PYTHON_CFLAGS@
 
 all: gdb$(EXEEXT) $(CONFIG_ALL) gdb-gdb.py gdb-gdb.gdb
-	@$(MAKE) $(FLAGS_TO_PASS) DO=all "DODIRS=`echo $(SUBDIRS) | sed 's/testsuite//'`" subdir_do
+	@$(MAKE) $(FLAGS_TO_PASS) DO=all "DODIRS=$(SUBDIRS)" subdir_do
 
 # Rule for compiling .c files in the top-level gdb directory.
 # The order-only dependencies ensure that we create the build subdirectories.