mfm/Makefile

35 lines
526 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-01-15 01:04:25 +00:00
shards build --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
install:
install \
-m 755 \
2024-01-24 00:25:44 +00:00
bin/mfm \
2024-01-07 18:45:39 +00:00
$(PREFIX)/bin
2024-08-04 20:32:43 +00:00
clean:
rm -f bin/mfm
2024-01-07 18:45:39 +00:00
.PHONY: spec test build all prepare install