Skip to content

Commit 03b5c76

Browse files
committed
Add makefile: I ❤️ Rust and Cargo so much
1 parent 17a9efc commit 03b5c76

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

Makefile

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
.PHONY: all
2+
all: build
3+
4+
.PHONY: build
5+
build: hot
6+
7+
hot: $(shell find . -name "*.go")
8+
go build -o $@ ./cmd
9+
10+
.PHONY: clean
11+
12+
clean:
13+
-rm hot
14+
15+
.PHONY: test
16+
test:
17+
go vet ./...
18+
go test ./...

0 commit comments

Comments
 (0)