Skip to content

Commit ebac040

Browse files
author
dongjianhui03
committed
feat(*): 增加 makefile 构建工具
1 parent d45ac7a commit ebac040

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Makefile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
imports-formatter: clean
2+
CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -o ./build/mac/imports-formatter ./cmd/imports-formatter
3+
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o ./build/linux/imports-formatter ./cmd/imports-formatter
4+
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -o ./build/windows/imports-formatter ./cmd/imports-formatter
5+
6+
clean:
7+
rm -rf build/
8+
9+
.PHONY: clean imports-formatter

0 commit comments

Comments
 (0)