aboutsummaryrefslogtreecommitdiff
path: root/libiberty/maint-tool
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>2003-04-15 15:21:38 -0400
committerDJ Delorie <dj@gcc.gnu.org>2003-04-15 15:21:38 -0400
commit98475c572e3d589811aa15cf17184dcd5e265db2 (patch)
tree20ec93e962355c2444e07c30d073f558c7cd0e56 /libiberty/maint-tool
parent9959c8c7dfc1dc22ff670666247a455e186384cf (diff)
downloadgcc-98475c572e3d589811aa15cf17184dcd5e265db2.zip
gcc-98475c572e3d589811aa15cf17184dcd5e265db2.tar.gz
gcc-98475c572e3d589811aa15cf17184dcd5e265db2.tar.bz2
* maint-tool (deps): Scan for headers in $srcdir also.
From-SVN: r65653
Diffstat (limited to 'libiberty/maint-tool')
-rw-r--r--libiberty/maint-tool8
1 files changed, 8 insertions, 0 deletions
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>) {