From 27f3492256b17abbb45aa9fe7957005d0847c47c Mon Sep 17 00:00:00 2001 From: Jakub Jirutka Date: Thu, 17 Mar 2022 23:40:21 +0100 Subject: [PATCH] Makefile: Fix compatibility with BSD install(1) Resolves #4 --- Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 7a891c5..7de2658 100644 --- a/Makefile +++ b/Makefile @@ -61,11 +61,13 @@ install: install-exec install-man #: Install executable into $DESTDIR/$bindir/. install-exec: build-exec - $(INSTALL) -D -m755 $(D)/$(BIN_NAME) "$(DESTDIR)$(bindir)/$(BIN_NAME)" + $(INSTALL) -d "$(DESTDIR)$(bindir)" + $(INSTALL) -m755 $(D)/$(BIN_NAME) "$(DESTDIR)$(bindir)/$(BIN_NAME)" #: Install man page into $DESTDIR/$mandir/man1/. install-man: build-man - $(INSTALL) -D -m755 $(D)/$(BIN_NAME).1 "$(DESTDIR)$(mandir)/man1/$(BIN_NAME).1" + $(INSTALL) -d "$(DESTDIR)$(mandir)/man1" + $(INSTALL) -m755 $(D)/$(BIN_NAME).1 "$(DESTDIR)$(mandir)/man1/$(BIN_NAME).1" #: Uninstall from $DESTDIR. uninstall: