-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
48 lines (46 loc) · 1.13 KB
/
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
45
46
47
48
SUBDIRS := qiniu-rust qiniu-rust-http qiniu-rust-with-libcurl qiniu-rust-test qiniu-rust-test-utils qiniu-c qiniu-c-translator
OTHER_LANG_DIRS := qiniu-ruby
all: $(SUBDIRS) $(OTHER_LANG_DIRS)
$(SUBDIRS) $(OTHER_LANG_DIRS):
$(MAKE) -C $@
build:
set -e; \
for dir in $(SUBDIRS) $(OTHER_LANG_DIRS); do \
$(MAKE) -C $$dir build; \
done
build_release:
set -e; \
for dir in qiniu-rust qiniu-c; do \
$(MAKE) -C $$dir build_release; \
done
build_test:
set -e; \
for dir in $(SUBDIRS) $(OTHER_LANG_DIRS); do \
$(MAKE) -C $$dir build_test; \
done
doc:
set -e; \
for dir in qiniu-rust qiniu-rust-http qiniu-c qiniu-ruby; do \
$(MAKE) -C $$dir doc; \
done
clean:
set -e; \
for dir in $(SUBDIRS) $(OTHER_LANG_DIRS); do \
$(MAKE) -C $$dir clean; \
done
test:
set -e; \
for dir in $(SUBDIRS) $(OTHER_LANG_DIRS); do \
$(MAKE) -C $$dir test; \
done
clippy:
set -e; \
for dir in $(SUBDIRS); do \
$(MAKE) -C $$dir clippy; \
done
publish:
set -e; \
for dir in qiniu-rust-http qiniu-rust-with-libcurl qiniu-rust-test-utils qiniu-rust; do \
(cd $$dir && cargo publish); \
done
.PHONY: all build clean doc test $(SUBDIRS) $(OTHER_LANG_DIRS)