go-tdlib/Makefile

20 lines
465 B
Makefile
Raw Normal View History

2020-11-30 09:33:47 +00:00
TAG := v1.7.0
2018-08-30 14:55:42 +00: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 \
2018-10-19 18:06:07 +00:00
-version "${TAG}" \
2018-08-30 14:55:42 +00:00
-output "./data/td_api.json"
generate-code:
go run ./cmd/generate-code.go \
2018-10-19 18:06:07 +00:00
-version "${TAG}" \
2018-08-30 14:55:42 +00:00
-outputDir "./client" \
-package client \
-functionFile function.go \
-typeFile type.go \
-unmarshalerFile unmarshaler.go
2018-10-23 12:49:10 +00:00
go fmt ./...