blob: b2ddeaa4b6eed6e939f34b356e6364d23cf1c5b1 (
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
28
29
30
31
32
33
34
35
36
|
BIN = dive
all: clean build
run: build
./build/$(BIN) build -t dive-test:latest -f .data/Dockerfile .
run-large: build
./build/$(BIN) amir20/clashleaders:latest
build:
go build -o build/$(BIN)
release: test validate
./.scripts/tag.sh
goreleaser --rm-dist
install:
go install ./...
test: build
go test -cover -v ./...
validate:
@! gofmt -s -d -l . 2>&1 | grep -vE '^\.git/'
go vet ./...
lint: build
golint -set_exit_status $$(go list ./...)
clean:
rm -rf build
rm -rf vendor
go clean
.PHONY: build install test lint clean release validate
|