As before we default to /usr/local but now we switch to ~/.local if /usr/local if not accessible instead of prompting for sudo. Instead of having an exception for macOS/arm64. Of course if a user wants to install in /usr/local anyway, they can still pass --prefix /usr/local to force installation into /usr/local and prompt for sudo.
15 lines
250 B
Makefile
15 lines
250 B
Makefile
.POSIX:
|
|
.SILENT:
|
|
|
|
.PHONY: all
|
|
all:
|
|
( . ./scripts/lib.sh && echoerr "You must provide a target of install or uninstall for this Makefile" )
|
|
exit 1
|
|
|
|
.PHONY: install
|
|
install:
|
|
./scripts/install.sh
|
|
|
|
.PHONY: uninstall
|
|
uninstall:
|
|
./scripts/uninstall.sh
|