From ed61286be7bd1f56d8287ef7d989c2e1a6f5464f Mon Sep 17 00:00:00 2001 From: oech3 <79379754+oech3@users.noreply.github.com> Date: Thu, 13 Nov 2025 03:53:53 +0900 Subject: [PATCH] GNUmakefile: prefer system {ln,install}.exe --- GNUmakefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/GNUmakefile b/GNUmakefile index f262c50ea48..ca97d83e6ff 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -6,7 +6,6 @@ MULTICALL ?= n COMPLETIONS ?= y MANPAGES ?= y LOCALES ?= y -INSTALL ?= install ifneq (,$(filter install, $(MAKECMDGOALS))) override PROFILE:=release endif @@ -23,6 +22,7 @@ ifeq ($(PROFILE),release) 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 +71,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