kilt/Makefile

32 lines
668 B
Makefile
Raw Normal View History

2024-12-15 14:07:44 +01:00
# Define variables
APP_NAME = kilt
GO_CMD = go
GO_BUILD = $(GO_CMD) build
GO_INSTALL = $(GO_CMD) install
GO_CLEAN = $(GO_CMD) clean
BUILD_DIR = build
BINARY = $(BUILD_DIR)/$(APP_NAME)
all: build
build:
@echo "Building $(APP_NAME)..."
$(GO_BUILD) -o $(BINARY)
install: build
@echo "Installing $(APP_NAME)..."
$(GO_INSTALL)
clean:
@echo "Cleaning up build artifacts..."
$(GO_CLEAN)
rm -f $(BINARY)
help:
@echo "Makefile for $(APP_NAME)"
@echo "Usage:"
@echo " make build - Build the application"
@echo " make install - Install the application"
@echo " make clean - Remove build artifacts"
@echo " make - Default target (build)"