Sun Apr 27 11:03:36 1997 Tom Tromey <tromey@cygnus.com>
+ * automake.in (handle_configure): Don't skip Makefiles; instead
+ skip automake inputs.
+ (handle_merge_targets): Changed interface; put $makefile at
+ beginning of @all (rather than Makefile at end).
+
* automake.in (handle_yacc_lex_cxx): Correctly compute
de_ansi_sources.
default: all
.SUFFIXES:
-.SUFFIXES: .texi .texinfo .info .dvi .ps
+.SUFFIXES: .dvi .info .ps .texi .texinfo
$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
cd $(top_srcdir) && $(AUTOMAKE) --gnits Makefile
check: all-am
$(MAKE) check-recursive
installcheck: installcheck-recursive installcheck-local
-all-am: $(INFO_DEPS) $(SCRIPTS) $(DATA) Makefile
+all-am: Makefile $(INFO_DEPS) $(SCRIPTS) $(DATA)
install-exec-am: install-binSCRIPTS
&handle_dependencies;
&handle_tests;
&handle_footer;
- &handle_merge_targets;
+ &handle_merge_targets ($makefile);
&handle_installdirs;
&handle_clean;
&handle_phony;
# Skip files not in this directory.
next unless &dirname ($file) eq $relative_dir;
- # Skip any Makefile.
- next if $local eq 'Makefile';
+ # Skip any file that is an automake input.
+ next if -f $file . '.am';
- # Some users might be tempted to put `stamp-h' in the
+ # Some users have been tempted to put `stamp-h' in the
# AC_OUTPUT line. This won't do the right thing, so we
# explicitly fail here.
if ($local eq 'stamp-h')
# avoid double colon rules, otherwise we'd use them instead.
sub handle_merge_targets
{
+ local ($makefile) = @_;
+
# There are a few install-related variables that you should not define.
local ($var);
foreach $var ('PRE_INSTALL', 'POST_INSTALL', 'NORMAL_INSTALL')
}
}
- push (@all, 'Makefile');
+ # Put this at the beginning for the sake of non-GNU makes. This
+ # is still wrong if these makes can run parallel jobs. But it is
+ # right enough.
+ unshift (@all, &basename ($makefile));
local ($one_name);
foreach $one_name (@config_names)