mfm/Makefile

35 lines
544 B
Makefile
Raw Normal View History

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:
2024-12-10 22:53:30 +00:00
shards build --progress --error-trace -Dpreview_mt
2023-11-24 09:48:55 +00:00
@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
2024-10-27 19:45:01 +00:00
format:
crystal tool format
2024-01-07 18:45:39 +00:00
install:
install \
-m 755 \
2024-01-24 00:25:44 +00:00
bin/mfm \
2024-01-07 18:45:39 +00:00
$(PREFIX)/bin
.PHONY: spec test build all prepare install