1999-01-14 Tom Tromey <tromey@cygnus.com>
+ * automake.in (handle_tests): Avoid error messages from dejagnu
+ test rules. From Karl Heuer.
+
* automake.in (handle_texinfo): Add `/' to end of $conf_dir.
* Makefile.am (AUTOMAKE_OPTIONS): Added `1.4'.
# useful text on this topic.
$output_rules .= ("site.exp: Makefile\n"
. "\t\@echo 'Making a new site.exp file...'\n"
- . "\t-\@rm -f site.bak\n"
+ . "\t\@test ! -f site.bak || rm -f site.bak\n"
. "\t\@echo '## these variables are automatically generated by make ##' > \$\@-t\n"
. "\t\@echo '# Do not edit here. If you wish to override these values' >> \$\@-t\n"
. "\t\@echo '# edit the last section' >> \$\@-t\n"
}
$output_rules .= ("\t\@echo '## All variables above are generated by configure. Do Not Edit ##' >> \$\@-t\n"
- . "\t-\@sed '1,/^## All variables above are.*##/ d' site.exp >> \$\@-t\n"
- . "\t-\@mv site.exp site.bak\n"
+ . "\t\@test ! -f site.exp || sed '1,/^## All variables above are.*##/ d' site.exp >> \$\@-t\n"
+ . "\t\@test ! -f site.exp || mv site.exp site.bak\n"
. "\t\@mv \$\@-t site.exp\n");
}
}