File: Makefile

package info (click to toggle)
golang-github-hashicorp-atlas-go 0.0~git20170808.8261ea0-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 448 kB
  • sloc: sh: 262; makefile: 20
file content (19 lines) | stat: -rw-r--r-- 347 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
TEST?=./...
DEPS = $(shell go list -f '{{range .TestImports}}{{.}} {{end}}' ./...)

all: deps build

deps:
	go get -d -v ./...
	echo $(DEPS) | xargs -n1 go get -d

build:
	@mkdir -p bin/
	go build -o bin/atlas-go ./v1

test:
	go test $(TEST) $(TESTARGS) -timeout=10s -parallel=4
	go vet $(TEST)
	go test $(TEST) -race

.PHONY: all deps build test