mfm/Makefile
Glenn Y. Rolland a3add50d42
Some checks reported errors
continuous-integration/drone/push Build was killed
chore: Update Drone CI configuration for deb package uploads
2024-12-30 11:18:05 +01:00

40 lines
612 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>
DESTDIR=
PREFIX=$(DESTDIR)/usr
.PHONY: all
all: build
.PHONY: prepare
prepare:
shards install
.PHONY: build
build:
shards build --error-trace -Dpreview_mt
@echo SUCCESS
watch:
watchexec --restart --delay-run 3 -c -e cr make build
.PHONY: spec test
spec: test
test:
crystal spec --error-trace
.PHONY: install
install:
install \
-D \
-m 755 \
bin/mfm \
$(PREFIX)/bin/mfm
.PHONY: deb
deb:
dpkg-buildpackage -us -uc -d