forked from baidubce/bce-qianfan-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
44 lines (32 loc) · 804 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
prepare_output:
mkdir -p output
build: prepare_output
$(MAKE) -C python build
mv python/output/* ./output
rm -rf python/output
install:
$(MAKE) -C python install
install_ntbk:
$(MAKE) -C python install_ntbk
uninstall:
pip uninstall -y qianfan
clean:
rm -rf output
$(MAKE) -C python clean
doc: install prepare_output
$(MAKE) -C python doc
rm -rf output/docs
mv python/output/* ./output
rm -rf python/output
format: install
$(MAKE) -C python format
lint: install
$(MAKE) -C python lint
test: clean install
$(MAKE) -C python test
$(MAKE) -C go test
test_ntbk: clean install_ntbk
$(MAKE) -C python test_ntbk func_call=$(func_call) reg=$(reg) params=$(params) env_n=$(env_n) key_n=$(key_n)
mock:
bash ./python/scripts/run_mock_server.sh
.PHONY: build install uninstall clean