Tag
Hash :
ea756611
Author :
Date :
2002-06-21T19:59:40
* automake.in (lang_yacc_target_hook): Add $output to @maintainer_clean_files. This was lost on 2001-06-23. * tests/yacc7.test, tests/yacc4.test: Complete to check that maintainer-clean erases YACC's output files, respectively with and without `-d'. Reported by Flavien Astraud.
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 63 64 65 66 67
#! /bin/sh
# Test to make sure dependencies are generated correctly for .h files.
# Report from Richard Boulton.
#
# Also check that the sources of the generated parser are distributed.
# PR/47.
required=GNUmake
. $srcdir/defs || exit 1
cat >> configure.in << 'END'
AC_PROG_CC
AC_PROG_YACC
AC_OUTPUT
END
cat > Makefile.am << 'END'
bin_PROGRAMS = foo
foo_SOURCES = foo.y
AM_YFLAGS = -d
check-dist: distdir
test -f $(distdir)/foo.y
test -f $(distdir)/foo.c
test -f $(distdir)/foo.h
END
cat > foo.y << 'END'
%%
WORD: "up";
%%
END
set -e
$ACLOCAL
$AUTOMAKE -a
$AUTOCONF
./configure
$MAKE foo.h
test -f foo.h
rm -f foo.h foo.c
$MAKE check-dist
# We should be able to recover if foo.h is deleted.
rm -f foo.h
$MAKE foo.h
test -f foo.h
# Make distclean must not erase foo.c nor foo.h (by GNU standards) ...
$MAKE foo.c
test -f foo.h
test -f foo.c
$MAKE distclean
test -f foo.h
test -f foo.c
# ... but maintainer-clean should.
./configure
$MAKE maintainer-clean
test ! -f foo.h
test ! -f foo.c
: