File: Makefile

package info (click to toggle)
golang-github-dcso-fluxline 0.0~git20200907.78686e5-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid
  • size: 84 kB
  • sloc: makefile: 16
file content (25 lines) | stat: -rw-r--r-- 372 bytes parent folder | download | duplicates (4)
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
## simple makefile to log workflow
.PHONY: all test clean build install

GOFLAGS ?= $(GOFLAGS:)

all: install test


build:
	@go build $(GOFLAGS) ./...

install:
	@go get $(GOFLAGS) ./...

test: install
	@go vet $(GOFLAGS) ./...
	@go test -cover $(GOFLAGS) ./...

bench: install
	@go test -run=NONE -bench=. $(GOFLAGS) ./...

clean:
	@go clean $(GOFLAGS) -i ./...

## EOF