Tag
Hash :
b0c1ea15
Author :
Date :
2001-11-09T17:17:47
Fix for distcommon2.test:
* automake.in (automake_needs_to_reprocess_all_files): New
variable.
("main"): Process all Makefiles a second time if
$automake_needs_to_reprocess_all_files is set.
(maybe_push_required_file): Return 1 or 0 whether the file is
pushed or not.
(require_file_internal): Set $automake_needs_to_reprocess_all_files
if an added file can't be pushed.
* test/distcommon2.test: New file.
* test/Makefile.am (TESTS): Add distcommon2.test.
From Pavel Roskin.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
#! /bin/sh
# Test to make sure that depcomp and compile are added to DIST_COMMON
# From Pavel Roskin.
. $srcdir/defs || exit 1
cat > configure.in << 'END'
AM_INIT_AUTOMAKE(nonesuch, nonesuch)
PACKAGE=nonesuch
VERSION=nonesuch
AC_PROG_CC
AC_OUTPUT(Makefile subdir/Makefile)
END
cat > Makefile.am << 'END'
SUBDIRS = subdir
END
mkdir subdir
: > subdir/foo.c
cat > subdir/Makefile.am << 'END'
noinst_PROGRAMS = foo
foo_SOURCES = foo.c
foo_CFLAGS = -DBAR
END
rm -f compile depcomp
$ACLOCAL || exit 1
$AUTOMAKE --add-missing || exit 1
test -f compile || exit 1
test -f depcomp || exit 1
sed -n -e '/^DIST_COMMON =.*\\$/ {
:loop
p
n
/\\$/ b loop
p
n
}' -e '/^DIST_COMMON =/ p' Makefile.in | grep compile || exit 1
sed -n -e '/^DIST_COMMON =.*\\$/ {
:loop
p
n
/\\$/ b loop
p
n
}' -e '/^DIST_COMMON =/ p' Makefile.in | grep depcomp || exit 1