You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
ifeq ($(PREFIX),)
|
|
|
|
PREFIX := /usr/local
|
|
|
|
endif
|
|
|
|
|
|
|
|
all: release
|
|
|
|
|
|
|
|
.PHONY: clean
|
|
|
|
clean:
|
|
|
|
rm -f blogtool
|
|
|
|
|
|
|
|
.PHONY: run
|
|
|
|
run:
|
|
|
|
crystal run src/blogtool.cr
|
|
|
|
|
|
|
|
release: dependencies
|
|
|
|
crystal build --release --no-debug src/blogtool.cr
|
|
|
|
|
|
|
|
dependencies:
|
|
|
|
shards install
|
|
|
|
|
|
|
|
debug:
|
|
|
|
crystal build src/blogtool.cr
|
|
|
|
|
|
|
|
test: debug
|
|
|
|
cd testsite && ../blogtool
|
|
|
|
|
|
|
|
install:
|
|
|
|
install blogtool $(PREFIX)/bin/
|
|
|
|
mkdir -p /etc/blogtool
|
|
|
|
install testsite/base.html /etc/blogtool/
|