# This file is part of MKF. # # MKF 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 of the License, or # (at your option) any later version. # # MKF 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 MKF; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # # Copyright (c) 2004 Alexandre Becoulet _if_var_eq cmd_bison var_define cmd_bison bison _end_if _if_in_path {PVAR,cmd_bison} msg_info GNU bison ({PVAR,cmd_bison}) found var_define use_bison bison _if_var_eq mkf_pretty_print yes command_add y c echo " BISON {SRC,.*\.y} -> {OUT}" _end_if command_add y c {JVAR,cmd_bison} -o {OUT} -d {JVAR,opt_bison} {SRC,.*\.y} _if_var_eq mkf_pretty_print yes command_add yy cc echo " BISON {SRC,.*\.yy} -> {OUT}" _end_if command_add yy cc {JVAR,cmd_bison} -o {OUT} -d {JVAR,opt_bison} {SRC,.*\.yy} _else msg_error can't find bison tool _end_if