Skip to content

Commit

Permalink
Makefile: Fix compatibility with BSD install(1)
Browse files Browse the repository at this point in the history
Resolves #4
  • Loading branch information
jirutka committed Mar 17, 2022
1 parent b4bda45 commit 27f3492
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 27f3492

Please sign in to comment.