Makefile: Add "check" target.

This uses https://github.com/taiki-e/cargo-hack
This commit is contained in:
parazyd
2022-01-13 11:26:54 +01:00
parent 07d739d916
commit 49c891ac69

View File

@@ -16,8 +16,12 @@ BINDEPS = \
$(shell find sql -type f) \
$(shell find contrib/token -type f) \
#all: $(BINS)
all: $(BINS)
check:
$(CARGO) hack check --feature-powerset --no-dev-deps
$(BINS): $(BINDEPS)
$(CARGO) build --workspace --release --all-features
cp -f target/release/$@ $@
@@ -57,4 +61,4 @@ clean:
distclean: clean
rm -rf target
.PHONY: all test fix clippy install uninstall clean distclean
.PHONY: all check test fix clippy install uninstall clean distclean