go-tdlib/Makefile

20 lines
466 B
Makefile
Raw Permalink Normal View History

TAG := v1.8.14
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 ./...