HomePhabricator

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

Description

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

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

Reviewers: #bitcoin_abc, deadalnix

Reviewed By: #bitcoin_abc, deadalnix

Differential Revision: https://reviews.bitcoinabc.org/D5601

Details

Provenance
Henrik Jonsson <me@hkjn.me>Authored on Mar 18 2018, 10:41
FabienCommitted on Mar 31 2020, 12:12
FabienPushed on Mar 31 2020, 12:12
Reviewer
Restricted Project
Differential Revision
D5601: depends: Add 'make clean' and 'make clean-all' rules
Parents
rABC8a8007128fed: [tests] Remove rpc_zmq.py
Branches
Unknown
Tags
Unknown