Skip to content

Commit

Permalink
Adjust Makefile to work with macOS
Browse files Browse the repository at this point in the history
Signed-off-by: Doug Stephen <[email protected]>
  • Loading branch information
dljsjr committed Dec 30, 2024
1 parent 8a415f9 commit 1a59231
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,19 +1,23 @@
# This Source Code Form is licensed MPL-2.0: http://mozilla.org/MPL/2.0

SHELL ::= /bin/bash -o pipefail
SHELL := /bin/bash -o pipefail
prefix ?= /usr/local
bindir ?= ${prefix}/bin
INSTALL ::= install -c
RM ::= rm -f
Q ::= $(if $(findstring 1, $(V)),, @)
INSTALL := install -c
RM := rm -f
Q := $(if $(findstring 1, $(V)),, @)

all: check

check-deps: jj-fzf
$Q ./jj-fzf --version
$Q ./jj-fzf --help >/dev/null # check-deps
install: check-deps
ifeq ($(shell uname -s),Darwin)
$(INSTALL) jj-fzf "$(bindir)"
else
$(INSTALL) -t "$(bindir)" jj-fzf
endif
uninstall:
$(RM) "$(bindir)/jj-fzf"

Expand Down

0 comments on commit 1a59231

Please sign in to comment.