export DEBUG = routewatch .PHONY: test fmt lint build clean run asupdate all: test test: lint go test -v ./... fmt: go fmt ./... lint: go vet ./... golangci-lint run build: go build -o bin/routewatch cmd/routewatch/main.go clean: rm -rf bin/ run: build ./bin/routewatch asupdate: @echo "Updating AS info data..." @go run cmd/asinfo-gen/main.go > pkg/asinfo/asdata.json.tmp && \ mv pkg/asinfo/asdata.json.tmp pkg/asinfo/asdata.json