mirror of
https://gitea.invidious.io/iv-org/shard-ameba.git
synced 2024-08-15 00:53:29 +00:00
Cleanup Makefile
This commit is contained in:
parent
01ab89b348
commit
e9226c05d5
1 changed files with 21 additions and 5 deletions
26
Makefile
26
Makefile
|
@ -4,19 +4,35 @@ PREFIX ?= /usr/local
|
||||||
SHARD_BIN ?= ../../bin
|
SHARD_BIN ?= ../../bin
|
||||||
CRFLAGS ?= -Dpreview_mt
|
CRFLAGS ?= -Dpreview_mt
|
||||||
|
|
||||||
build: bin/ameba
|
.PHONY: build
|
||||||
bin/ameba:
|
build:
|
||||||
$(SHARDS_BIN) build $(CRFLAGS)
|
$(SHARDS_BIN) build $(CRFLAGS)
|
||||||
|
|
||||||
|
.PHONY: lint
|
||||||
|
lint: build
|
||||||
|
./bin/ameba --all
|
||||||
|
|
||||||
|
.PHONY: spec
|
||||||
|
spec:
|
||||||
|
$(CRYSTAL_BIN) spec
|
||||||
|
|
||||||
|
.PHONY: clean
|
||||||
clean:
|
clean:
|
||||||
rm -f ./bin/ameba ./bin/ameba.dwarf
|
rm -f ./bin/ameba ./bin/ameba.dwarf
|
||||||
|
|
||||||
|
.PHONY: install
|
||||||
install: build
|
install: build
|
||||||
mkdir -p $(PREFIX)/bin
|
mkdir -p $(PREFIX)/bin
|
||||||
cp ./bin/ameba $(PREFIX)/bin
|
cp ./bin/ameba $(PREFIX)/bin
|
||||||
|
|
||||||
|
.PHONY: bin
|
||||||
bin: build
|
bin: build
|
||||||
mkdir -p $(SHARD_BIN)
|
mkdir -p $(SHARD_BIN)
|
||||||
cp ./bin/ameba $(SHARD_BIN)
|
cp ./bin/ameba $(SHARD_BIN)
|
||||||
|
|
||||||
|
.PHONY: run_file
|
||||||
run_file:
|
run_file:
|
||||||
cp -n ./bin/ameba.cr $(SHARD_BIN) || true
|
cp -n ./bin/ameba.cr $(SHARD_BIN) || true
|
||||||
test: build
|
|
||||||
$(CRYSTAL_BIN) spec
|
.PHONY: test
|
||||||
./bin/ameba --all
|
test: spec lint
|
||||||
|
|
Loading…
Reference in a new issue