Edit

kc3-lang/automake/yacc.am

Branch :

  • Show log

    Commit

  • Author : Akim Demaille
    Date : 2001-04-09 09:58:57
    Hash : 3727a57d
    Message : * automake.in (&condition_negate): New. (&variable_conditions_permutations): Use it. (&read_am_file, &file_contents): Use it on `else' clauses to support `if FALSE'. (&output_yacc_build_rule): Output this... * yacc.am: New file.

  • yacc.am
  • ## 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
    	$(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%