diff options
author | Andrew Cady <d@jerkface.net> | 2019-06-25 23:18:41 -0400 |
---|---|---|
committer | Andrew Cady <d@jerkface.net> | 2019-06-25 23:18:41 -0400 |
commit | 5ae755c63e686f93e8075e7ff0e8002700ff36b4 (patch) | |
tree | 5ccf21b7912f9ddeb86d39e5b7651334692ed747 /Makefile | |
parent | 30efc81705bb74a89f1e29c23d4a074d033ebe48 (diff) |
add Makefile
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..1baa086 --- /dev/null +++ b/Makefile | |||
@@ -0,0 +1,10 @@ | |||
1 | binary = fsmgr | ||
2 | |||
3 | sudo := $(shell [ "$(id -u)" = 0 ] || echo sudo) | ||
4 | |||
5 | build: | ||
6 | stack build | ||
7 | |||
8 | install: build | ||
9 | stack install | ||
10 | $(sudo) install ~/.local/bin/$(binary) /usr/local/bin | ||