Olly Betts wrote:> With the new "stamp" rules for running SWIG, things don't
seem to get
> rebuilt when I expect them to, e.g.:
>
> olly at ixion:~/svn/xapian/xapian-bindings/python $ make
modern/xapian_wrap.cc
> make: Nothing to be done for `modern/xapian_wrap.cc'.
> olly at ixion:~/svn/xapian/xapian-bindings/python $ ls -l
modern/xapian_wrap.cc
> ls: modern/xapian_wrap.cc: No such file or directory
>
> Problem being that the "stamp" file already exists. This used to
work
> before though...
Ah, I see the problem, though not a nice solution.
My first thought was "how does the .stamp file end up existing when the
xapian_wrap.cc file doesn't", but I suppose that that could happen in
various ways. (The build system should never leave it like that,
though, as far as I can see.)
I have seen a nasty solution, though, which is attached to this email:
basically, it adds a rule for generating the xapian_wrap.cc files from
the .stamp file, which checks if the _wrap.cc files already exist, and
if not, deletes the stamp file and runs a sub-make to regenerate it.
There must be a nicer way; I'll have a think.
--
Richard
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch
URL:
<http://lists.xapian.org/pipermail/xapian-devel/attachments/20070426/957b22c8/attachment.ksh>