123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687 |
- #! /bin/sh
- required='cc yacc'
- . test-init.sh
- cat >> configure.ac <<'END'
- AC_PROG_CC
- AC_PROG_YACC
- AC_OUTPUT
- END
- cat > Makefile.am <<'END'
- bin_PROGRAMS = foo
- foo_SOURCES = foo.y
- CLEANFILES = foo.output
- MAINTAINERCLEANFILES = foo.h
- END
- cat > foo.y << 'END'
- %{
- int yylex () { return 0; }
- void yyerror (char *s) { return; }
- int main () { return 0; }
- %}
- %%
- foobar : 'f' 'o' 'o' 'b' 'a' 'r' {};
- END
- $ACLOCAL
- $AUTOMAKE -a
- $AUTOCONF
- ./configure YFLAGS='-d -v'
- $MAKE
- ls -l
- test -f foo.c
- test -f foo.h
- test -f foo.output
- $MAKE maintainer-clean
- ls -l
- ./configure YFLAGS='-v'
- $MAKE
- ls -l
- test -f foo.c
- test ! -e foo.h
- test -f foo.output
- $MAKE maintainer-clean
- ls -l
- ./configure YFLAGS='-v'
- run_make YFLAGS=-d
- ls -l
- test -f foo.c
- test -f foo.h
- test ! -e foo.output
- $MAKE maintainer-clean
- ls -l
- :
|