blob: 89f763100a5cb64b441ad8dd6210970774013dfb [file] [log] [blame]
Scott Baker50421662016-06-27 22:09:48 -07001include ../common/Makedefs
Scott Baker5475fc22016-07-22 15:15:14 -07002
3GITOPTS=-c advice.detachedHead=false
Scott Baker50421662016-06-27 22:09:48 -07004
5services: $(SERVICE_DIR) \
6 $(SERVICE_DIR)/exampleservice \
7 $(SERVICE_DIR)/olt \
Scott Baker2daffb12016-08-04 10:20:38 -07008 $(SERVICE_DIR)/vsg \
Scott Baker50421662016-06-27 22:09:48 -07009 $(SERVICE_DIR)/vtn \
Scott Baker2daffb12016-08-04 10:20:38 -070010 $(SERVICE_DIR)/vrouter \
11 $(SERVICE_DIR)/vtr \
12 $(SERVICE_DIR)/onos-service \
13 $(SERVICE_DIR)/fabric \
Scott Baker8ef5e5e2016-08-11 13:37:16 -070014 $(SERVICE_DIR)/hypercache \
Rizwan Haider752a48c2016-08-18 15:37:06 -040015 $(SERVICE_DIR)/metro-net \
Scott Baker8ef5e5e2016-08-11 13:37:16 -070016 $(SERVICE_DIR)/openstack
Scott Baker50421662016-06-27 22:09:48 -070017
18monitoring_services: $(SERVICE_DIR)/monitoring
19
20xos_core: $(XOS_DIR)
21
Zack Williamsb97dc0b2016-07-29 10:59:34 -070022$(XOS_DIR):
23 git -C ../.. $(GITOPTS) clone -b $(XOS_BRANCH) $(XOS_GIT_URL)
24
25update_xos:
26 git -C $(XOS_DIR) pull
27
Scott Baker50421662016-06-27 22:09:48 -070028$(SERVICE_DIR):
29 mkdir -p $(SERVICE_DIR)
30
31$(SERVICE_DIR)/exampleservice:
Zack Williamsb97dc0b2016-07-29 10:59:34 -070032 git -C $(SERVICE_DIR) $(GITOPTS) clone -b $(EXAMPLESERVICE_BRANCH) $(EXAMPLESERVICE_GIT_URL)
Scott Baker50421662016-06-27 22:09:48 -070033
34$(SERVICE_DIR)/olt:
Zack Williamsb97dc0b2016-07-29 10:59:34 -070035 git -C $(SERVICE_DIR) $(GITOPTS) clone -b $(OLT_BRANCH) $(OLT_GIT_URL)
Scott Baker50421662016-06-27 22:09:48 -070036
37$(SERVICE_DIR)/vsg:
Zack Williamsb97dc0b2016-07-29 10:59:34 -070038 git -C $(SERVICE_DIR) $(GITOPTS) clone -b $(VSG_BRANCH) $(VSG_GIT_URL)
Scott Baker50421662016-06-27 22:09:48 -070039
40$(SERVICE_DIR)/vtn:
Zack Williamsb97dc0b2016-07-29 10:59:34 -070041 git -C $(SERVICE_DIR) $(GITOPTS) clone -b $(VTN_BRANCH) $(VTN_GIT_URL)
Scott Baker50421662016-06-27 22:09:48 -070042
43$(SERVICE_DIR)/vrouter:
Zack Williamsb97dc0b2016-07-29 10:59:34 -070044 git -C $(SERVICE_DIR) $(GITOPTS) clone -b $(VROUTER_BRANCH) $(VROUTER_GIT_URL)
Scott Baker50421662016-06-27 22:09:48 -070045
46$(SERVICE_DIR)/vtr:
Zack Williamsb97dc0b2016-07-29 10:59:34 -070047 git -C $(SERVICE_DIR) $(GITOPTS) clone -b $(VTR_BRANCH) $(VTR_GIT_URL)
Scott Baker50421662016-06-27 22:09:48 -070048
49$(SERVICE_DIR)/onos-service:
Zack Williamsb97dc0b2016-07-29 10:59:34 -070050 git -C $(SERVICE_DIR) $(GITOPTS) clone -b $(ONOS_BRANCH) $(ONOS_GIT_URL)
Scott Baker50421662016-06-27 22:09:48 -070051
52$(SERVICE_DIR)/fabric:
Zack Williamsb97dc0b2016-07-29 10:59:34 -070053 git -C $(SERVICE_DIR) $(GITOPTS) clone -b $(FABRIC_BRANCH) $(FABRIC_GIT_URL)
Scott Baker50421662016-06-27 22:09:48 -070054
55$(SERVICE_DIR)/monitoring:
Zack Williamsb97dc0b2016-07-29 10:59:34 -070056 git -C $(SERVICE_DIR) $(GITOPTS) clone -b $(MONITORING_BRANCH) $(MONITORING_GIT_URL)
Scott Baker50421662016-06-27 22:09:48 -070057
Scott Baker2daffb12016-08-04 10:20:38 -070058$(SERVICE_DIR)/hypercache:
59 git -C $(SERVICE_DIR) $(GITOPTS) clone -b $(HYPERCACHE_BRANCH) $(HYPERCACHE_GIT_URL)
60
Rizwan Haider752a48c2016-08-18 15:37:06 -040061$(SERVICE_DIR)/metro-net:
62 git -C $(SERVICE_DIR) $(GITOPTS) clone -b $(METRONETWORK_BRANCH) $(METRONETWORK_GIT_URL)
63
Scott Baker8ef5e5e2016-08-11 13:37:16 -070064$(SERVICE_DIR)/openstack:
65 git -C $(SERVICE_DIR) $(GITOPTS) clone -b $(OPENSTACK_BRANCH) $(OPENSTACK_GIT_URL)
66
Scott Baker50421662016-06-27 22:09:48 -070067cleanup:
68 rm -rf $(SERVICE_DIR)/*
69
70update:
71 git -C $(SERVICE_DIR)/exampleservice pull
72 git -C $(SERVICE_DIR)/olt pull
73 git -C $(SERVICE_DIR)/vsg pull
74 git -C $(SERVICE_DIR)/vtn pull
75 git -C $(SERVICE_DIR)/vrouter pull
76 git -C $(SERVICE_DIR)/vtr pull
77 git -C $(SERVICE_DIR)/onos-service pull
78 git -C $(SERVICE_DIR)/fabric pull
Scott Baker2daffb12016-08-04 10:20:38 -070079 git -C $(SERVICE_DIR)/hypercache pull
Rizwan Haider752a48c2016-08-18 15:37:06 -040080 git -C $(SERVICE_DIR)/metro-net pull
Scott Baker8ef5e5e2016-08-11 13:37:16 -070081 git -C $(SERVICE_DIR)/openstack pull