Tag
Hash :
1be94280
Author :
Date :
2001-05-15T02:21:54
Fix for yaccvpath.test: * tests/Makefile.am (XFAIL_TESTS): Removed yaccvpath.test. * lib/am/distdir.am (distdir): Always look for file in build directory first. * lib/ylwrap: Quote the `#line' regular expression. * lib/am/yacc.am (%YACC_SUFFIX%%C_SUFFIX%): Reverted earlier change; don't run sed on the generated file. * tests/yaccvpath.test: Create new parser in srcdir. Added test to make sure parser will be rebuilt at dist time.
## automake - create Makefile.in from Makefile.am
## Copyright 1998, 1999, 2001 Free Software Foundation, Inc.
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
## the Free Software Foundation; either version 2, or (at your option)
## any later version.
## This program is distributed in the hope that it will be useful,
## but WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
## GNU General Public License for more details.
## You should have received a copy of the GNU General Public License
## along with this program; if not, write to the Free Software
## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
## 02111-1307, USA.
## Generate rule for c/c++.
%YACC_SUFFIX%%C_SUFFIX%:
if %?YLWRAP%
$(SHELL) $(YLWRAP) $(YACC) $< y.tab.c $*%C_SUFFIX% y.tab.h $*.h -- $(AM_YFLAGS) $(YFLAGS)
else !%?YLWRAP%
$(YACC) $(AM_YFLAGS) $(YFLAGS) $< && mv y.tab.c $*%C_SUFFIX%
if test -f y.tab.h; then \
if cmp -s y.tab.h $*.h; then \
rm -f y.tab.h; \
else \
mv y.tab.h $*.h; \
fi; \
fi
endif !%?YLWRAP%