aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2010-10-06 16:46:12 +0000
committerDoug Evans <dje@google.com>2010-10-06 16:46:12 +0000
commit9c9606fba227f9f87cd5c7766ef901de16993fce (patch)
tree87d242f47cb6ae8167e7d125d8b1a3d01a188c79 /gdb
parent2f608a3a9752190066db4996ab855b423033b580 (diff)
downloadgdb-9c9606fba227f9f87cd5c7766ef901de16993fce.zip
gdb-9c9606fba227f9f87cd5c7766ef901de16993fce.tar.gz
gdb-9c9606fba227f9f87cd5c7766ef901de16993fce.tar.bz2
* Makefile.in (REQUIRED_SUBDIRS): New var.
(subdir_do): Verify required subdir Makefiles exist.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog3
-rw-r--r--gdb/Makefile.in13
2 files changed, 16 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index e1d6cb0..d380020 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -4,6 +4,9 @@
2010-10-06 Doug Evans <dje@google.com>
+ * Makefile.in (REQUIRED_SUBDIRS): New var.
+ (subdir_do): Verify required subdir Makefiles exist.
+
Create subdir data-directory.
* Makefile.in (XML_SYSCALL_DIR, XML_SYSCALL_FILES): Moved to
data-directory/Makefile.in.
diff --git a/gdb/Makefile.in b/gdb/Makefile.in
index bfb4b59..b856c3a 100644
--- a/gdb/Makefile.in
+++ b/gdb/Makefile.in
@@ -875,6 +875,12 @@ TSOBS = inflow.o
SUBDIRS = @subdirs@ data-directory
CLEANDIRS = $(SUBDIRS) gnulib
+# List of subdirectories in the build tree that must exist.
+# This is used to force build failures in existing trees when
+# a new directory is added.
+# The format here is for the `case' shell command.
+REQUIRED_SUBDIRS = doc | testsuite | gnulib | data-directory
+
# For now, shortcut the "configure GDB for fewer languages" stuff.
YYFILES = c-exp.c \
cp-name-parser.c \
@@ -1239,6 +1245,13 @@ diststuff: $(DISTSTUFF) $(PACKAGE).pot $(CATALOGS)
subdir_do: force
@for i in $(DODIRS); do \
+ case $$i in \
+ $(REQUIRED_SUBDIRS)) \
+ if [ ! -f ./$$i/Makefile ] ; then \
+ echo "Missing $$i/Makefile" >&2 ; \
+ exit 1 ; \
+ fi ;; \
+ esac ; \
if [ -f ./$$i/Makefile ] ; then \
if (cd ./$$i; \
$(MAKE) $(FLAGS_TO_PASS) $(DO)) ; then true ; \