[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: more filename -> file_name gotchas
From: |
Akim Demaille |
Subject: |
Re: more filename -> file_name gotchas |
Date: |
Fri, 16 Sep 2005 13:49:08 +0200 |
User-agent: |
Gnus/5.110004 (No Gnus v0.4) Emacs/21.4 (gnu/linux) |
>>> "Akim" == Akim Demaille <address@hidden> 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.