Tag
Hash :
62c9742d
Author :
Date :
2001-11-16T10:30:16
* automake.in (rule_define): Use $KNOWN_EXTENSIONS_PATTERN to match suffix rules for known extensions, or call accept_extensions on suffixe rules for unknown extensions. (var_SUFFIXES_trigger): New function. (macro_define): Call var_VAR_trigger when $VAR is updated. * tests/suffix6.test, tests/suffix7.test: New files. * tests/Makefile.am (TESTS): Add suffix6.test and suffix7.test.
#! /bin/sh
# Test to make sure Automake supports implicit rules "confusing"
# extensions. Inspired by a mail from Alex Hornby.
. $srcdir/defs || exit 1
cat > Makefile.am << 'END'
SUFFIXES = .idl S.cpp C.h
SUFFIXES += C.cpp S.h
.idlC.cpp:
cp $< $@
END
: > fooa
$ACLOCAL || exit 1
$AUTOMAKE || exit 1
# Make sure Automake has NOT recognized .cpp and .idlC as two new
# extensions.
grep 'SUFFIXES.* \.cpp' Makefile.in && exit 1
grep 'SUFFIXES.* \.idlC' Makefile.in && exit 1
exit 0