[BUILD] don't remove tarbals in clean target
- Remove libtld.tar in maintainerclean, not clean
libtld.tar is created by ./bootstrap. It is not crated by regular builds. And if it is deleted then it has to be recrated, either by hand, or by invoking ./bootstrap directly or indirectly.
libtld.tar is a required target of make dist, but make has now way of craeating it.
And it is delted by any type of clean, including make clean.
So in a nutshell, the following fails.- tar -zxf heartbeat-2.1.1.tar.gz
- cd heartbeat-2.1.1/
- ./ConfigureMe configure
- make clean
- make dist ... make: *** No rule to make target libltdl.tar', needed by distdir'. Stop
It seems to me that an easy way to get around this is to only remove libltdl.tar when doing an operation which would require ./bootstrap to be re-run. And I believe that means, make maintainerclean
- Remove $(PACKAGE)-*.tar.gz in distclean, not clean
It seems much more sensible to me to remove (potentially) stale distribution tar balls in make distclean rather than the regular clean, as you may actually want them left lying around while doing regular build/clean cycles.
Signed-off-by: Simon Horman <horms@verge.net.au>
Mercurial revision: b87bf5516f9f22cb5652e607d3a7d5a4df8ed5ad