1 ## automake - create Makefile.in from Makefile.am
2 ## Copyright (C) 1998, 1999, 2001, 2002, 2003, 2004, 2006, 2009
3 ## Free Software Foundation, Inc.
5 ## This program is free software; you can redistribute it and/or modify
6 ## it under the terms of the GNU General Public License as published by
7 ## the Free Software Foundation; either version 2, or (at your option)
10 ## This program is distributed in the hope that it will be useful,
11 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
12 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 ## GNU General Public License for more details.
15 ## You should have received a copy of the GNU General Public License
16 ## along with this program. If not, see <http://www.gnu.org/licenses/>.
18 ## We want to disable the Yacc rebuild rule when
19 ## 1. AM_MAINTAINER_MODE is used, and
20 ## 2. --enable-maintainer-mode is not specified, and
21 ## 3. parser.c already exist, and
22 ## 4. parser.y and parser.c are distributed.
23 ## Point #3 is because `make maintainer-clean' erases parser.c, yet
24 ## the GNU Coding Standards require that ./configure; make works even
26 ## Point #4 is because parsers listed in nodist_*_SOURCES are always
27 ## built on the user's side, so it makes no sense to disable them.
29 ## Points #1, #2, #3 are solved by unconditionally prefixing the rule
30 ## with $(am__skipyacc) defined below only when needed.
32 ## Point #4 requires a condition on whether parser.y/parser.c are
33 ## distributed or not. We cannot have a generic rule that works in
34 ## both cases, so we ensure in automake that nodist_ parsers always
35 ## use non-generic rules.
38 @MAINTAINER_MODE_FALSE@am__skipyacc = test -f $@ ||
40 endif %?MAINTAINER-MODE%
42 ?GENERIC?%EXT%%DERIVED-EXT%:
43 ?!GENERIC?%OBJ%: %SOURCE%
44 ?GENERIC? %VERBOSE%$(am__skipyacc) $(SHELL) $(YLWRAP) %SOURCE% y.tab.c %OBJ% y.tab.h %BASE%.h y.output %BASE%.output -- %COMPILE%
45 ?!GENERIC? %VERBOSE% \
46 ?!GENERIC??DIST_SOURCE? $(am__skipyacc) \
47 ## For non-suffix rules, we must emulate a VPATH search on %SOURCE%.
48 ?!GENERIC? $(SHELL) $(YLWRAP) `test -f '%SOURCE%' || echo '$(srcdir)/'`%SOURCE% y.tab.c %OBJ% y.tab.h %BASE%.h y.output %BASE%.output -- %COMPILE%