CC="g++"; target "stage" { rule "exe"; input files("src/*.y", "src/*.l", "src/*.cpp"); FLEXFLAGS="-osrc/parser.yy.c"; BISONFLAGS="-d"; LDFLAGS += "-lbu++"; } /* rule "bison" { input "*.y"; output [INPUT.regex("\\.y$", ".tab.c"), INPUT.regex("\\.y$", ".tab.h")]; profile "build" { DIR=INPUT.dirName(); FILE=INPUT.fileName(); execute("cd ${DIR}; bison -d ${FILE}"); } } */