HomeClusterLabs Projects

[BUILD] don't remove tarbals in clean target

Description

[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.
    1. tar -zxf heartbeat-2.1.1.tar.gz
    2. cd heartbeat-2.1.1/
    3. ./ConfigureMe configure
    4. make clean
    5. 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

Details

Provenance
Simon Horman <horms@verge.net.au>Authored on Aug 9 2007, 5:52 AM
Parents
rP5bbb0d602d9e: [BUILD] don't ignore errors on install
Branches
Unknown
Tags
Unknown

Event Timeline