-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
39 lines (29 loc) · 845 Bytes
/
Makefile
File metadata and controls
39 lines (29 loc) · 845 Bytes
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
28
29
30
31
32
33
34
35
36
37
38
39
all: greitspitz
lib:
shards
spec: lib main.cr src/**/*.cr
crystal spec
greitspitz: lib main.cr src/**/*.cr
crystal build --error-trace -o greitspitz main.cr
@strip greitspitz
@du -sh greitspitz
release: lib main.cr src/**/*.cr
crystal build --release -o greitspitz main.cr
@strip greitspitz
@du -sh greitspitz
clean:
rm -rf .crystal greitspitz .deps .shards libs lib *.dwarf build
PREFIX ?= /usr/local
install: release
install -d $(PREFIX)/bin
install greitspitz $(PREFIX)/bin
image: clean
export TAG="$$(shards version)"; \
docker build -t "fingertips/greitspitz:$${TAG}" .
push: image
export TAG="$$(shards version)"; \
docker push "fingertips/greitspitz:$${TAG}"
latest: push
export TAG="$$(shards version)"; \
docker tag "fingertips/greitspitz:$${TAG}" fingertips/greitspitz; \
docker push "fingertips/greitspitz"