summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 12 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..6337177
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,12 @@
1binary = xmonad-config-exe
2
3sudo := $(shell [ "$(id -u)" = 0 ] || echo sudo)
4
5build:
6 stack build
7
8install: build
9 stack install
10 [ -d ~/.xmonad ] || mkdir ~/.xmonad
11 install ~/.local/bin/$(binary) ~/.xmonad/xmonad-$$(arch)-linux
12 $(sudo) install ~/.local/bin/$(binary) /usr/local/bin/xmonad