William Kyngesburye wrote:

> Note: definitely make sure to clean this time before recompiling,  
> because a grass6_wxnviz_wrap.cpp is generated from nviz.i.

AFAICT, this should be handled by the Makefile:

$(LIB_NAME).i: nviz.i nviz_types.i nviz.h
        cat nviz.i nviz_types.i > $(LIB_NAME).i
        echo "/* auto-generated swig typedef file */" >> $(LIB_NAME).i
        cat nviz.h >> $(LIB_NAME).i

$(LIB_NAME).py $(LIB_NAME)_wrap.cpp: $(LIB_NAME).i
        $(SWIG) -c++ -python -shadow -o $(LIB_NAME)_wrap.cpp $<

Any change to nviz.i should cause grass6_wxnviz.i to be re-made, which
in turn should cause grass6_wxnviz.py and grass6_wxnviz_wrap.cpp to be
re-made.

"make ; touch nviz.i ; make" seems to confirm this (at least for 7.x,
and the only difference between the Makefiles is grass6 -> grass7 in
the definition of LIB_NAME).

More generally, dependency information is usually sufficient within a
single directory. It's when something depends upon files in other
directories (e.g. headers, libraries, *.make files) that the
dependency information isn't sufficient (and that can't easily be
fixed).

-- 
Glynn Clements <[EMAIL PROTECTED]>
_______________________________________________
grass-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-dev

Reply via email to