Page MenuHomePhabricator

depends: Add 'make clean' and 'make clean-all' rules
ClosedPublic

Authored by Fabien on Mar 30 2020, 11:29.

Details

Summary
It's useful to have a standard way to clean up the work done by the
depends system when testing changes to it.

The `make clean-all` rule removes build artifacts for all
supported architectures (in addition to sources/), while `make clean`
only removes artifacts for current architecture (`BUILD`).

Backport of core PR12715.

Test Plan

Copy your depends outside of your source tree and cd to this dir.

Should remove you current arch directory, the work and built
subdirs:

make clean

Note: my system was detected as x86_64-pc-linux-gnu despite the triple
for the depends was x86_64-linux-gnu so I had to rename it.

Should remove the directories for all architectures and the sources
subdir:

make clean-all

Diff Detail

Repository
rABC Bitcoin ABC
Branch
PR12715
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 10026
Build 17892: Default Diff Build & Tests
Build 17891: arc lint + arc unit

Event Timeline

[Bot Message]
One or more PR numbers were detected in the summary.
Links to those PRs have been inserted into the summary for reference.

This revision is now accepted and ready to land.Mar 30 2020, 14:07