go-tdlib/Makefile
Aleksandr Zelenin 74bc598956 TDLib 1.3.0
2018-09-06 00:45:29 +03:00

19 lines
468 B
Makefile

TAG := v1.3.0
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 \
-input "./data/td_api.tl" \
-output "./data/td_api.json"
generate-code:
go run ./cmd/generate-code.go \
-schema "./data/td_api.tl" \
-outputDir "./client" \
-package client \
-functionFile function.go \
-typeFile type.go \
-unmarshalerFile unmarshaler.go