Add make install

This commit is contained in:
Ryan Cavicchioni 2021-04-07 01:38:00 +00:00
parent c229df8506
commit a9936a0f1b
Signed by: ryanc
GPG Key ID: 877EEDAF9245103D

View File

@ -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)