-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathMakefile
23 lines (19 loc) · 872 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
all: build_all
build_all:
mkdir -p ./build
env GOOS=linux GOARCH=amd64 go build -o ./build/freedns-go-linux-amd64
env GOOS=linux GOARCH=arm64 go build -o ./build/freedns-go-linux-arm64
env GOOS=linux GOARCH=arm go build -o ./build/freedns-go-linux-arm
env GOOS=linux GOARCH=mips go build -o ./build/freedns-go-linux-mips
env GOOS=linux GOARCH=mipsle go build -o ./build/freedns-go-linux-mipsle
env GOOS=linux GOARCH=mips64 go build -o ./build/freedns-go-linux-mips64
env GOOS=linux GOARCH=mips64le go build -o ./build/freedns-go-linux-mips64le
env GOOS=darwin GOARCH=amd64 go build -o ./build/freedns-go-macos-amd64
env GOOS=darwin GOARCH=arm64 go build -o ./build/freedns-go-macos-arm64
update_db:
python3 ./chinaip/update_db.py
mv ./db.go ./chinaip/db.go
test:
go test ./chinaip
go test ./freedns
.PHONY: build_all update_db test