[nolimips: 132] Use time stamp trick for bison generated files.

Index: ChangeLog from Benoît Perrot <benoit@lrde.epita.fr> * src/parse/Makefile.am: Use time stamp trick for bison generated files. 2004-09-28 Benoît Perrot <benoit@lrde.epita.fr> Index: src/parse/Makefile.am --- src/parse/Makefile.am (revision 131) +++ src/parse/Makefile.am (revision 132) @@ -30,8 +30,19 @@ @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)

I do not have the time to make nolimips support `srcdir != buildir'; maybe tomorrow morning, else evening. I had some problems with a segfaulting compiler, a complaining automake1.9, and a broken local bison1.875c which could not find its data files since my home directory *magicaly* moved. Ha lalala :) What a waste of time -- Noe

"Benoît" == Benoît Perrot <benoit@lrde.epita.fr> writes:
I do not have the time to make nolimips support `srcdir != buildir'; maybe tomorrow morning, else evening. I had some problems with a segfaulting compiler, a complaining automake1.9, and a broken local bison1.875c which could not find its data files since my home directory *magicaly* moved. Ha lalala :) What a waste of time
:) :) :) That's regular life.

Akim Demaille <akim@epita.fr> writes:
"Benoît" == Benoît Perrot <benoit@lrde.epita.fr> writes:
[some bad words on his tools]
:) :) :)
That's regular life.
Yeah :) "Welcome to desert of real" -- Noe

Noe <benoit@lrde.epita.fr> writes:
I do not have the time to make nolimips support `srcdir != buildir'; maybe tomorrow morning, else evening.
Aaaargh, bison++!!! :) The patch is comming, but not today yet. -- Noe
participants (2)
-
Akim Demaille
-
Noe