aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorKeating950 <keating.reid@protonmail.com>2020-11-22 12:58:49 -0500
committerKeating950 <keating.reid@protonmail.com>2020-11-22 12:58:49 -0500
commit95788164874890ec99dbc23a4e460b1781cc7be3 (patch)
treef7ae0c7da5b443d1e76b28564d2a0b2fda3a6de8 /Makefile
parent44ef698d6ef48a41b0df7c4c47d8b880efdbdf33 (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 56ab751..7f17cc6 100644
--- a/Makefile
+++ b/Makefile
@@ -33,5 +33,10 @@ dwl: xdg-shell-protocol.o
clean:
rm -f dwl *.o xdg-shell-protocol.h xdg-shell-protocol.c
+install: dwl
+ mkdir -p $(PREFIX)/bin
+ cp -f dwl $(PREFIX)/bin
+ chmod 755 $(PREFIX)/bin/dwl
+
.DEFAULT_GOAL=dwl
.PHONY: clean