Codebase list zonedb / fd003e44-e81e-4f5a-baf6-d26b4568cedc/upstream/1.0.3888 Makefile
fd003e44-e81e-4f5a-baf6-d26b4568cedc/upstream/1.0.3888

Tree @fd003e44-e81e-4f5a-baf6-d26b4568cedc/upstream/1.0.3888 (Download .tar.gz)

Makefile @fd003e44-e81e-4f5a-baf6-d26b4568cedc/upstream/1.0.3888raw · history · blame

.PHONY: test update metadata/*.json

install:
	go install ./cmd/zonedb

test:
	go run cmd/zonedb/main.go
	go test ./...

zones.go: zones.txt metadata/*.json internal/* internal/*/*
	go generate

update:
	go run cmd/zonedb/main.go -update -w -c 100 $(ZONEDB_ARGS)
	$(MAKE) zones.go

normalize:
	go run cmd/zonedb/main.go -w
	$(MAKE) zones.go

git_revision=$(shell git describe --no-tags --always --dirty --abbrev=0)
number_of_commits=$(shell git rev-list HEAD --count)
major_version=$(shell cat VERSION)
tag_version=v$(major_version).$(number_of_commits)

tag-version: .git/refs/heads/main
	git tag $(tag_version) $(git_revision)
	git push --tags