add Makefile and docs for golang xdb maker and binding

This commit is contained in:
Lion 2022-06-19 19:07:03 +08:00
parent 9cb3bbcb07
commit 4b4984fce0
4 changed files with 22 additions and 2 deletions

10
binding/golang/Makefile Normal file
View File

@ -0,0 +1,10 @@
# ip2region golang binding makefile
all: build
.PHONY: all
build:
go build -o xdb_searcher
test:
go test -v ./...
clean:
find ./ -name xdb_searcher | xargs rm -f

View File

@ -43,7 +43,7 @@ func main() {
通过如下方式编译得到 xdb_searcher 可执行程序:
```bash
# 切换到 golang binding 根目录
go build -o xdb_searcher
make
```

10
maker/golang/Makefile Normal file
View File

@ -0,0 +1,10 @@
# ip2region golang maker makefile
all: build
.PHONY: all
build:
go build -o xdb_maker
test:
go test -v ./...
clean:
find ./ -name xdb_maker | xargs rm -f

View File

@ -5,7 +5,7 @@
通过如下方式编译得到 xdb_maker 可执行程序:
```
# 切换到golang maker 根目录
go build -o xdb_maker
make
```
编译成功后会在当前目录生成一个 xdb_maker 的可执行文件