From: Torsten L. <to...@de...> - 2010-08-11 21:51:48
Attachments:
fix-cleaning.diff
|
Hi, The Debian SWIG package fails to do a full clean (fakeroot debian/rules clean) for quite a while (I hate debugging make). I finally found out the reason and would like to share the patch with you. Basically, running "make distclean" triggers a rebuild, which fails as Source/Makefile is already removed at that point. The reason is that a substition turns out empty in the toplevel Makefile, so make is invoked recursively without a target. This builds the default target... Please consider applying the attached patch. I guess, I am the only person ever doing a distclean ;-) Greetings, Torsten |
From: William S F. <ws...@fu...> - 2010-08-17 18:45:50
|
Torsten Landschoff wrote: > Hi, > > The Debian SWIG package fails to do a full clean (fakeroot debian/rules clean) > for quite a while (I hate debugging make). > > I finally found out the reason and would like to share the patch with you. > Basically, running "make distclean" triggers a rebuild, which fails as > Source/Makefile is already removed at that point. > > The reason is that a substition turns out empty in the toplevel Makefile, so > make is invoked recursively without a target. This builds the default target... > > Please consider applying the attached patch. I guess, I am the only person > ever doing a distclean ;-) > Good spot. I run the distclean targets and the check-examples and clean-examples targets (which are affected) regularly but I don't have the more obscure languages installed that trigger this problem (allegrocl, clisp, uffi, cffi). The problem is obscured if these languages are skipped. I've used your patch and implemented the ideas in a slightly different manner for more diagnostic messaging. Thanks William |