diff --git a/Makefile b/Makefile index 605cee0..a4fb66c 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,11 @@ +PREFIX=/usr + all: build +prepare: + shards install + build: shards build --error-trace @@ -8,4 +13,11 @@ spec: test test: crystal spec --error-trace -.PHONY: spec test build all +install: + install \ + -m 755 \ + -o root \ + bin/code-preloader \ + $(PREFIX)/bin + +.PHONY: spec test build all prepare install