From: Tom Tromey Date: Fri, 9 Feb 1996 06:11:40 +0000 (+0000) Subject: Error if directory in SUBDIRS does not exist X-Git-Tag: Release-0-30~37 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=642097d5f3f27e02a69d2c835112e1d5b42a9895;p=automake.git Error if directory in SUBDIRS does not exist --- diff --git a/ChangeLog b/ChangeLog index 63e9736b..db731658 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ Thu Feb 8 15:30:29 1996 Tom Tromey + * automake.in (handle_subdirs): Error if directory in SUBDIRS does + not exist. + * automake.in (handle_configure): Handle AC_OUTPUT ":" syntax. From Jim Meyering: diff --git a/NEWS b/NEWS index 578a8876..32ab8f3a 100644 --- a/NEWS +++ b/NEWS @@ -1,6 +1,6 @@ New in 0.30: -* configure.in scanner knows about AC_PATH_XTRA -* +* Bug fixes +* configure.in scanner knows about AC_PATH_XTRA, AC_OUTPUT ":" syntax New in 0.29: * Many bug fixes diff --git a/TODO b/TODO index f97b4765..9ec5be85 100644 --- a/TODO +++ b/TODO @@ -23,6 +23,7 @@ these files can't be de-ansified. Not a problem? consider automatically adding -I$(srcdir) to INCLUDES. ditto path to config.h +Noah Friedman says that -I. should come before -I$(srcdir) In general most .am files should be merged into automake. For instance all the "clean" targets could be merged by keeping lists of diff --git a/automake.in b/automake.in index d682a887..568d5475 100755 --- a/automake.in +++ b/automake.in @@ -1057,6 +1057,14 @@ sub handle_subdirs return if ! defined $contents{'SUBDIRS'}; + # Make sure each directory mentioned in SUBDIRS actually exists. + local ($dir); + foreach $dir (split (/\s+/, $contents{'SUBDIRS'})) + { + &am_error ("required directory $relative_dir/$dir does not exist") + if ! -d $relative_dir . '/' . $dir; + } + $output_rules .= &file_contents ('subdirs'); # Push a bunch of phony targets.