feat: add install target to Makefile
This commit is contained in:
parent
1b332d1b1e
commit
0df153053d
1 changed files with 13 additions and 1 deletions
14
Makefile
14
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
|
||||
|
|
Loading…
Reference in a new issue