34 lines
544 B
Makefile
34 lines
544 B
Makefile
# 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>
|
|
|
|
PREFIX=/usr
|
|
|
|
all: build
|
|
|
|
prepare:
|
|
shards install
|
|
|
|
build:
|
|
shards build --progress --error-trace -Dpreview_mt
|
|
@echo SUCCESS
|
|
|
|
watch:
|
|
watchexec --restart --delay-run 3 -c -e cr make build
|
|
|
|
spec: test
|
|
test:
|
|
crystal spec --error-trace
|
|
|
|
format:
|
|
crystal tool format
|
|
|
|
install:
|
|
install \
|
|
-m 755 \
|
|
bin/mfm \
|
|
$(PREFIX)/bin
|
|
|
|
.PHONY: spec test build all prepare install
|
|
|