Wed Mar 18 14:48:44 1998 Tom Tromey <tromey@cygnus.com>
+ * automake.in (handle_configure): Put secondary dependencies from
+ multi-":" AC_OUTPUT entry into dependency list for file created by
+ config.status, not file created by automake. Test colon3.test.
+ (generate_makefile): Pass $output, not $makefile, to
+ handle_merge_targets.
+
* Makefile.am (pkgdata_DATA): Added java.am, java-clean.am.
* java-clean.am: New file.
* java.am: New file.
* something like this fails:
- foo = ... \
+ foo = q \
lib_LTLIBRARIES = foo.la
&handle_dependencies;
&handle_tests;
&handle_footer;
- &handle_merge_targets ($makefile);
+ &handle_merge_targets ($output);
&handle_installdirs;
&handle_clean;
&handle_phony;
. ': '
. ($seen_maint_mode ? '@MAINT@ ' : '')
. $amfile . ' '
- . '$(top_srcdir)/configure.in $(ACLOCAL_M4) '
- . join (' ', @rewritten) . "\n"
+ . '$(top_srcdir)/configure.in $(ACLOCAL_M4)' . "\n"
. "\tcd \$(top_srcdir) && \$(AUTOMAKE) "
. ($cygnus_mode ? '--cygnus' : ('--' . $strictness_name))
. ($cmdline_use_dependencies ? '' : ' --include-deps')
# see comment above.
. ': '
. $infile . ' '
- . '$(top_builddir)/config.status'
+ . join (' ', @rewritten)
+ . ' $(top_builddir)/config.status'
# NOTE: Makefile only depends on BUILT_SOURCES
# when dependencies are being computed. This is
# a workaround for an obscure bug with
test -f zardoz.in || exit 1
# The generated file should refer to zardoz.in and zardoz.am, but
-# never just "zardoz".
-grep zardoz zardoz.in | fgrep -v 'zardoz.in' | fgrep -v 'zardoz.am' > O
+# never just "zardoz" -- except the actual automake invocation can
+# refer to it (don't ask).
+echo Grep1
+grep zardoz zardoz.in | fgrep -v 'zardoz.in' | fgrep -v 'zardoz.am' \
+ | fgrep -v AUTOMAKE > O
# We cat the output file so we see in when verbose.
cat O
test -z "`cat O`" || exit 1
# Makefile should depend on two.in.
+echo Grep2
grep '^Makefile:.* two.in' zardoz.in || exit 1
# Likewise three.in.
+echo Grep3
grep '^Makefile:.* three.in' zardoz.in