-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
24 lines (16 loc) · 769 Bytes
/
Makefile
File metadata and controls
24 lines (16 loc) · 769 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
SRC_DIR := ./src
DST_DIR := ./dst
GOLANG := go
build: $(DST_DIR)/uspy_arm64.exe $(DST_DIR)/uspy_arm.exe $(DST_DIR)/uspy_amd64.exe $(DST_DIR)/uspy_386.exe
$(DST_DIR)/uspy_arm64.exe: $(SRC_DIR)/main.go
cd $(SRC_DIR) && GOOS=windows GOARCH=arm64 $(GOLANG) build -o ../$(DST_DIR)/uspy_arm64.exe .
$(DST_DIR)/uspy_arm.exe: $(SRC_DIR)/main.go
cd $(SRC_DIR) && GOOS=windows GOARCH=arm $(GOLANG) build -o ../$(DST_DIR)/uspy_arm.exe .
$(DST_DIR)/uspy_amd64.exe: $(SRC_DIR)/main.go
cd $(SRC_DIR) && GOOS=windows GOARCH=amd64 $(GOLANG) build -o ../$(DST_DIR)/uspy_amd64.exe .
$(DST_DIR)/uspy_386.exe: $(SRC_DIR)/main.go
cd $(SRC_DIR) && GOOS=windows GOARCH=386 $(GOLANG) build -o ../$(DST_DIR)/uspy_386.exe .
test:
cd $(SRC_DIR) && go test .
clean:
rm -r ./dst/*.exe