blob: b7d92d5163d5c59af1b7f592b142a4a079184253 [file] [log] [blame]
Scott Baker50421662016-06-27 22:09:48 -07001include ../common/Makedefs
Scott Baker5475fc22016-07-22 15:15:14 -07002include ../common/Makedefs.branches
3
4GITOPTS=-c advice.detachedHead=false
Scott Baker50421662016-06-27 22:09:48 -07005
6services: $(SERVICE_DIR) \
7 $(SERVICE_DIR)/exampleservice \
8 $(SERVICE_DIR)/olt \
9 $(SERVICE_DIR)/vsg \
10 $(SERVICE_DIR)/vtn \
11 $(SERVICE_DIR)/vrouter \
12 $(SERVICE_DIR)/vtr \
13 $(SERVICE_DIR)/onos-service \
14 $(SERVICE_DIR)/fabric
15
16monitoring_services: $(SERVICE_DIR)/monitoring
17
18xos_core: $(XOS_DIR)
19
20$(SERVICE_DIR):
21 mkdir -p $(SERVICE_DIR)
22
23$(SERVICE_DIR)/exampleservice:
Scott Baker5475fc22016-07-22 15:15:14 -070024 git -C $(SERVICE_DIR) $(GITOPTS) clone -b $(EXAMPLESERVICE_BRANCH) https://gerrit.opencord.org/p/exampleservice.git
Scott Baker50421662016-06-27 22:09:48 -070025
26$(SERVICE_DIR)/olt:
Scott Baker5475fc22016-07-22 15:15:14 -070027 git -C $(SERVICE_DIR) $(GITOPTS) clone -b $(OLT_BRANCH) https://gerrit.opencord.org/p/olt.git
Scott Baker50421662016-06-27 22:09:48 -070028
29$(SERVICE_DIR)/vsg:
Scott Baker5475fc22016-07-22 15:15:14 -070030 git -C $(SERVICE_DIR) $(GITOPTS) clone -b $(VSG_BRANCH) https://gerrit.opencord.org/p/vsg.git
Scott Baker50421662016-06-27 22:09:48 -070031
32$(SERVICE_DIR)/vtn:
Scott Baker5475fc22016-07-22 15:15:14 -070033 git -C $(SERVICE_DIR) $(GITOPTS) clone -b $(VTN_BRANCH) https://gerrit.opencord.org/p/vtn.git
Scott Baker50421662016-06-27 22:09:48 -070034
35$(SERVICE_DIR)/vrouter:
Scott Baker5475fc22016-07-22 15:15:14 -070036 git -C $(SERVICE_DIR) $(GITOPTS) clone -b $(VROUTER_BRANCH) https://gerrit.opencord.org/p/vrouter.git
Scott Baker50421662016-06-27 22:09:48 -070037
38$(SERVICE_DIR)/vtr:
Scott Baker5475fc22016-07-22 15:15:14 -070039 git -C $(SERVICE_DIR) $(GITOPTS) clone -b $(VTR_BRANCH) https://gerrit.opencord.org/p/vtr.git
Scott Baker50421662016-06-27 22:09:48 -070040
41$(SERVICE_DIR)/onos-service:
Scott Baker5475fc22016-07-22 15:15:14 -070042 git -C $(SERVICE_DIR) $(GITOPTS) clone -b $(ONOS_BRANCH) https://gerrit.opencord.org/p/onos-service.git
Scott Baker50421662016-06-27 22:09:48 -070043
44$(SERVICE_DIR)/fabric:
Scott Baker5475fc22016-07-22 15:15:14 -070045 git -C $(SERVICE_DIR) $(GITOPTS) clone -b $(FABRIC_BRANCH) https://gerrit.opencord.org/p/fabric.git
Scott Baker50421662016-06-27 22:09:48 -070046
47$(SERVICE_DIR)/monitoring:
Scott Baker5475fc22016-07-22 15:15:14 -070048 git -C $(SERVICE_DIR) $(GITOPTS) clone -b $(MONITORING_BRANCH) https://gerrit.opencord.org/p/monitoring.git
Scott Baker50421662016-06-27 22:09:48 -070049
50cleanup:
51 rm -rf $(SERVICE_DIR)/*
52
53update:
54 git -C $(SERVICE_DIR)/exampleservice pull
55 git -C $(SERVICE_DIR)/olt pull
56 git -C $(SERVICE_DIR)/vsg pull
57 git -C $(SERVICE_DIR)/vtn pull
58 git -C $(SERVICE_DIR)/vrouter pull
59 git -C $(SERVICE_DIR)/vtr pull
60 git -C $(SERVICE_DIR)/onos-service pull
61 git -C $(SERVICE_DIR)/fabric pull
62
63$(XOS_DIR):
Scott Baker5475fc22016-07-22 15:15:14 -070064 git -C ../.. $(GITOPTS) clone -b $(XOS_BRANCH) https://gerrit.opencord.org/p/xos.git
Scott Baker50421662016-06-27 22:09:48 -070065
66update_xos:
67 git -C $(XOS_DIR) pull