hmdeploy/Makefile
2025-04-29 10:51:47 +02:00

18 lines
375 B
Makefile

BIN_NAME = "hmdeploy"
run: lint
@go run main.go
build: lint
@echo "building binary..."
@go build -o $(BIN_NAME) 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 ./...