all: run hello.tab.h hello.tab.c: hello.bison bison hello.bison \ --locations \ --defines \ --file-prefix hello \ --output=hello.tab.c hello.yy.c: hello.flex flex --outfile=hello.yy.c hello.flex hello-parser: hello.yy.c hello.tab.h hello.tab.c gcc -o hello-parser hello.yy.c hello.tab.c run-hello-parser: hello-parser ./hello-parser < input/2 run: hello ./hello < input/0 clean: rm -f hello.tab.h hello.tab.c hello.yy.c hello-lexer hello-parser