处理AI胡乱生成的乱摊子
This commit is contained in:
27
Makefile
Normal file
27
Makefile
Normal file
@@ -0,0 +1,27 @@
|
||||
# Makefile for pig-farm-controller
|
||||
|
||||
# 默认目标
|
||||
.PHONY: help
|
||||
help:
|
||||
@echo "Usage: make [target]"
|
||||
@echo
|
||||
@echo "Targets:"
|
||||
@echo " run Run the application"
|
||||
@echo " build Build the application"
|
||||
@echo " clean Clean generated files"
|
||||
@echo " help Show this help message"
|
||||
|
||||
# 运行应用
|
||||
.PHONY: run
|
||||
run:
|
||||
go run main.go
|
||||
|
||||
# 构建应用
|
||||
.PHONY: build
|
||||
build:
|
||||
go build -o bin/pig-farm-controller .
|
||||
|
||||
# 清理生成文件
|
||||
.PHONY: clean
|
||||
clean:
|
||||
rm -f bin/pig-farm-controller
|
||||
Reference in New Issue
Block a user