feat(makefile): makefile for automatic setup
This commit is contained in:
22
makefile
Normal file
22
makefile
Normal 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 未安裝成功"
|
Reference in New Issue
Block a user