Tag
Hash :
d9b3f8fa
Author :
Date :
2001-02-12T16:49:56
2001-02-12 Tom Tromey <tromey@redhat.com> Fix for subdirbuiltsources.test: * automake.in (initialize_per_input): [all_target] Initialize to empty string. (handle_merge_targets): Use all-redirect target to handle built sources. (do_one_merge_target): Don't generate all-redirect rule. 2001-02-11 Peter Muir <iyhi@yahoo.com> * tests/subdirbuiltsources.test: New file. * tests/Makefile.am (TESTS): Added new file.
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 54 55 56 57 58 59 60 61 62
#! /bin/sh
set -e
# Make sure when using SUBDIR that all BUILT_SOURCES are built.
# A bug occurred where subdirs do not have all-recursive or
# all-recursive-am which depended on BUILT_SOURCES.
. $srcdir/defs || exit 1
mkdir lib
cat > configure.in << 'END'
AC_INIT
AM_INIT_AUTOMAKE(nonesuch, nonesuch)
AC_ARG_PROGRAM
AC_PROG_MAKE_SET
AC_PROG_INSTALL
AC_PROG_RANLIB
AC_PROG_CC
AC_OUTPUT(Makefile lib/Makefile)
END
# Files required because we are using `--gnu'.
: > INSTALL
: > NEWS
: > README
: > COPYING
: > AUTHORS
: > ChangeLog
cat > Makefile.am << 'END'
SUBDIRS = lib
END
cat > lib/Makefile.am << 'END'
pkgdata_DATA =
noinst_LIBRARIES = libfoo.a
libfoo_a_SOURCES = foo.c
BUILT_SOURCES=foo.h
foo.h:
echo \#define FOO_DEFINE 1 >$@
END
cat > lib/foo.c << 'END'
#include <foo.h>
int foo () { return !FOO_DEFINE;}
END
$ACLOCAL
$AUTOCONF
$AUTOMAKE --include-deps --copy --force-missing --add-missing --gnu
./configure
# Remove the comment to get a successful test.
# $MAKE -C lib foo.h
$MAKE
exit 0