blob: d34313cb87f307c561512d4473c7ca4960c6179f [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 \
14 $(SERVICE_DIR)/hypercache
Scott Baker50421662016-06-27 22:09:48 -070015
16monitoring_services: $(SERVICE_DIR)/monitoring
17
18xos_core: $(XOS_DIR)
19
Zack Williamsb97dc0b2016-07-29 10:59:34 -070020$(XOS_DIR):
21 git -C ../.. $(GITOPTS) clone -b $(XOS_BRANCH) $(XOS_GIT_URL)
22
23update_xos:
24 git -C $(XOS_DIR) pull
25
Scott Baker50421662016-06-27 22:09:48 -070026$(SERVICE_DIR):
27 mkdir -p $(SERVICE_DIR)
28
29$(SERVICE_DIR)/exampleservice:
Zack Williamsb97dc0b2016-07-29 10:59:34 -070030 git -C $(SERVICE_DIR) $(GITOPTS) clone -b $(EXAMPLESERVICE_BRANCH) $(EXAMPLESERVICE_GIT_URL)
Scott Baker50421662016-06-27 22:09:48 -070031
32$(SERVICE_DIR)/olt:
Zack Williamsb97dc0b2016-07-29 10:59:34 -070033 git -C $(SERVICE_DIR) $(GITOPTS) clone -b $(OLT_BRANCH) $(OLT_GIT_URL)
Scott Baker50421662016-06-27 22:09:48 -070034
35$(SERVICE_DIR)/vsg:
Zack Williamsb97dc0b2016-07-29 10:59:34 -070036 git -C $(SERVICE_DIR) $(GITOPTS) clone -b $(VSG_BRANCH) $(VSG_GIT_URL)
Scott Baker50421662016-06-27 22:09:48 -070037
38$(SERVICE_DIR)/vtn:
Zack Williamsb97dc0b2016-07-29 10:59:34 -070039 git -C $(SERVICE_DIR) $(GITOPTS) clone -b $(VTN_BRANCH) $(VTN_GIT_URL)
Scott Baker50421662016-06-27 22:09:48 -070040
41$(SERVICE_DIR)/vrouter:
Zack Williamsb97dc0b2016-07-29 10:59:34 -070042 git -C $(SERVICE_DIR) $(GITOPTS) clone -b $(VROUTER_BRANCH) $(VROUTER_GIT_URL)
Scott Baker50421662016-06-27 22:09:48 -070043
44$(SERVICE_DIR)/vtr:
Zack Williamsb97dc0b2016-07-29 10:59:34 -070045 git -C $(SERVICE_DIR) $(GITOPTS) clone -b $(VTR_BRANCH) $(VTR_GIT_URL)
Scott Baker50421662016-06-27 22:09:48 -070046
47$(SERVICE_DIR)/onos-service:
Zack Williamsb97dc0b2016-07-29 10:59:34 -070048 git -C $(SERVICE_DIR) $(GITOPTS) clone -b $(ONOS_BRANCH) $(ONOS_GIT_URL)
Scott Baker50421662016-06-27 22:09:48 -070049
50$(SERVICE_DIR)/fabric:
Zack Williamsb97dc0b2016-07-29 10:59:34 -070051 git -C $(SERVICE_DIR) $(GITOPTS) clone -b $(FABRIC_BRANCH) $(FABRIC_GIT_URL)
Scott Baker50421662016-06-27 22:09:48 -070052
53$(SERVICE_DIR)/monitoring:
Zack Williamsb97dc0b2016-07-29 10:59:34 -070054 git -C $(SERVICE_DIR) $(GITOPTS) clone -b $(MONITORING_BRANCH) $(MONITORING_GIT_URL)
Scott Baker50421662016-06-27 22:09:48 -070055
Scott Baker2daffb12016-08-04 10:20:38 -070056$(SERVICE_DIR)/hypercache:
57 git -C $(SERVICE_DIR) $(GITOPTS) clone -b $(HYPERCACHE_BRANCH) $(HYPERCACHE_GIT_URL)
58
Scott Baker50421662016-06-27 22:09:48 -070059cleanup:
60 rm -rf $(SERVICE_DIR)/*
61
62update:
63 git -C $(SERVICE_DIR)/exampleservice pull
64 git -C $(SERVICE_DIR)/olt pull
65 git -C $(SERVICE_DIR)/vsg pull
66 git -C $(SERVICE_DIR)/vtn pull
67 git -C $(SERVICE_DIR)/vrouter pull
68 git -C $(SERVICE_DIR)/vtr pull
69 git -C $(SERVICE_DIR)/onos-service pull
70 git -C $(SERVICE_DIR)/fabric pull
Scott Baker2daffb12016-08-04 10:20:38 -070071 git -C $(SERVICE_DIR)/hypercache pull
Scott Baker50421662016-06-27 22:09:48 -070072