File: Makefile

package info (click to toggle)
golang-github-dcso-bloom 0.2.3-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, buster-backports
  • size: 188 kB
  • sloc: makefile: 36
file content (28 lines) | stat: -rw-r--r-- 502 bytes parent folder | download | duplicates (5)
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
## 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 test -cover $(GOFLAGS) ./...

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

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

release:
	@go get $(GOFLAGS) ./...
	@go build -v -o bloom_linux_amd64.bin bloom/*
	GOOS=windows GOARCH=amd64 go build -v -o bloom_windows_amd64.exe bloom/*

## EOF