From: Michael Urman Date: Mon, 21 May 2001 21:43:47 +0000 (-0000) Subject: Added dynamic generation of token.l, bison.y from token.l.in, bison.y.in. X-Git-Tag: v0.1.0~485 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=728f4404e78448b29786e9a1d0ae1b434d9ed67e;p=yasm Added dynamic generation of token.l, bison.y from token.l.in, bison.y.in. It's ugly, but it only generates once until new files exist. svn path=/trunk/yasm/; revision=26 --- diff --git a/Makefile b/Makefile index b322dca0..d248c49e 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -# $Id: Makefile,v 1.3 2001/05/20 08:30:04 peter Exp $ +# $Id: Makefile,v 1.4 2001/05/21 21:43:47 mu Exp $ # Makefile # # Copyright (C) 2001 Peter Johnson @@ -53,6 +53,14 @@ src/bison.tab.c: src/bison.y src/lex.yy.c: src/token.l flex -o$@ $< +src/bison.y: src/instrs.dat src/token.l.in src/bison.y.in src/gen_instr.pl + $(MAKE) gen_instrs +src/token.l: src/instrs.dat src/token.l.in src/bison.y.in src/gen_instr.pl + $(MAKE) gen_instrs + +gen_instrs: + src/gen_instr.pl -i src/instrs.dat -t src/token.l -g src/bison.y + clean: rm -f obj/*.o rm -f src/bison.tab.c