From a9936a0f1ba4a5ee67d67fc7479cecf0877ed362 Mon Sep 17 00:00:00 2001 From: Ryan Cavicchioni Date: Wed, 7 Apr 2021 01:38:00 +0000 Subject: [PATCH] Add make install --- Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Makefile b/Makefile index 24b0d1c..918a8d0 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,7 @@ V ?= 0 Q = $(if $(filter 1, $V),, @) BINDIR=$(CURDIR)/bin +DESTDIR=/usr/local/bin ifeq ($(OS), Windows_NT) EXE=$(BINDIR)/lume.exe @@ -26,3 +27,7 @@ build: .PHONY: clean clean: $(Q) $(RM) $(EXE) + +.PHONY: install +install: + $(Q) install -p -D -m 0755 $(EXE) $(DESTDIR)