/
githubmirror
/
client
Обзор
Документация
Войти
/
githubmirror
/
client
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
protocol/Makefile
82 строки
3 KB
chrisnojima-zoom
Version 670 - clean2 (#29122)
08 июн 2026, 19:31
Не верифицирован
08 июн 2026, 19:31
1943197
Код
Авторство
О чём код?
default: build all: build AVDL2JSON=node_modules/.bin/avdl2json AVDLC=node_modules/.bin/avdlc $(AVDL2JSON): .config json/%.json: avdl/%.avdl $(AVDL2JSON) -i $< -o $@~ && mv $@~ $@ # Real file target (not phony) so Make can compare to yarn.lock and only reinstall # when the lockfile changes. Clear only the git dep from cache so Yarn refetches it # (avdl-compiler); other packages stay cached. Add more names if we add git deps. .config: yarn.lock rm -rf node_modules yarn cache clean avdl-compiler yarn --pure-lockfile touch $@ config: .config # By default, all avdl/*.avdl are considered and made into outputs # as long as they have messages in them. BUT you can override this # check via -f. So the two files specified here via -f don't have # messages but should be made into .json's... # We don't need kbgitkbfs1 in JSON so we aren't including them in the commands # here. build-stamp: avdl/keybase1/*.avdl avdl/gregor1/*.avdl avdl/chat1/*.avdl avdl/stellar1/*.avdl $(AVDL2JSON) | .config @mkdir -p json/keybase1 @mkdir -p json/gregor1 @mkdir -p json/chat1 @mkdir -p json/stellar1 $(AVDL2JSON) -2 -b -o json/keybase1 -f avdl/keybase1/constants.avdl -f avdl/keybase1/install.avdl avdl/keybase1/*.avdl $(AVDL2JSON) -2 -b -o json/gregor1 -f workaround avdl/gregor1/*.avdl $(AVDL2JSON) -2 -b -o json/chat1 -f workaround avdl/chat1/*.avdl $(AVDL2JSON) -2 -b -o json/stellar1 -f workaround avdl/stellar1/*.avdl date > $@ go-build-stamp: avdl/keybase1/*.avdl avdl/gregor1/*.avdl avdl/chat1/*.avdl avdl/stellar1/*.avdl $(AVDLC) | .config @mkdir -p ../go/protocol/keybase1 @mkdir -p ../go/protocol/gregor1 @mkdir -p ../go/protocol/chat1 @mkdir -p ../go/protocol/stellar1 @mkdir -p ../go/protocol/kbgitkbfs1 $(AVDLC) -b -l go -m -o ../go/protocol/keybase1 avdl/keybase1/*.avdl $(AVDLC) -b -l go -m -o ../go/protocol/gregor1 avdl/gregor1/*.avdl $(AVDLC) -b -l go -m -o ../go/protocol/chat1 avdl/chat1/*.avdl $(AVDLC) -b -l go -m -o ../go/protocol/stellar1 avdl/stellar1/*.avdl $(AVDLC) -b -l go -m -o ../go/protocol/kbgitkbfs1 avdl/kbgitkbfs1/*.avdl go -C ../go tool goimports -w protocol go -C ../go tool gofumpt -w protocol date > $@ js/rpc.js: build-stamp | .config @mkdir -p js/ @mkdir -p ../shared/constants/rpc rm -f ../shared/constants/types/rpc*.tsx rm -f ../shared/actions/engine-gen-gen.tsx node ./bin/generate-ts.ts cp ./js/rpc*.tsx ../shared/constants/rpc build-go-bot-types: avdl/keybase1/*.avdl avdl/gregor1/*.avdl avdl/chat1/*.avdl avdl/stellar1/*.avdl $(AVDLC) | .config $(AVDLC) -b -l go -m -t -o ../../go-keybase-chat-bot/kbchat/types/keybase1 avdl/keybase1/*.avdl $(AVDLC) -b -l go -m -t -o ../../go-keybase-chat-bot/kbchat/types/gregor1 avdl/gregor1/*.avdl $(AVDLC) -b -l go -m -t -o ../../go-keybase-chat-bot/kbchat/types/chat1 avdl/chat1/*.avdl $(AVDLC) -b -l go -m -t -o ../../go-keybase-chat-bot/kbchat/types/stellar1 avdl/stellar1/*.avdl (cd ../../go-keybase-chat-bot/kbchat/types && gofumpt -w .) clean: rm -rf json/*.json json/*/*.json js/* *build-stamp .config $(AVDLC) -c -b -l go -m -o ../go/protocol/keybase1 avdl/keybase1/*.avdl $(AVDLC) -c -b -l go -m -o ../go/protocol/gregor1 avdl/gregor1/*.avdl $(AVDLC) -c -b -l go -m -o ../go/protocol/chat1 avdl/chat1/*.avdl $(AVDLC) -c -b -l go -m -o ../go/protocol/stellar1 avdl/stellar1/*.avdl $(AVDLC) -c -b -l go -m -o ../go/protocol/kbgitkbfs1 avdl/kbgitkbfs1/*.avdl fmt: @./fmt.sh build: fmt build-stamp go-build-stamp js/rpc.js .PHONY: test config