summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2016-10-25 13:46:55 +0200
committerGitHub <noreply@github.com>2016-10-25 13:46:55 +0200
commitf6a1c7d56f1f559214a97d65dd1870e9f9906d71 (patch)
tree6bf14b533e23ff8d8ce1082718311b6685c10c9f
parentd14c9720e7ff4982ec5c13e011c8c27f3e92ea10 (diff)
parent523c84baff12fd7d713a614ddd72b0baba867614 (diff)
downloadimag-f6a1c7d56f1f559214a97d65dd1870e9f9906d71.zip
imag-f6a1c7d56f1f559214a97d65dd1870e9f9906d71.tar.gz
Merge pull request #823 from matthiasbeyer/make-check
Make: Add -check targets to "cargo check"
-rw-r--r--Makefile11
1 files changed, 11 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index ad164cc..789e6db 100644
--- a/Makefile
+++ b/Makefile
@@ -20,6 +20,7 @@ RELEASE_TARGETS=$(foreach x,$(TARGETS),$(x)-release)
INSTALL_TARGETS=$(foreach x,$(BIN_TARGETS),$(x)-install)
UPDATE_TARGETS=$(foreach x,$(TARGETS),$(x)-update)
CLEAN_TARGETS=$(foreach x,$(TARGETS),$(x)-clean)
+CHECK_TARGETS=$(foreach x,$(TARGETS),$(x)-check)
all: $(TARGETS) imag-bin
@$(ECHO) "\t[ALL ]"
@@ -44,6 +45,10 @@ imag-bin-clean:
@$(ECHO) "\t[IMAG ][CLEAN ]"
@$(CARGO) clean --manifest-path ./bin/Cargo.toml
+imag-bin-check:
+ @$(ECHO) "\t[IMAG ][CHECK ]"
+ @$(CARGO) check --manifest-path ./bin/Cargo.toml
+
release: $(RELEASE_TARGETS) imag-bin-release
@$(ECHO) "\t[RELEASE]"
@@ -68,6 +73,8 @@ update: $(UPDATE_TARGETS) imag-bin-update
clean: $(CLEAN_TARGETS) imag-bin-clean
@$(ECHO) "\t[CLEAN ]"
+check: $(CHECK_TARGETS) imag-bin-check
+
$(TARGETS): %: .FORCE
@$(ECHO) "\t[CARGO ]:\t$@"
@$(CARGO) build --manifest-path ./$@/Cargo.toml
@@ -98,5 +105,9 @@ $(CLEAN_TARGETS): %: .FORCE
@$(ECHO) "\t[CLEAN ]:\t$(subst -clean,,$@)"
@$(CARGO) clean --manifest-path ./$(subst -clean,,$@)/Cargo.toml
+$(CHECK_TARGETS): %: .FORCE
+ @$(ECHO) "\t[CHECK ]:\t$(subst -check,,$@)"
+ @$(CARGO) check --manifest-path ./$(subst -check,,$@)/Cargo.toml
+
.FORCE: