Skip to content

Commit b81680e

Browse files
committed
make: simple makefile to document workflow
1 parent abfb513 commit b81680e

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

Makefile

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
## simple makefile to log workflow
2+
.PHONY: all test clean build install
3+
4+
GOFLAGS ?= $(GOFLAGS:)
5+
6+
all: install test
7+
8+
9+
build:
10+
@go build $(GOFLAGS) ./...
11+
12+
install:
13+
@go get $(GOFLAGS) ./...
14+
15+
test: install
16+
@go test $(GOFLAGS) ./...
17+
18+
bench: install
19+
@go test -bench=. $(GOFLAGS) ./...
20+
21+
clean:
22+
@go clean $(GOFLAGS) -i ./...
23+
24+
## EOF

0 commit comments

Comments
 (0)