summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile5
-rw-r--r--config.mk3
2 files changed, 8 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
diff --git a/config.mk b/config.mk
index a101f23..3958049 100644
--- a/config.mk
+++ b/config.mk
@@ -1,3 +1,6 @@
+# paths
+PREFIX = /usr/local
+
# Default compile flags (overridable by environment)
CFLAGS ?= -g -Wall -Wextra -Werror -Wno-unused-parameter -Wno-sign-compare -Wno-error=unused-function