Always build 'all' in gdb/testsuite
authorTom Tromey <tromey@adacore.com>
Tue, 1 Jun 2021 14:11:30 +0000 (08:11 -0600)
committerTom Tromey <tromey@adacore.com>
Tue, 1 Jun 2021 14:11:30 +0000 (08:11 -0600)
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'.

gdb/ChangeLog
2021-06-01  Tom Tromey  <tromey@adacore.com>

* Makefile.in (SUBDIRS): Add testsuite.
(all): Don't exclude testsuite.

gdb/ChangeLog
gdb/Makefile.in

index 5e882d776b26764180e7fae1e74758bf8d1d31ba..506bccf202246f26580dca176ee05aa1c87ce16c 100644 (file)
@@ -1,3 +1,8 @@
+2021-06-01  Tom Tromey  <tromey@adacore.com>
+
+       * Makefile.in (SUBDIRS): Add testsuite.
+       (all): Don't exclude testsuite.
+
 2021-06-01  Tom Tromey  <tromey@adacore.com>
 
        * configure.ac: Copy some code from testsuite/configure.ac.
index 9dc96eec86770ba16c7884f6879567656a400201..f66f437f4f3165aecb6ee323df769aa33f4d5cf1 100644 (file)
@@ -1591,7 +1591,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.
@@ -1633,7 +1633,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.
This page took 0.027838 seconds and 4 git commands to generate.