From bb32582095610c5d98aa6285bfe92a7cf52b5047 Mon Sep 17 00:00:00 2001 From: DJ Delorie Date: Tue, 15 Apr 2003 20:15:47 +0000 Subject: [PATCH] merge from gcc --- libiberty/ChangeLog | 4 ++++ libiberty/maint-tool | 8 ++++++++ 2 files changed, 12 insertions(+) diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog index bfffec3f466..0fc64dd9d0a 100644 --- a/libiberty/ChangeLog +++ b/libiberty/ChangeLog @@ -1,3 +1,7 @@ +2003-04-15 DJ Delorie + + * maint-tool (deps): Scan for headers in $srcdir also. + 2003-04-15 Kaveh R. Ghazi PR target/10338 diff --git a/libiberty/maint-tool b/libiberty/maint-tool index ceeb48dbf39..6b9bf7f2cdb 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 () { -- 2.30.2