blob: 2d5c6930d77b9fc012a0f3bc56b0ce64d69d8c3d [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 \
15 $(SERVICE_DIR)/openstack
Scott Baker50421662016-06-27 22:09:48 -070016
17monitoring_services: $(SERVICE_DIR)/monitoring
18
19xos_core: $(XOS_DIR)
20
Zack Williamsb97dc0b2016-07-29 10:59:34 -070021$(XOS_DIR):
22 git -C ../.. $(GITOPTS) clone -b $(XOS_BRANCH) $(XOS_GIT_URL)
23
24update_xos:
25 git -C $(XOS_DIR) pull
26
Scott Baker50421662016-06-27 22:09:48 -070027$(SERVICE_DIR):
28 mkdir -p $(SERVICE_DIR)
29
30$(SERVICE_DIR)/exampleservice:
Zack Williamsb97dc0b2016-07-29 10:59:34 -070031 git -C $(SERVICE_DIR) $(GITOPTS) clone -b $(EXAMPLESERVICE_BRANCH) $(EXAMPLESERVICE_GIT_URL)
Scott Baker50421662016-06-27 22:09:48 -070032
33$(SERVICE_DIR)/olt:
Zack Williamsb97dc0b2016-07-29 10:59:34 -070034 git -C $(SERVICE_DIR) $(GITOPTS) clone -b $(OLT_BRANCH) $(OLT_GIT_URL)
Scott Baker50421662016-06-27 22:09:48 -070035
36$(SERVICE_DIR)/vsg:
Zack Williamsb97dc0b2016-07-29 10:59:34 -070037 git -C $(SERVICE_DIR) $(GITOPTS) clone -b $(VSG_BRANCH) $(VSG_GIT_URL)
Scott Baker50421662016-06-27 22:09:48 -070038
39$(SERVICE_DIR)/vtn:
Zack Williamsb97dc0b2016-07-29 10:59:34 -070040 git -C $(SERVICE_DIR) $(GITOPTS) clone -b $(VTN_BRANCH) $(VTN_GIT_URL)
Scott Baker50421662016-06-27 22:09:48 -070041
42$(SERVICE_DIR)/vrouter:
Zack Williamsb97dc0b2016-07-29 10:59:34 -070043 git -C $(SERVICE_DIR) $(GITOPTS) clone -b $(VROUTER_BRANCH) $(VROUTER_GIT_URL)
Scott Baker50421662016-06-27 22:09:48 -070044
45$(SERVICE_DIR)/vtr:
Zack Williamsb97dc0b2016-07-29 10:59:34 -070046 git -C $(SERVICE_DIR) $(GITOPTS) clone -b $(VTR_BRANCH) $(VTR_GIT_URL)
Scott Baker50421662016-06-27 22:09:48 -070047
48$(SERVICE_DIR)/onos-service:
Zack Williamsb97dc0b2016-07-29 10:59:34 -070049 git -C $(SERVICE_DIR) $(GITOPTS) clone -b $(ONOS_BRANCH) $(ONOS_GIT_URL)
Scott Baker50421662016-06-27 22:09:48 -070050
51$(SERVICE_DIR)/fabric:
Zack Williamsb97dc0b2016-07-29 10:59:34 -070052 git -C $(SERVICE_DIR) $(GITOPTS) clone -b $(FABRIC_BRANCH) $(FABRIC_GIT_URL)
Scott Baker50421662016-06-27 22:09:48 -070053
54$(SERVICE_DIR)/monitoring:
Zack Williamsb97dc0b2016-07-29 10:59:34 -070055 git -C $(SERVICE_DIR) $(GITOPTS) clone -b $(MONITORING_BRANCH) $(MONITORING_GIT_URL)
Scott Baker50421662016-06-27 22:09:48 -070056
Scott Baker2daffb12016-08-04 10:20:38 -070057$(SERVICE_DIR)/hypercache:
58 git -C $(SERVICE_DIR) $(GITOPTS) clone -b $(HYPERCACHE_BRANCH) $(HYPERCACHE_GIT_URL)
59
Scott Baker8ef5e5e2016-08-11 13:37:16 -070060$(SERVICE_DIR)/openstack:
61 git -C $(SERVICE_DIR) $(GITOPTS) clone -b $(OPENSTACK_BRANCH) $(OPENSTACK_GIT_URL)
62
Scott Baker50421662016-06-27 22:09:48 -070063cleanup:
64 rm -rf $(SERVICE_DIR)/*
65
66update:
67 git -C $(SERVICE_DIR)/exampleservice pull
68 git -C $(SERVICE_DIR)/olt pull
69 git -C $(SERVICE_DIR)/vsg pull
70 git -C $(SERVICE_DIR)/vtn pull
71 git -C $(SERVICE_DIR)/vrouter pull
72 git -C $(SERVICE_DIR)/vtr pull
73 git -C $(SERVICE_DIR)/onos-service pull
74 git -C $(SERVICE_DIR)/fabric pull
Scott Baker2daffb12016-08-04 10:20:38 -070075 git -C $(SERVICE_DIR)/hypercache pull
Scott Baker8ef5e5e2016-08-11 13:37:16 -070076 git -C $(SERVICE_DIR)/openstack pull