aboutsummaryrefslogtreecommitdiff
path: root/libiberty
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>2003-04-15 20:15:47 +0000
committerDJ Delorie <dj@redhat.com>2003-04-15 20:15:47 +0000
commitbb32582095610c5d98aa6285bfe92a7cf52b5047 (patch)
tree0d6f0d2b2e0dc390a4b5e9c8cb18d1be7534a42a /libiberty
parent258a4893ffa392438c6fb0eec5c6d42f704dfc28 (diff)
downloadgdb-bb32582095610c5d98aa6285bfe92a7cf52b5047.zip
gdb-bb32582095610c5d98aa6285bfe92a7cf52b5047.tar.gz
gdb-bb32582095610c5d98aa6285bfe92a7cf52b5047.tar.bz2
merge from gcc
Diffstat (limited to 'libiberty')
-rw-r--r--libiberty/ChangeLog4
-rw-r--r--libiberty/maint-tool8
2 files changed, 12 insertions, 0 deletions
diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog
index bfffec3..0fc64dd 100644
--- a/libiberty/ChangeLog
+++ b/libiberty/ChangeLog
@@ -1,3 +1,7 @@
+2003-04-15 DJ Delorie <dj@redhat.com>
+
+ * maint-tool (deps): Scan for headers in $srcdir also.
+
2003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
PR target/10338
diff --git a/libiberty/maint-tool b/libiberty/maint-tool
index ceeb48d..6b9bf7f 100644
--- a/libiberty/maint-tool
+++ b/libiberty/maint-tool
@@ -223,6 +223,14 @@ sub deps {
}
$mine{'config.h'} = "config.h";
+ opendir(INC, $srcdir);
+ while ($f = readdir INC) {
+ next unless $f =~ /\.h$/;
+ $mine{$f} = "\$(srcdir)/$f";
+ $deps{$f} = join(' ', &deps_for("$srcdir/$f"));
+ }
+ $mine{'config.h'} = "config.h";
+
open(IN, "$srcdir/Makefile.in");
open(OUT, ">$srcdir/Makefile.tmp");
while (<IN>) {