2024-08-26 23:18:28 +00:00
|
|
|
all: build
|
|
|
|
|
2024-08-09 13:30:20 +00:00
|
|
|
build: $(wildcard src/**/*.cr) $(wildcard lexers/*xml) $(wildcard styles/*xml) shard.yml
|
2024-08-11 14:49:42 +00:00
|
|
|
shards build -Dstrict_multi_assign -Dno_number_autocast -d --error-trace
|
2024-08-09 13:30:20 +00:00
|
|
|
release: $(wildcard src/**/*.cr) $(wildcard lexers/*xml) $(wildcard styles/*xml) shard.yml
|
|
|
|
shards build --release
|
|
|
|
static: $(wildcard src/**/*.cr) $(wildcard lexers/*xml) $(wildcard styles/*xml) shard.yml
|
|
|
|
shards build --release --static
|
|
|
|
strip bin/tartrazine
|
2024-08-26 23:18:28 +00:00
|
|
|
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf bin lib shard.lock
|
|
|
|
|
|
|
|
test:
|
|
|
|
crystal spec
|
|
|
|
|
|
|
|
lint:
|
|
|
|
ameba --fix src spec
|
|
|
|
|
|
|
|
.PHONY: clean all test bin lint
|