-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
33 lines (26 loc) · 681 Bytes
/
Makefile
File metadata and controls
33 lines (26 loc) · 681 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
.PHONY: build run test clean help install lint
BINARY_NAME=tagTonic
BUILD_DIR=build
GO=go
GOFLAGS=-v
help:
@echo "Available targets:"
@echo " make build - Build the project"
@echo " make run - Build and run the TUI"
@echo " make test - Run tests"
@echo " make clean - Remove build artifacts"
@echo " make install - Install dependencies"
@echo " make lint - Run linters (if available)"
build:
mkdir -p $(BUILD_DIR)
$(GO) build $(GOFLAGS) -o $(BUILD_DIR)/$(BINARY_NAME) .
run: build
./$(BUILD_DIR)/$(BINARY_NAME) tui
clean:
$(GO) clean
rm -rf ./$(BUILD_DIR)
install:
$(GO) mod tidy
$(GO) mod download
lint:
$(GO) vet ./...