diff options
author | DJ Delorie <dj@redhat.com> | 2003-04-15 20:15:47 +0000 |
---|---|---|
committer | DJ Delorie <dj@redhat.com> | 2003-04-15 20:15:47 +0000 |
commit | bb32582095610c5d98aa6285bfe92a7cf52b5047 (patch) | |
tree | 0d6f0d2b2e0dc390a4b5e9c8cb18d1be7534a42a /libiberty/maint-tool | |
parent | 258a4893ffa392438c6fb0eec5c6d42f704dfc28 (diff) | |
download | gdb-bb32582095610c5d98aa6285bfe92a7cf52b5047.zip gdb-bb32582095610c5d98aa6285bfe92a7cf52b5047.tar.gz gdb-bb32582095610c5d98aa6285bfe92a7cf52b5047.tar.bz2 |
merge from gcc
Diffstat (limited to 'libiberty/maint-tool')
-rw-r--r-- | libiberty/maint-tool | 8 |
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>) { |