]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libiberty/maint-tool
* maint-tool (deps): Scan for headers in $srcdir also.
[thirdparty/gcc.git] / libiberty / maint-tool
index ceeb48dbf39ff14a338e91850f819667fa4323e5..6b9bf7f2cdbe419957a92c0046271740899e63ff 100644 (file)
@@ -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>) {