feat(makefile): makefile for automatic setup

This commit is contained in:
2025-09-22 09:58:24 +08:00
parent c396a84294
commit 7c86a4a99a

22
makefile Normal file
View File

@@ -0,0 +1,22 @@
# Makefile - 安裝環境工具
.PHONY: all update upgrade install setup check
all: setup
update:
sudo apt update
upgrade:
sudo apt upgrade -y
install:
sudo apt install -y dotnet-sdk-8.0 golang-go
setup: update upgrade install check
@echo "✅ 開發環境安裝完成!"
check:
@echo "=== 檢查安裝結果 ==="
@dotnet --version || echo "⚠️ dotnet 未安裝成功"
@go version || echo "⚠️ go 未安裝成功"