Commit 99b6f5fb authored by Benoit Perrot's avatar Benoit Perrot
Browse files

Index: ChangeLog

from  Benoît Perrot  <benoit@lrde.epita.fr>

	* src/parse/Makefile.am:
	Use time stamp trick for bison generated files.
parent 19933902
2004-09-28 Benot Perrot <benoit@lrde.epita.fr>
* src/parse/Makefile.am:
Use time stamp trick for bison generated files.
2004-09-28 Benot Perrot <benoit@lrde.epita.fr>
Do not update timestamps of generators when they fail.
......
......@@ -30,8 +30,19 @@ parse-asm-parse.stamp: $(top_srcdir)/dev/parse-asm-parse-gen.py $(top_srcdir)/de
@mv -f $@.tmp $@
asm-parse.yy: parse-asm-parse.stamp
$(FROM_ASM_PARSE_YY): $(srcdir)/asm-parse.yy
bison -S lalr1.cc -d -ra $(srcdir)/asm-parse.yy -o asm-parse.cc
bison.stamp: asm-parse.yy
@rm -rf $@.tmp
@touch $@.tmp
bison -S lalr1.cc -d -ra asm-parse.yy -o asm-parse.cc
@mv -f $@.tmp $@
# Run bison if a file that can be created by it is missing:
asm-parse.cc $(FROM_ASM_PARSE_YY): bison.stamp
@if test ! -f $@; then \
@rm -f bison.stamp; \
$(MAKE) $(AM_MAKEFLAGS) bison.stamp; \
fi
MAINTAINERCLEANFILES = asm-scan.ll asm-scan.yy $(FROM_ASM_PARSE_YY)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment