From 389665eda6d52e45e95feddbe7209f65d907cbdf Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Mon, 20 Jan 2020 16:43:41 -0500 Subject: [PATCH] add makefile --- Makefile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..044b30a --- /dev/null +++ b/Makefile @@ -0,0 +1,20 @@ +PREFIX ?= /usr/local +DEST ?= $(PREFIX)/bin + + +install: toot.json + $(info installing $(DEST)/toot) + @install -m 755 toot $(DEST) + @install -m 644 toot.json $(DEST) + +uninstall: + $(info uninstalling toot from $(DEST)) + @rm $(DEST)/toot + @rm $(DEST)/toot.json + +toot.json: + $(error toot.json does not exist. please create it! see toot.json.sample for required fields) + false + +.PHONY: uninstall +