Change make clean
because it works with workspaces now
This commit is contained in:
parent
4ff88dca6e
commit
e98715589a
1 changed files with 2 additions and 11 deletions
13
Makefile
13
Makefile
|
@ -18,8 +18,6 @@ LIB_TARGETS_TEST=$(foreach x,$(subst ./,,$(LIBS)),$(x)-test)
|
||||||
TARGETS=$(BIN_TARGETS) $(LIB_TARGETS)
|
TARGETS=$(BIN_TARGETS) $(LIB_TARGETS)
|
||||||
RELEASE_TARGETS=$(foreach x,$(TARGETS),$(x)-release)
|
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)
|
|
||||||
CLEAN_TARGETS=$(foreach x,$(TARGETS),$(x)-clean)
|
|
||||||
CHECK_TARGETS=$(foreach x,$(TARGETS),$(x)-check)
|
CHECK_TARGETS=$(foreach x,$(TARGETS),$(x)-check)
|
||||||
CHECK_OUTDATED_TARGETS=$(foreach x,$(TARGETS),$(x)-check-outdated)
|
CHECK_OUTDATED_TARGETS=$(foreach x,$(TARGETS),$(x)-check-outdated)
|
||||||
|
|
||||||
|
@ -38,10 +36,6 @@ imag-bin-install:
|
||||||
@$(ECHO) "\t[IMAG ][INSTALL]"
|
@$(ECHO) "\t[IMAG ][INSTALL]"
|
||||||
@$(CARGO) install --force --path ./bin
|
@$(CARGO) install --force --path ./bin
|
||||||
|
|
||||||
imag-bin-clean:
|
|
||||||
@$(ECHO) "\t[IMAG ][CLEAN ]"
|
|
||||||
@$(CARGO) clean --manifest-path ./bin/Cargo.toml
|
|
||||||
|
|
||||||
imag-bin-check:
|
imag-bin-check:
|
||||||
@$(ECHO) "\t[IMAG ][CHECK ]"
|
@$(ECHO) "\t[IMAG ][CHECK ]"
|
||||||
@$(CARGO) check --manifest-path ./bin/Cargo.toml
|
@$(CARGO) check --manifest-path ./bin/Cargo.toml
|
||||||
|
@ -75,8 +69,9 @@ update:
|
||||||
@$(ECHO) "\t[UPDATE ]"
|
@$(ECHO) "\t[UPDATE ]"
|
||||||
@$(CARGO) update
|
@$(CARGO) update
|
||||||
|
|
||||||
clean: $(CLEAN_TARGETS) imag-bin-clean
|
clean:
|
||||||
@$(ECHO) "\t[CLEAN ]"
|
@$(ECHO) "\t[CLEAN ]"
|
||||||
|
@$(CARGO) clean
|
||||||
|
|
||||||
check: $(CHECK_TARGETS) imag-bin-check
|
check: $(CHECK_TARGETS) imag-bin-check
|
||||||
|
|
||||||
|
@ -104,10 +99,6 @@ $(INSTALL_TARGETS): %: .FORCE imag-bin-install
|
||||||
@$(ECHO) "\t[INSTALL]:\t$(subst -install,,$@)"
|
@$(ECHO) "\t[INSTALL]:\t$(subst -install,,$@)"
|
||||||
@$(CARGO) install --force --path ./$(subst -install,,$@)
|
@$(CARGO) install --force --path ./$(subst -install,,$@)
|
||||||
|
|
||||||
$(CLEAN_TARGETS): %: .FORCE
|
|
||||||
@$(ECHO) "\t[CLEAN ]:\t$(subst -clean,,$@)"
|
|
||||||
@$(CARGO) clean --manifest-path ./$(subst -clean,,$@)/Cargo.toml
|
|
||||||
|
|
||||||
$(CHECK_TARGETS): %: .FORCE
|
$(CHECK_TARGETS): %: .FORCE
|
||||||
@$(ECHO) "\t[CHECK ]:\t$(subst -check,,$@)"
|
@$(ECHO) "\t[CHECK ]:\t$(subst -check,,$@)"
|
||||||
@$(CARGO) check --manifest-path ./$(subst -check,,$@)/Cargo.toml
|
@$(CARGO) check --manifest-path ./$(subst -check,,$@)/Cargo.toml
|
||||||
|
|
Loading…
Reference in a new issue