Codebase list zonedb / 6346370e-f8ac-4d90-b929-e9a9c990fc30/upstream/1.0.3890 Makefile
6346370e-f8ac-4d90-b929-e9a9c990fc30/upstream/1.0.3890

Tree @6346370e-f8ac-4d90-b929-e9a9c990fc30/upstream/1.0.3890 (Download .tar.gz)

Makefile @6346370e-f8ac-4d90-b929-e9a9c990fc30/upstream/1.0.3890raw · 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