BIN_NAME = "hmdeploy" run: lint @go run main.go build: lint @echo "building binary..." @go build -o $(BIN_NAME) -race main.go && echo "$(BIN_NAME) built" install: @$(shell whereis $(BIN_NAME) | cut -d ' ' -f2 | xargs rm -f) @go install @echo "program installed: $(GOPATH)/bin/hmdeploy" lint: @echo "format and lint..." @golangci-lint fmt ./... @golangci-lint run ./...