From f279879ce06152caf0e5e5d013c13baf3c94c76f Mon Sep 17 00:00:00 2001 From: Glenn Date: Sun, 7 Jan 2024 19:45:39 +0100 Subject: [PATCH] chore: add test & install to Makefile --- Makefile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/Makefile b/Makefile index 013ad50..3894aa9 100644 --- a/Makefile +++ b/Makefile @@ -3,11 +3,29 @@ # SPDX-FileCopyrightText: 2023 Glenn Y. Rolland # Copyright © 2023 Glenn Y. Rolland +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 +