* lib/am/color-tests.am (am.test-suite.tty-colors): Define with the
'define' built-in rather than with '='.
* automake.in (handle_tests): Use '&almost_verbatim' rather than
'&file_contents' to read and process 'color-tests.am'.
Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
if (var ('TESTS'))
{
push (@check_tests, 'check-TESTS');
- $output_rules .= file_contents ('color-tests', new Automake::Location);
+ almost_verbatim ('color-tests');
if (option 'serial-tests')
{
almost_verbatim ('serial-tests');
## You should have received a copy of the GNU General Public License
## along with this program. If not, see <http://www.gnu.org/licenses/>.
-am.test-suite.tty-colors = { \
+define am.test-suite.tty-colors
+{ \
if test "X$(AM_COLOR_TESTS)" = Xno; then \
am__color_tests=no; \
elif test "X$(AM_COLOR_TESTS)" = Xalways; then \
mgn= red= grn= lgn= blu= brg= std=; \
fi; \
}
+endef