-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
30 lines (24 loc) · 805 Bytes
/
Copy pathMakefile
File metadata and controls
30 lines (24 loc) · 805 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Makefile for Windows
# 定义变量
SOURCE_DIR := bin,META-INF,scripts,action.sh,module.prop,service.sh,uninstall.sh
ZIP_NAME := Wireguard_For_Magisk.zip
# 默认目标
all: zip
# 打包文件为 zip
zip:
@echo "Creating zip file..."
@powershell Compress-Archive -Path $(SOURCE_DIR) -DestinationPath $(ZIP_NAME)
@echo "Zip file created: $(ZIP_NAME)"
# 清理生成的文件
clean:
@echo "Cleaning up..."
@powershell -Command "if (Test-Path $(ZIP_NAME)) { Remove-Item $(ZIP_NAME) }"
@echo "Cleanup complete."
# 帮助信息
help:
@echo "Available targets:"
@echo " all : Build the zip file."
@echo " clean : Remove the generated zip file."
@echo " help : Show this help message."
# 防止与文件同名的伪目标冲突
.PHONY: all zip clean help