/
Makefile
41 lines (28 loc) · 1.35 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
all: proto
.PHONY: proto test
proto: groundstation/proto/gizmo_pb2.py \
groundstation/proto/git_object_pb2.py \
groundstation/proto/object_list_pb2.py \
groundstation/proto/channel_list_pb2.py \
groundstation/objects/root_object_pb2.py \
groundstation/objects/update_object_pb2.py
PROTOC_OPTS = --python_out=./
groundstation/proto/gizmo_pb2.py: groundstation/proto/gizmo.proto
protoc ${PROTOC_OPTS} groundstation/proto/gizmo.proto
groundstation/proto/git_object_pb2.py: groundstation/proto/git_object.proto
protoc ${PROTOC_OPTS} groundstation/proto/git_object.proto
groundstation/proto/object_list_pb2.py: groundstation/proto/object_list.proto
protoc ${PROTOC_OPTS} groundstation/proto/object_list.proto
groundstation/proto/channel_list_pb2.py: groundstation/proto/channel_list.proto
protoc ${PROTOC_OPTS} groundstation/proto/channel_list.proto
groundstation/objects/root_object_pb2.py: groundstation/objects/root_object.proto
protoc ${PROTOC_OPTS} groundstation/objects/root_object.proto
groundstation/objects/update_object_pb2.py: groundstation/objects/update_object.proto
protoc ${PROTOC_OPTS} groundstation/objects/update_object.proto
clean:
find ./ -iname "*.pyc" -delete
groundstation_test:
GROUNDSTATION_DEBUG=WARN python -m unittest discover test
airship_test:
cd airship; ../node_modules/mocha/bin/mocha
test: groundstation_test airship_test