2 # Copyright (C) 2002, 2004 Free Software Foundation, Inc.
4 # This program is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 3, or (at your option)
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
14 # You should have received a copy of the GNU General Public License
15 # along with this program. If not, see <http://www.gnu.org/licenses/>.
18 # Sources derived from nodist_ sources should not be distributed.
25 cat > configure.
in <<'EOF'
31 AC_CONFIG_FILES(Makefile)
35 # The PARSE2 intermediate variable is there to make
36 # sure Automake match 'nodist_' against the right
38 cat > Makefile.am
<< 'EOF'
42 nodist_foo_SOURCES
= parse.y $
(PARSE2
)
45 test ! -f $
(distdir
)/parse.c
46 test ! -f $
(distdir
)/parse.y
47 test ! -f $
(distdir
)/parse.h
48 test ! -f $
(distdir
)/parse2.c
49 test ! -f $
(distdir
)/parse2.y
50 test ! -f $
(distdir
)/parse2.h
53 cat > parse.y
<< 'END'
55 int yylex
() {return 0;}
56 void yyerror
(char
*s
) {}
59 maude
: 'm' 'a' 'u' 'd' 'e' {};
69 # Make sure parse.c and parse2.c are still targets.
70 $MAKE parse.c parse2.c
74 # Ensure the rebuild rule works despite AM_MAINTAINER_MODE, because
75 # it's a nodist_ parser.
79 $MAKE parse.c parse2.c
80 test `ls -1t parse.c parse.y | sed 1q` = parse.c