blogtool/Makefile

23 lines
305 B
Makefile

ifeq ($(PREFIX),)
PREFIX := /usr/local
endif
all: release
.PHONY: clean
clean:
rm -f blogtool
.PHONY: run
run:
crystal run src/blogtool.cr
release:
crystal build --release --no-debug src/blogtool.cr
test:
cd testsite && crystal run ../src/blogtool.cr
install:
install swayfocus $(PREFIX)/bin/