Skip to content

Commit 2ca68f5

Browse files
committed
Add Makefile, .gitignore, LICENSE
1 parent 1153a9d commit 2ca68f5

File tree

4 files changed

+28
-0
lines changed

4 files changed

+28
-0
lines changed

kadai3-2/hioki-daichi/.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/parallel-download
2+
/coverage/

kadai3-2/hioki-daichi/LICENSE

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
2+
Version 2, December 2004

kadai3-2/hioki-daichi/Makefile

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
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+
$(GOBUILD) -o $(BINARY_NAME) -v
13+
test:
14+
$(GOTEST) ./...
15+
cov:
16+
$(GOTEST) ./... -race -coverprofile=coverage/c.out -covermode=atomic
17+
$(GOTOOL) cover -html=coverage/c.out -o coverage/index.html
18+
open coverage/index.html
19+
clean:
20+
$(GOCLEAN)
21+
rm -f $(BINARY_NAME)
22+
doc:
23+
(sleep 1; open http://localhost:$(GODOCPORT)/pkg/github.com/gopherdojo/dojo3) &
24+
$(GODOCCMD) -http ":$(GODOCPORT)"

kadai3-2/hioki-daichi/coverage/.keep

Whitespace-only changes.

0 commit comments

Comments
 (0)