-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
40 lines (32 loc) · 782 Bytes
/
Makefile
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
34
35
36
37
38
39
40
# Makefile for SQLKV project
# Variables
APP_NAME = sqlkv
GO_FILES = $(shell find . -name '*.go')
DB_FILE = sqlkv.db
# Default target
all: build
# Build the application
build:
CGO_ENABLED=1 go build -o sqlkv
codesign --options runtime --timestamp -s - ./sqlkv
# Run the application
run: build
./$(APP_NAME)
# Run tests
test:
go test ./...
# Clean up build artifacts
clean:
rm -f $(APP_NAME) $(DB_FILE)
# Install dependencies
deps:
go mod tidy
# Help command
help:
@echo "Makefile commands:"
@echo " make build - Build the application"
@echo " make run - Run the application"
@echo " make test - Run tests"
@echo " make clean - Clean up build artifacts"
@echo " make deps - Install dependencies"
@echo " make help - Show this help message"