2017-11-28 18:00:10 -08:00
|
|
|
.PHONY: default build test doc book clean
|
2017-09-30 09:10:03 -07:00
|
|
|
|
2017-12-18 18:56:58 -08:00
|
|
|
CARGO_FLAGS := --features "$(FEATURES) alpn"
|
2017-09-30 09:10:03 -07:00
|
|
|
|
|
|
|
default: test
|
|
|
|
|
|
|
|
build:
|
|
|
|
cargo build $(CARGO_FLAGS)
|
|
|
|
|
|
|
|
test: build clippy
|
|
|
|
cargo test $(CARGO_FLAGS)
|
|
|
|
|
2017-10-26 06:12:23 -07:00
|
|
|
skeptic:
|
|
|
|
USE_SKEPTIC=1 cargo test $(CARGO_FLAGS)
|
|
|
|
|
2017-09-30 09:10:03 -07:00
|
|
|
# cd examples/word-count && python setup.py install && pytest -v tests
|
|
|
|
|
|
|
|
clippy:
|
|
|
|
if $$CLIPPY; then cargo clippy $(CARGO_FLAGS); fi
|
|
|
|
|
|
|
|
doc: build
|
|
|
|
cargo doc --no-deps $(CARGO_FLAGS)
|
2017-11-28 18:00:10 -08:00
|
|
|
cd guide; mdbook build -d ../target/doc/guide/; cd ..
|
|
|
|
|
|
|
|
book:
|
|
|
|
cd guide; mdbook build -d ../target/doc/guide/; cd ..
|