DEFS= INCLUDES= CPPFLAGS= CFLAGS=
SOURCES= CONFIG_HEADER= SUBDIRS= PROGRAMS= LIBPROGRAMS= SCRIPTS= LIBSCRIPTS=
LIBRARIES= TEXINFOS= MANS= AM_PROGRAMS=
+ am_suffixes=
eval `sed -n -f $am_rmnl ${am_makefile}.am | sed -n -f $am_ass`
if test -n "$PROGRAMS$LIBPROGRAMS$LIBRARIES"; then
cat $am_dir/compile-vars.am >&4
cat $am_dir/compile.am >&5
- grep @kr@ ${am_makefile}.am >/dev/null && cat $am_dir/compile-kr.am >&5
+
+ # Check for automatic de-ANSIfication.
+ if grep @kr@ ${am_makefile}.am >/dev/null; then
+ cat $am_dir/compile-kr.am >&5
+ am_suffixes=".krc .krh .kro $am_suffixes"
+ fi
+
for am_file in $PROGRAMS $LIBPROGRAMS $LIBRARIES; do
if eval "test \"\$var_${am_file}_SOURCES\" = explicit"; then
if eval "test \"\$var_${am_file}_OBJECTS\" = explicit"; then
if test -n "$TEXINFOS"; then
cat $am_dir/texinfos-vars.am >&4
cat $am_dir/texinfos.am >&5
+ am_suffixes=".texi .info .dvi $am_suffixes"
echo "$TEXINFOS" | sed 's/^/INFOS = /; s/\.texi/.info*/g' >&4
echo "$TEXINFOS" | sed 's/^/INFO_DEPS = /; s/\.texi/.info/g' >&4
echo "$TEXINFOS" | sed 's/^/DVIS = /; s/\.texi/.dvi/g' >&4
esac
#
- # Some final checks.
+ # Put .SUFFIXES way down at the bottom.
#
+ if test -n "$am_suffixes"; then
+ echo ".SUFFIXES:" >&5
+ echo ".SUFFIXES: $am_suffixes" >&5
+ fi
+ #
+ # Some final checks.
+ #
test -z "$TEXINFOS" || test -f $am_reldir/texinfo.tex || {
echo "automake: ${am_makefile}.am defines TEXINFOS, but" 1>&2
echo "automake: ${am_reldir}/texinfo.tex does not exist" 1>&2