Skip to content

Commit 8052bf7

Browse files
oech3oech3
authored andcommitted
GNUmakefile: prefer system {ln,install}.exe at make
1 parent d432131 commit 8052bf7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

GNUmakefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ MULTICALL ?= n
66
COMPLETIONS ?= y
77
MANPAGES ?= y
88
LOCALES ?= y
9-
INSTALL ?= install
109
ifneq (,$(filter install, $(MAKECMDGOALS)))
1110
override PROFILE:=release
1211
endif
@@ -23,6 +22,7 @@ ifeq ($(PROFILE),release)
2322
endif
2423

2524
# Binaries
25+
INSTALL ?= $(shell command -v install)
2626
CARGO ?= cargo
2727
CARGOFLAGS ?=
2828
RUSTC_ARCH ?= # should be empty except for cross-build, not --target $(shell rustc --print host-tuple)
@@ -71,7 +71,7 @@ OS ?= $(shell uname -s)
7171
# Windows does not allow symlink by default.
7272
# Allow to override LN for AppArmor.
7373
ifeq ($(OS),Windows_NT)
74-
LN ?= ln -f
74+
LN ?= $(shell command -v ln) -f
7575
endif
7676
LN ?= ln -sf
7777

0 commit comments

Comments
 (0)