File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change 1- platforms = windows/amd64 darwin/amd64 linux/amd64
1+ PLATFORMS : = windows/amd64 darwin/amd64 linux/amd64
22package = cmd/pre-commit/main.go
33binary = build/pre-commit
44
55help :
6- @ echo " See Makefile for options "
6+ @grep -E ' ^[a-zA-Z0-9_-]+:.*?## .*$$ ' $( MAKEFILE_LIST ) | awk ' BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2} '
77
8- compile :
9- @ for platform in $( platforms ) ; do \
8+ compile : clean # # Build binaries for all platforms defined in $PLATFORMS
9+ @ for platform in $( PLATFORMS ) ; do \
1010 platform_split=($$ {platform//\/ / }); \
1111 GOOS=$$ {platform_split[0]}; \
1212 GOARCH=$$ {platform_split[1]}; \
@@ -17,4 +17,6 @@ compile:
1717 echo " Build for $$ platform -> $$ output_name" ; \
1818 env GOOS=$$ GOOS GOARCH=$$ GOARCH go build -o $$ output_name $(package ) ; \
1919 done
20-
20+
21+ clean : # # Cleanup build artifacts and remove build/
22+ rm -rf build/
You can’t perform that action at this time.
0 commit comments