-
Notifications
You must be signed in to change notification settings - Fork 65
/
Makefile
16 lines (13 loc) · 655 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
PROTOCOL_PATH=$(GOPATH)/src/github.com/keybase/client/protocol
AVDLC=$(PROTOCOL_PATH)/node_modules/.bin/avdlc
PRETTIER=./node_modules/.bin/prettier
.DEFAULT_GOAL := types
types:
@mkdir -p src/types/{keybase1,gregor1,chat1,stellar1}/
$(AVDLC) -b -l typescript -t -o src/types/keybase1 $(PROTOCOL_PATH)/avdl/keybase1/*.avdl
$(AVDLC) -b -l typescript -t -o src/types/gregor1 $(PROTOCOL_PATH)/avdl/gregor1/*.avdl
$(AVDLC) -b -l typescript -t -o src/types/chat1 $(PROTOCOL_PATH)/avdl/chat1/*.avdl
$(AVDLC) -b -l typescript -t -o src/types/stellar1 $(PROTOCOL_PATH)/avdl/stellar1/*.avdl
$(PRETTIER) --write src/types/**/*.ts
clean:
rm -rf src/types/*