Forráskód Böngészése

Makefile: Add "check" target.

This uses https://github.com/taiki-e/cargo-hack
parazyd 4 éve
szülő
commit
49c891ac69
1 módosított fájl, 5 hozzáadás és 1 törlés
  1. 5 1
      Makefile

+ 5 - 1
Makefile

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