all: list
MAKEFILE_LIST = Makefile
list:
@LC_ALL=C $(MAKE) -pRrq -f $(firstword $(MAKEFILE_LIST)) : 2>/dev/null | awk -v RS= -F: '/(^|\n)# Files(\n|$$)/,/(^|\n)# Finished Make data base/ {if ($$1 !~ "^[#.]") {print $$1}}' | sort | grep -E -v -e '^[^[:alnum:]]' -e '^$@$$'
.PHONY: list
readme: README.md
README.md: README.tpl src/lib.rs
cargo readme > $@
test:
cargo test --offline
bench:
cargo bench -p xbenche --offline
test-no-default-features:
cargo test --offline --no-default-features
miri:
cargo +nightly miri test --offline
clean:
@cargo clean
@rm -f z.* *.log *.tmp
clippy:
cargo clippy --offline --tests --workspace
fmt:
cargo fmt
doc:
cargo doc
tarpaulin:
cargo tarpaulin --offline --engine llvm --out html --output-dir ./target
rustc_vers = 1.56.1 1.57.0 1.58.1 1.59.0 1.60.0 1.61.0 1.62.1 1.63.0 \
1.64.0 1.65.0 1.66.1
target_base = x86_64-unknown-linux-gnu i586-unknown-linux-gnu
define test-rustc-templ =
target/stamp/stamp.test-rustc.$(1).$(2):
@mkdir -p target/stamp
cargo +$(1) test --target=$(2)
@touch target/stamp/stamp.test-rustc.$(1).$(2)
endef
test-all-version: $(foreach ver,$(rustc_vers),$(foreach tb,$(target_base),target/stamp/stamp.test-rustc.$(ver).$(tb)))
test-clean:
@rm -fr target/stamp
$(foreach ver,$(rustc_vers),$(eval $(foreach tb,$(target_base),$(eval $(call test-rustc-templ,$(ver),$(tb))))))