mirror of
https://github.com/mirror/tinycc.git
synced 2025-03-12 09:00:09 +08:00
change which to command -v
This commit is contained in:
parent
583c3b4746
commit
5077d4c915
4
Makefile
4
Makefile
@ -331,7 +331,7 @@ libtcc1.a : tcc$(EXESUF) FORCE
|
||||
.PRECIOUS: %-libtcc1.a
|
||||
FORCE:
|
||||
|
||||
run-if = $(if $(shell which $1),$S $1 $2)
|
||||
run-if = $(if $(shell command -v $1),$S $1 $2)
|
||||
S = $(if $(findstring yes,$(SILENT)),@$(info * $@))
|
||||
|
||||
# --------------------------------------------------------------------------
|
||||
@ -412,7 +412,7 @@ ifneq "$(wildcard $(LIBTCC1_U))" ""
|
||||
endif
|
||||
|
||||
# the msys-git shell works to configure && make except it does not have install
|
||||
ifeq ($(CONFIG_WIN32)-$(shell which install || echo no),yes-no)
|
||||
ifeq ($(CONFIG_WIN32)-$(shell command -v install || echo no),yes-no)
|
||||
install-win : INSTALL = cp
|
||||
install-win : INSTALLBIN = cp
|
||||
endif
|
||||
|
Loading…
Reference in New Issue
Block a user