We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cafe368 commit 64178e1Copy full SHA for 64178e1
kadai3-2/hioki-daichi/Makefile
@@ -0,0 +1,25 @@
1
+GOCMD=go
2
+GOBUILD=$(GOCMD) build
3
+GOCLEAN=$(GOCMD) clean
4
+GOTEST=$(GOCMD) test
5
+GOTOOL=$(GOCMD) tool
6
+GODOCCMD=godoc
7
+GODOCPORT=6060
8
+BINARY_NAME=parallel-download
9
+
10
+all: test build
11
+build:
12
+ dep ensure
13
+ $(GOBUILD) -o $(BINARY_NAME) -v
14
+test:
15
+ $(GOTEST) ./...
16
+cov:
17
+ $(GOTEST) ./... -race -coverprofile=coverage/c.out -covermode=atomic
18
+ $(GOTOOL) cover -html=coverage/c.out -o coverage/index.html
19
+ open coverage/index.html
20
+clean:
21
+ $(GOCLEAN)
22
+ rm -f $(BINARY_NAME)
23
+doc:
24
+ (sleep 1; open http://localhost:$(GODOCPORT)/pkg/github.com/gopherdojo/dojo3) &
25
+ $(GODOCCMD) -http ":$(GODOCPORT)"
0 commit comments