Add clean target (#161)

Adds a `make clean` target that invokes `cargo clean`.
This commit is contained in:
Jon Richards 2018-12-18 15:13:54 -08:00 committed by Oliver Gould
parent 792c04b7d1
commit 9c0a94987d
2 changed files with 5 additions and 0 deletions

View File

@ -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

View File

@ -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