12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- # where to rsync builds
- DIST?=dist/publish
- DISTSUB=2020/05
- test: .PHONY
- go test -v $(shell go list ./... | grep -v /vendor/)
- testrace: .PHONY
- go test -v -race $(shell go list ./... | grep -v /vendor/)
- docker-test: .PHONY
- # test that we don't have missing dependencies
- docker run --rm -v `pwd`:/go/src/github.com/abh/geodns \
- -v /opt/local/share/GeoIP:/opt/local/share/GeoIP \
- golang:1.14-alpine3.11 -- \
- go test ./...
- devel:
- go build -tags devel
- bench:
- go test -check.b -check.bmem
- TARS=$(wildcard dist/geodns-*-*.tar)
- push: $(TARS) install.sh
- rsync --exclude publish install.sh $(TARS) $(DIST)/$(DISTSUB)/
- $(DIST)/../push
- builds: linux-build linux-build-i386 freebsd-build push
- linux-build:
- GOOS=linux GOARCH=amd64 ./build
- linux-build-i386:
- GOOS=linux GOARCH=386 ./build
- freebsd-build:
- GOOS=freebsd GOARCH=amd64 ./build
- GOOS=freebsd GOARCH=386 ./build
- .PHONY:
|