From 9c0a94987d7eb7526a9324adc972175f75b2c2c8 Mon Sep 17 00:00:00 2001 From: Jon Richards Date: Tue, 18 Dec 2018 15:13:54 -0800 Subject: [PATCH] Add clean target (#161) Adds a `make clean` target that invokes `cargo clean`. --- Makefile | 4 ++++ README.md | 1 + 2 files changed, 5 insertions(+) diff --git a/Makefile b/Makefile index 9a6ecaafb..3032fbfd4 100644 --- a/Makefile +++ b/Makefile @@ -51,6 +51,10 @@ fetch: Cargo.lock .PHONY: build build: $(TARGET_BIN) +.PHONY: clean +clean: + $(CARGO) clean --target-dir $(TARGET) + .PHONY: test test: fetch $(CARGO_TEST) --no-default-features diff --git a/README.md b/README.md index 60cdc6faa..16dfae4a2 100644 --- a/README.md +++ b/README.md @@ -36,6 +36,7 @@ A `Makefile` is provided to automate most build tasks. It provides the following targets: * `make build` -- Compiles the proxy on your local system using `cargo` +* `make clean` -- Cleans the build target on the local system using `cargo clean` * `make test` -- Runs unit and integration tests on your local system using `cargo` * `make test-flakey` -- Runs _all_ tests, including those that may fail spuriously * `make package` -- Builds a tarball at