Debian Codegraph @

Makefile

raw
1 OK_COLOR=\033[32;01m
2 NO_COLOR=\033[0m
3
4 build:
5 @echo "$(OK_COLOR)==> Compiling binary$(NO_COLOR)"
6 go test && go build -o bin/imaginary
7
8 test:
9 go test
10
11 install:
12 go get -u .
13
14 benchmark: build
15 bash benchmark.sh
16
17 docker-build:
18 @echo "$(OK_COLOR)==> Building Docker image$(NO_COLOR)"
19 docker build --no-cache=true --build-arg IMAGINARY_VERSION=$(VERSION) -t h2non/imaginary:$(VERSION) .
20
21 docker-push:
22 @echo "$(OK_COLOR)==> Pushing Docker image v$(VERSION) $(NO_COLOR)"
23 docker push h2non/imaginary:$(VERSION)
24
25 docker: docker-build docker-push
26
27 .PHONY: test benchmark docker-build docker-push docker