>>> "Akim" == Akim Demaille <[EMAIL PROTECTED]> writes:

 >> $(calc_sources_generated): $(srcdir)/calc++-parser.stamp
 >> -   rm -f $(srcdir)/calc++-parser.stamp
 >> -   $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/calc++-parser.stamp
 >> +   @if test -f $@; then :; else \
 >> +     rm -f $(srcdir)/calc++-parser.stamp && \
 >> +     $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/calc++-parser.stamp; \
 >> +   fi
 >> +

 > That's also what I had in mind, thanks!

 > For some reason I still have very strange behavior.  I don't have time
 > to investigate now, but I'll try to.

It turns out that our two threads are connected.  In
calc++/Makefile.am, one reads:

        $(BISON) -d -ra -S lalr1.cc -o $(srcdir)/calc++-parser.cc \
          $(srcdir)/calc++-parser.yy

which includes `-S lalr1.cc -o $(srcdir)/calc++-parser.cc', which is
known not to work properly: some of the files are _not_ output in
srcdir, but in builddir.  Hence my confusion before between src and
build dirs.  Your forthcoming patch should solve this.



Reply via email to