Compare commits

..

No commits in common. "81af5973de76c568a80313de2c0de774092bdacc" and "5335bf27fd3bc32d6372b723f324a9b45d2fb447" have entirely different histories.

1 changed files with 10 additions and 8 deletions

View File

@ -7,25 +7,27 @@ GO_CLEAN = $(GO_CMD) clean
BUILD_DIR = build BUILD_DIR = build
BINARY = $(BUILD_DIR)/$(APP_NAME) BINARY = $(BUILD_DIR)/$(APP_NAME)
.PHONY: all build help clean install .PHONY: build
all: build all: build
build: ## Build the application build:
@echo "Building $(APP_NAME)..." @echo "Building $(APP_NAME)..."
$(GO_BUILD) -o $(BINARY) $(GO_BUILD) -o $(BINARY)
install: build ## Install the application install: build
@echo "Installing $(APP_NAME)..." @echo "Installing $(APP_NAME)..."
$(GO_INSTALL) $(GO_INSTALL)
clean: ## Remove build artifacts clean:
@echo "Cleaning up build artifacts..." @echo "Cleaning up build artifacts..."
$(GO_CLEAN) $(GO_CLEAN)
rm -f $(BINARY) rm -f $(BINARY)
help: ## Print the make targets help:
@echo "Makefile for $(APP_NAME)" @echo "Makefile for $(APP_NAME)"
@echo "Targets:" @echo "Usage:"
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' @echo " make build - Build the application"
@echo " make install - Install the application"
@echo " make clean - Remove build artifacts"
@echo " make - Default target (build)"