diff --git a/GNUmakefile b/GNUmakefile index f200641d49a..6a22e30b1a2 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -23,6 +23,7 @@ ifeq ($(PROFILE),debug) endif # Binaries +INSTALL ?= $(shell command -v install) CARGO ?= cargo CARGOFLAGS ?= RUSTC_ARCH ?= # should be empty except for cross-build, not --target $(shell rustc --print host-tuple) @@ -71,7 +72,7 @@ OS ?= $(shell uname -s) # Windows does not allow symlink by default. # Allow to override LN for AppArmor. ifeq ($(OS),Windows_NT) - LN ?= ln -f + LN ?= $(shell command -v ln) -f endif LN ?= ln -sf