goipgrep: refactor into module; pure-Go ping/resolve; cache+CI; drop binary
This commit is contained in:
22
projects/go-tools/go/goipgrep/Makefile
Normal file
22
projects/go-tools/go/goipgrep/Makefile
Normal file
@@ -0,0 +1,22 @@
|
||||
.PHONY: build test fmt lint clean
|
||||
|
||||
UNAME_S := $(shell uname -s)
|
||||
TEST_LDFLAGS :=
|
||||
ifeq ($(UNAME_S),Darwin)
|
||||
TEST_LDFLAGS := -ldflags='-linkmode=external'
|
||||
endif
|
||||
|
||||
build:
|
||||
./scripts/build.sh
|
||||
|
||||
test:
|
||||
go test $(TEST_LDFLAGS) ./...
|
||||
|
||||
fmt:
|
||||
gofmt -w .
|
||||
|
||||
lint:
|
||||
go vet ./...
|
||||
|
||||
clean:
|
||||
rm -rf dist
|
||||
Reference in New Issue
Block a user