add makefile
This commit is contained in:
parent
ef3fab1f9a
commit
389665eda6
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue