You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
learn_golang/Makefile.template

27 lines
309 B
Makefile

.DEFAULT_GOAL := build
fmt:
go fmt ./...
.PHONY:fmt
lint: fmt
revive ./...
.PHONY:lint
vet: fmt
go vet ./...
.PHONY:vet
build: vet
go build -o hello_world hello.go
.PHONY:build
clean:
rm rf ./hello_world
.PHONY:clean
docs:
echo "Starting godocs on http://localhost:8000"
godoc -http=:8000
.PHONY