From 0df152497634dfe55cab97e9e660df0623b5a023 Mon Sep 17 00:00:00 2001 From: Ryan Cavicchioni Date: Thu, 8 Apr 2021 05:35:16 +0000 Subject: [PATCH] Use PREFIX and DESTDIR for make install Refs #7 --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index ff94c8f..3b69ee3 100644 --- a/Makefile +++ b/Makefile @@ -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