Merge pull request #823 from matthiasbeyer/make-check
Make: Add -check targets to "cargo check"
This commit is contained in:
commit
f6a1c7d56f
1 changed files with 11 additions and 0 deletions
11
Makefile
11
Makefile
|
@ -20,6 +20,7 @@ RELEASE_TARGETS=$(foreach x,$(TARGETS),$(x)-release)
|
||||||
INSTALL_TARGETS=$(foreach x,$(BIN_TARGETS),$(x)-install)
|
INSTALL_TARGETS=$(foreach x,$(BIN_TARGETS),$(x)-install)
|
||||||
UPDATE_TARGETS=$(foreach x,$(TARGETS),$(x)-update)
|
UPDATE_TARGETS=$(foreach x,$(TARGETS),$(x)-update)
|
||||||
CLEAN_TARGETS=$(foreach x,$(TARGETS),$(x)-clean)
|
CLEAN_TARGETS=$(foreach x,$(TARGETS),$(x)-clean)
|
||||||
|
CHECK_TARGETS=$(foreach x,$(TARGETS),$(x)-check)
|
||||||
|
|
||||||
all: $(TARGETS) imag-bin
|
all: $(TARGETS) imag-bin
|
||||||
@$(ECHO) "\t[ALL ]"
|
@$(ECHO) "\t[ALL ]"
|
||||||
|
@ -44,6 +45,10 @@ imag-bin-clean:
|
||||||
@$(ECHO) "\t[IMAG ][CLEAN ]"
|
@$(ECHO) "\t[IMAG ][CLEAN ]"
|
||||||
@$(CARGO) clean --manifest-path ./bin/Cargo.toml
|
@$(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
|
release: $(RELEASE_TARGETS) imag-bin-release
|
||||||
@$(ECHO) "\t[RELEASE]"
|
@$(ECHO) "\t[RELEASE]"
|
||||||
|
|
||||||
|
@ -68,6 +73,8 @@ update: $(UPDATE_TARGETS) imag-bin-update
|
||||||
clean: $(CLEAN_TARGETS) imag-bin-clean
|
clean: $(CLEAN_TARGETS) imag-bin-clean
|
||||||
@$(ECHO) "\t[CLEAN ]"
|
@$(ECHO) "\t[CLEAN ]"
|
||||||
|
|
||||||
|
check: $(CHECK_TARGETS) imag-bin-check
|
||||||
|
|
||||||
$(TARGETS): %: .FORCE
|
$(TARGETS): %: .FORCE
|
||||||
@$(ECHO) "\t[CARGO ]:\t$@"
|
@$(ECHO) "\t[CARGO ]:\t$@"
|
||||||
@$(CARGO) build --manifest-path ./$@/Cargo.toml
|
@$(CARGO) build --manifest-path ./$@/Cargo.toml
|
||||||
|
@ -98,5 +105,9 @@ $(CLEAN_TARGETS): %: .FORCE
|
||||||
@$(ECHO) "\t[CLEAN ]:\t$(subst -clean,,$@)"
|
@$(ECHO) "\t[CLEAN ]:\t$(subst -clean,,$@)"
|
||||||
@$(CARGO) clean --manifest-path ./$(subst -clean,,$@)/Cargo.toml
|
@$(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:
|
.FORCE:
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue