diff options
author | Andrew Cady <d@jerkface.net> | 2019-10-04 00:45:50 -0400 |
---|---|---|
committer | Andrew Cady <d@jerkface.net> | 2019-10-04 10:20:36 -0400 |
commit | a9dec6fd1d3f4cd2b61f1c28a8f42cc0cebed3ec (patch) | |
tree | 8f38d29d801f2c0f39e0b73f7f1baaa43717846d | |
parent | 87bb4056b3a11cd9afa33e49a9b1f50e6149ec91 (diff) |
added Makefile
-rw-r--r-- | Makefile | 12 |
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 @@ | |||
1 | binary = xmonad-config-exe | ||
2 | |||
3 | sudo := $(shell [ "$(id -u)" = 0 ] || echo sudo) | ||
4 | |||
5 | build: | ||
6 | stack build | ||
7 | |||
8 | install: 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 | ||