Files
common-server-public/bbs-go-active/server/Makefile
2025-03-03 17:43:50 +08:00

30 lines
421 B
Makefile

# Build the application
all: build
build:
@echo "Building..."
@go build -v -o bbs-go main.go
buildlinux:
@echo "Building..."
@GOOS=linux GOARCH=amd64 go build
# Run the application
run:
@go run main.go
# Test the application
test:
@echo "Testing..."
@go test ./...
# Clean the binary
clean:
@echo "Cleaning..."
@rm -f bbs-go
generator:
@go run cmd/generator/generator.go
.PHONY: all build run test clean