Skip to content

Commit 8975e4a

Browse files
Makefile: fix usage of install command line flags on macOS (#1212)
1 parent a337925 commit 8975e4a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,8 @@ govulncheck:
127127
INSTALL_PREFIX?=/usr/
128128

129129
install: $(PREFIX)bin/$(BINNAME)
130-
$Q install -D $(PREFIX)bin/$(BINNAME) $(DESTDIR)$(INSTALL_PREFIX)bin/$(BINNAME)
130+
$Q mkdir -p $(INSTALL_PREFIX)bin/
131+
$Q install $(PREFIX)bin/$(BINNAME) $(DESTDIR)$(INSTALL_PREFIX)bin/$(BINNAME)
131132

132133
uninstall:
133134
$Q rm -f $(DESTDIR)$(INSTALL_PREFIX)/bin/$(BINNAME)

0 commit comments

Comments
 (0)