forked from openconfig/ygot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
28 lines (27 loc) · 878 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
# ygot Makefile
#
# This makefile is used by Travis CI to run tests against the ygot library.
#
ROOT_DIR:=$(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
test:
go test ./...
generate:
cd ${ROOT_DIR}/demo/getting_started && go generate
cd ${ROOT_DIR}/proto/ywrapper && go generate
cd $(ROOT_DIR)/proto/yext && go generate
cd $(ROOT_DIR)/demo/uncompressed && go generate
cd $(ROOT_DIR)/demo/protobuf_getting_started && ./update.sh
cd $(ROOT_DIR)/integration_tests/uncompressed && go generate
clean:
rm -f ${ROOT_DIR}/demo/getting_started/pkg/ocdemo/oc.go
rm -f ${ROOT_DIR}/demo/uncompressed/pkg/demo/uncompressed.go
deps:
go get -t -d ./ygot
go get -t -d ./ygen
go get -t -d ./generator
go get -t -d ./proto_generator
go get -t -d ./exampleoc
go get -t -d ./ytypes
go get -t -d ./demo/gnmi_telemetry
install: deps generate
all: clean deps generate test