blob: a2ed851d746552ef39c6bc887cf314c381489ac7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
--- a/Makefile
+++ b/Makefile
@@ -2,16 +2,19 @@
PREFIX ?= /usr/local
SHARD_BIN ?= ../../bin
-build:
+.PHONY: build
+build: bin/ameba
+
+bin/ameba:
$(CRYSTAL_BIN) build --no-debug -o bin/ameba src/cli.cr $(CRFLAGS)
clean:
rm -f ./bin/ameba
-install: build
+install: bin/ameba
mkdir -p $(PREFIX)/bin
cp ./bin/ameba $(PREFIX)/bin
-bin: build
+bin: bin/ameba
mkdir -p $(SHARD_BIN)
cp ./bin/ameba $(SHARD_BIN)
-test: build
- $(CRYSTAL_BIN) spec
+test: bin/ameba
+ $(CRYSTAL_BIN) spec $(SPEC_FLAGS)
./bin/ameba
|