aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorKeating950 <keating.reid@protonmail.com>2020-11-22 12:58:49 -0500
committerGuido Cella <guido@guidocella.xyz>2020-12-19 18:45:49 +0100
commit05883b7b2f823cf292b2f27b8ee2c542e6a8eaa7 (patch)
tree6fdea3d95609331ca7f3fa5f4643b7e7686fbb98 /Makefile
parentfeeacc88c41653937a2698fcb39a455cd41c44d8 (diff)
add install target to Makefile and corresponding prefix variable to config.mk
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index bf0b957..3d3028f 100644
--- a/Makefile
+++ b/Makefile
@@ -53,5 +53,10 @@ dwl: xdg-shell-protocol.o wlr-layer-shell-unstable-v1-protocol.o idle-protocol.o
clean:
rm -f dwl *.o *-protocol.h *-protocol.c
+install: dwl
+ mkdir -p $(PREFIX)/bin
+ cp -f dwl $(PREFIX)/bin
+ chmod 755 $(PREFIX)/bin/dwl
+
.DEFAULT_GOAL=dwl
.PHONY: clean