feat: add PHONY declarations and docs target to Makefile #9
6
Makefile
6
Makefile
@@ -1,5 +1,7 @@
|
|||||||
BINARY_NAME=lambda.exe
|
BINARY_NAME=lambda.exe
|
||||||
|
|
||||||
|
.PHONY: it run profile explain graph docs
|
||||||
|
|
||||||
it:
|
it:
|
||||||
@ go build -o ${BINARY_NAME} ./cmd/lambda
|
@ go build -o ${BINARY_NAME} ./cmd/lambda
|
||||||
@ chmod +x ${BINARY_NAME}
|
@ chmod +x ${BINARY_NAME}
|
||||||
@@ -19,3 +21,7 @@ graph:
|
|||||||
@ go tool pprof -raw -output=profile/cpu.raw profile/cpu.prof
|
@ go tool pprof -raw -output=profile/cpu.raw profile/cpu.prof
|
||||||
@ go tool pprof -svg profile/cpu.prof > profile/cpu.svg
|
@ go tool pprof -svg profile/cpu.prof > profile/cpu.svg
|
||||||
@ open profile/cpu.svg
|
@ open profile/cpu.svg
|
||||||
|
|
||||||
|
docs:
|
||||||
|
@ echo ">>> View at 'http://localhost:6060/pkg/git.maximhutz.com/max/lambda/'"
|
||||||
|
@ go run golang.org/x/tools/cmd/godoc@latest -http=:6060
|
||||||
|
|||||||
Reference in New Issue
Block a user