Skip to content

Instantly share code, notes, and snippets.

@jhigdon
Created February 2, 2022 01:33
Show Gist options
  • Save jhigdon/fb0d5ee0d8d246db1b52846141171942 to your computer and use it in GitHub Desktop.
Save jhigdon/fb0d5ee0d8d246db1b52846141171942 to your computer and use it in GitHub Desktop.
go makefile
build:
rm -f ./build/protonpack && go build -o build/ ./cmd/protonpack
CMDPATHS := $(patsubst %/, %, $(dir ./cmd/*/))
buildall:
go build -o build/ $(CMDPATHS)
clean:
rm -fr ./build
cleanlogs:
rm -fr ./logs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment