chore: add test & install to Makefile
This commit is contained in:
parent
35a87cd7e0
commit
f279879ce0
1 changed files with 18 additions and 0 deletions
18
Makefile
18
Makefile
|
@ -3,11 +3,29 @@
|
|||
# SPDX-FileCopyrightText: 2023 Glenn Y. Rolland <glenux@glenux.net>
|
||||
# Copyright © 2023 Glenn Y. Rolland <glenux@glenux.net>
|
||||
|
||||
PREFIX=/usr
|
||||
|
||||
all: build
|
||||
|
||||
prepare:
|
||||
shards install
|
||||
|
||||
build:
|
||||
shards build --error-trace
|
||||
@echo SUCCESS
|
||||
|
||||
watch:
|
||||
watchexec --restart --delay-run 3 -c -e cr make build
|
||||
|
||||
spec: test
|
||||
test:
|
||||
crystal spec --error-trace
|
||||
|
||||
install:
|
||||
install \
|
||||
-m 755 \
|
||||
bin/code-preloader \
|
||||
$(PREFIX)/bin
|
||||
|
||||
.PHONY: spec test build all prepare install
|
||||
|
||||
|
|
Loading…
Reference in a new issue