Mercurial > hg > xemacs-beta
diff src/make-src-depend @ 412:697ef44129c6 r21-2-14
Import from CVS: tag r21-2-14
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:20:41 +0200 |
parents | b8cc9ab3f761 |
children |
line wrap: on
line diff
--- a/src/make-src-depend Mon Aug 13 11:19:22 2007 +0200 +++ b/src/make-src-depend Mon Aug 13 11:20:41 2007 +0200 @@ -29,7 +29,8 @@ Usage: $myName Generates Makefile dependencies for the XEmacs src directory. -The dependencies are written to stdout.\n"; +The dependencies are written to stdout. +"; die $usage if @ARGV; @@ -52,11 +53,11 @@ 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; } }