2023-10-25 12:01:46 +00:00
|
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
#
|
|
|
|
# SPDX-FileCopyrightText: 2023 Glenn Y. Rolland <glenux@glenux.net>
|
|
|
|
# Copyright © 2023 Glenn Y. Rolland <glenux@glenux.net>
|
2023-10-20 09:29:54 +00:00
|
|
|
|
2024-01-07 18:45:39 +00:00
|
|
|
PREFIX=/usr
|
|
|
|
|
2023-10-20 09:29:54 +00:00
|
|
|
all: build
|
|
|
|
|
2024-01-07 18:45:39 +00:00
|
|
|
prepare:
|
|
|
|
shards install
|
|
|
|
|
2023-10-20 09:29:54 +00:00
|
|
|
build:
|
2023-11-24 09:48:55 +00:00
|
|
|
shards build --error-trace
|
|
|
|
@echo SUCCESS
|
|
|
|
|
|
|
|
watch:
|
|
|
|
watchexec --restart --delay-run 3 -c -e cr make build
|
2024-01-07 18:45:39 +00:00
|
|
|
|
|
|
|
spec: test
|
|
|
|
test:
|
|
|
|
crystal spec --error-trace
|
|
|
|
|
|
|
|
install:
|
|
|
|
install \
|
|
|
|
-m 755 \
|
|
|
|
bin/code-preloader \
|
|
|
|
$(PREFIX)/bin
|
|
|
|
|
|
|
|
.PHONY: spec test build all prepare install
|
|
|
|
|