Use PREFIX and DESTDIR for make install

Refs #7
This commit is contained in:
Ryan Cavicchioni 2021-04-08 05:35:16 +00:00
parent 965b1b4339
commit 0df1524976
Signed by: ryanc
GPG Key ID: 877EEDAF9245103D

View File

@ -1,7 +1,8 @@
V ?= 0
Q = $(if $(filter 1, $V),, @)
BINDIR=$(CURDIR)/bin
DESTDIR=/usr/local/bin
PREFIX=/usr/bin
DESTDIR=bin
ifeq ($(OS), Windows_NT)
EXE=$(BINDIR)/lume.exe
@ -30,4 +31,4 @@ clean:
.PHONY: install
install:
$(Q) install -p -D -m 0755 $(EXE) $(DESTDIR)
$(Q) install -p -D -m 0755 $(EXE) $(DESTDIR)${PREFIX}/lume