-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
81 lines (71 loc) · 2.21 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
all: generate
fmt:
go fmt ./...
install-deps:
go get github.com/jteeuwen/go-bindata/...
go get github.com/elazarl/go-bindata-assetfs/...
go get github.com/golang/dep
dep ensure -v
generate: clean generate-models
generate-proto:
protoc --plugin=protoc-gen-go=${GOPATH}/bin/protoc-gen-gogofaster \
-Iproto --gogofaster_out=Mgoogle/protobuf/any.proto=github.com/gogo/protobuf/types,plugins=grpc+marshalto+unmarshal:${GOPATH}/src \
proto/allocation_description.proto \
proto/api_def.proto \
proto/attr_value.proto \
proto/checkpointable_object_graph.proto \
proto/cluster.proto \
proto/event.proto \
proto/config.proto \
proto/control_flow.proto \
proto/cost_graph.proto \
proto/critical_section.proto \
proto/debug.proto \
proto/device_attributes.proto \
proto/device_properties.proto \
proto/eager_service.proto \
proto/error_codes.proto \
proto/function.proto \
proto/graph.proto \
proto/graph_transfer_info.proto \
proto/iterator.proto \
proto/kernel_def.proto \
proto/log_memory.proto \
proto/master.proto \
proto/master_service.proto \
proto/meta_graph.proto \
proto/named_tensor.proto \
proto/node_def.proto \
proto/op_def.proto \
proto/queue_runner.proto \
proto/reader_base.proto \
proto/remote_fused_graph_execute_info.proto \
proto/replay_log.proto \
proto/resource_handle.proto \
proto/rewriter_config.proto \
proto/saved_model.proto \
proto/saver.proto \
proto/step_stats.proto \
proto/summary.proto \
proto/tensor_bundle.proto \
proto/tensor_description.proto \
proto/tensorflow_server.proto \
proto/tensor.proto \
proto/tensor_shape.proto \
proto/tensor_slice.proto \
proto/transport_options.proto \
proto/types.proto \
proto/variable.proto \
proto/versions.proto \
proto/worker.proto \
proto/worker_service.proto
generate-models:
go-bindata -nomemcopy -prefix builtin_models/ -pkg tensorflow -o builtin_models_static.go -ignore=.DS_Store -ignore=README.md builtin_models/...
clean-models:
rm -fr builtin_models_static.go
clean-proto:
rm -fr *pb.go
clean: clean-models
travis: install-deps generate
echo "building..."
go build