X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=src%2Fmake-src-depend;h=b1bf8d0120fd22dbc92760022b2400a2fed18be7;hb=761f92c159f8327ecf570ab8e9a4b27cd5e35732;hp=ace1007356594792bdf1d2e1e07798ffaaf7011c;hpb=59eec5f21669e81977b5b1fe9bf717cab49cf7fb;p=chise%2Fxemacs-chise.git.1 diff --git a/src/make-src-depend b/src/make-src-depend index ace1007..b1bf8d0 100644 --- a/src/make-src-depend +++ b/src/make-src-depend @@ -56,7 +56,7 @@ 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._-]+\.[ch])\"@) { $uses{$file}{$1} = 1 if exists $exists{$1}; } elsif (m@<([A-Za-z0-9._-]+\.h)>@) { $uses{$file}{$1} = 1 if exists $generated_header{$1}; @@ -93,7 +93,7 @@ LISP_UNION_H=lisp-disunion.h #endif "; -my @LISP_H = ('lisp.h', keys %{$uses{'lisp.h'}}); +my @LISP_H = ('lisp.h', sort keys %{$uses{'lisp.h'}}); print "LISP_H=@{[grep (!/lisp-(dis)?union\.h/, @LISP_H)]} \$(LISP_UNION_H)\n"; sub PrintDeps { @@ -119,6 +119,7 @@ sub PrintPatternDeps { PrintPatternDeps ('-msw\\.', "HAVE_MS_WINDOWS"); PrintPatternDeps ('-x\\.', "HAVE_X_WINDOWS"); PrintPatternDeps ('-tty\\.', "HAVE_TTY"); +PrintPatternDeps ('-gtk\\.', "HAVE_GTK"); PrintPatternDeps ('^database', "HAVE_DATABASE"); PrintPatternDeps ('^mule', "MULE"); PrintPatternDeps ('^(?:External|extw-)', "EXTERNAL_WIDGET");