summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Cady <d@jerkface.net>2019-10-04 00:45:50 -0400
committerAndrew Cady <d@jerkface.net>2019-10-04 10:20:36 -0400
commita9dec6fd1d3f4cd2b61f1c28a8f42cc0cebed3ec (patch)
tree8f38d29d801f2c0f39e0b73f7f1baaa43717846d
parent87bb4056b3a11cd9afa33e49a9b1f50e6149ec91 (diff)
added 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