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