feat: add install target to Makefile

This commit is contained in:
Glenn Y. Rolland 2024-01-03 14:06:13 +01:00
parent 1b332d1b1e
commit 0df153053d

View file

@ -1,6 +1,11 @@
PREFIX=/usr
all: build all: build
prepare:
shards install
build: build:
shards build --error-trace shards build --error-trace
@ -8,4 +13,11 @@ spec: test
test: test:
crystal spec --error-trace 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