X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=src%2Fmake-src-depend;h=f28a23b6ca23d9bdc2cf42c065fbd3126d2ee928;hb=4f29597e4f3696a59bb08ffece07183c1568c4a5;hp=a66f07028ad5aa3afdc5e32bddb0312a0ca1657f;hpb=77dcef404dc78635f6ffa8f71a803d2bc7cc8921;p=chise%2Fxemacs-chise.git- diff --git a/src/make-src-depend b/src/make-src-depend index a66f070..f28a23b 100644 --- a/src/make-src-depend +++ b/src/make-src-depend @@ -29,8 +29,7 @@ my ($myName, $srcdir, %exists, %uses, %generated_header); Usage: $myName Generates Makefile dependencies for the XEmacs src directory. -The dependencies are written to stdout. -"; +The dependencies are written to stdout.\n"; die $usage if @ARGV; @@ -42,7 +41,7 @@ opendir SRCDIR, "." or die "$srcdir: $!"; for (grep (/\.[ch]$/, readdir (SRCDIR))) { $exists{$_} = 1; } closedir SRCDIR; -for (qw (config.h puresize-adjust.h sheap-adjust.h paths.h Emacs.ad.h)) { +for (qw (config.h sheap-adjust.h paths.h Emacs.ad.h)) { $generated_header{$_} = 1; } @@ -53,11 +52,11 @@ for my $file (keys %exists) { s/[ \t]+//g; # Find include dependencies for (/^\#include([^\n]+)/gm) { - if (m@^\"([A-Za-z0-9_-]+\.h)\"@) { + if (m@^\"([A-Za-z0-9._-]+\.h)\"@) { $uses{$file}{$1} = 1 if exists $exists{$1}; - } elsif (m@<([A-Za-z0-9_-]+\.h)>@) { + } elsif (m@<([A-Za-z0-9._-]+\.h)>@) { $uses{$file}{$1} = 1 if exists $generated_header{$1}; - } elsif (m@\"../lwlib/([A-Za-z0-9_-]+\.h)\"@) { + } elsif (m@\"../lwlib/([A-Za-z0-9._-]+\.h)\"@) { $uses{$file}{"\$(LWLIB_SRCDIR)/lwlib.h"} = 1; } }