From: Axel S. <A....@ke...> - 2005-04-08 15:59:38
|
On Fri, 2005-04-08 at 15:40 +0100, Duncan Coutts wrote: > > I think "make clean" should wipe the dependencies. Updating and > > rebuilding is too fragile otherwise. > > I agree. I tried to do it, and I've been there before. It can't be done since automake chokes on GNU make conditionals (which should be passed on to GNU make an not evaluated). I've added a lengthy comment to Makefile.am to prevent me from going through this loop of insight again (I have been there before). > > Moreover, "make clean" should not rebuild the include files. > > I don't think I follow. What include files? Sorry I meant the dependency files which we .include . I.e. we shouldn't slurp in (and hence rebuild) the dependency files if the target contains the word "clean". Both things are interwoven. We clean dependencies on "make distclean" so we can say "make clean" several times in a row without rebuilding the dependencies. If we could write GNU conditionals in automake the ifeq...endif statements around -include would work, but automake chokes on them and I can't see a workaround that works. So it all stays as it is. Axel. |