init
This commit is contained in:
29
bbs-go/server/Makefile
Normal file
29
bbs-go/server/Makefile
Normal file
@@ -0,0 +1,29 @@
|
||||
# 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
|
||||
Reference in New Issue
Block a user