go-tdlib/Makefile

20 lines
499 B
Makefile
Raw Normal View History

2022-04-18 22:45:01 +02:00
TAG := 054a823c1a812ee3e038f702c6d8ba3e6974be9c
2021-10-22 16:24:12 +02:00
schema-update:
curl https://raw.githubusercontent.com/tdlib/td/${TAG}/td/generate/scheme/td_api.tl 2>/dev/null > ./data/td_api.tl
generate-json:
go run ./cmd/generate-json.go \
-version "${TAG}" \
-output "./data/td_api.json"
generate-code:
go run ./cmd/generate-code.go \
-version "${TAG}" \
-outputDir "./client" \
-package client \
-functionFile function.go \
-typeFile type.go \
-unmarshalerFile unmarshaler.go
go fmt ./...