Scott Baker | 5042166 | 2016-06-27 22:09:48 -0700 | [diff] [blame] | 1 | include ../common/Makedefs |
Scott Baker | 5475fc2 | 2016-07-22 15:15:14 -0700 | [diff] [blame] | 2 | include ../common/Makedefs.branches |
| 3 | |
| 4 | GITOPTS=-c advice.detachedHead=false |
Scott Baker | 5042166 | 2016-06-27 22:09:48 -0700 | [diff] [blame] | 5 | |
| 6 | services: $(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 | |
| 16 | monitoring_services: $(SERVICE_DIR)/monitoring |
| 17 | |
| 18 | xos_core: $(XOS_DIR) |
| 19 | |
| 20 | $(SERVICE_DIR): |
| 21 | mkdir -p $(SERVICE_DIR) |
| 22 | |
| 23 | $(SERVICE_DIR)/exampleservice: |
Scott Baker | 5475fc2 | 2016-07-22 15:15:14 -0700 | [diff] [blame] | 24 | git -C $(SERVICE_DIR) $(GITOPTS) clone -b $(EXAMPLESERVICE_BRANCH) https://gerrit.opencord.org/p/exampleservice.git |
Scott Baker | 5042166 | 2016-06-27 22:09:48 -0700 | [diff] [blame] | 25 | |
| 26 | $(SERVICE_DIR)/olt: |
Scott Baker | 5475fc2 | 2016-07-22 15:15:14 -0700 | [diff] [blame] | 27 | git -C $(SERVICE_DIR) $(GITOPTS) clone -b $(OLT_BRANCH) https://gerrit.opencord.org/p/olt.git |
Scott Baker | 5042166 | 2016-06-27 22:09:48 -0700 | [diff] [blame] | 28 | |
| 29 | $(SERVICE_DIR)/vsg: |
Scott Baker | 5475fc2 | 2016-07-22 15:15:14 -0700 | [diff] [blame] | 30 | git -C $(SERVICE_DIR) $(GITOPTS) clone -b $(VSG_BRANCH) https://gerrit.opencord.org/p/vsg.git |
Scott Baker | 5042166 | 2016-06-27 22:09:48 -0700 | [diff] [blame] | 31 | |
| 32 | $(SERVICE_DIR)/vtn: |
Scott Baker | 5475fc2 | 2016-07-22 15:15:14 -0700 | [diff] [blame] | 33 | git -C $(SERVICE_DIR) $(GITOPTS) clone -b $(VTN_BRANCH) https://gerrit.opencord.org/p/vtn.git |
Scott Baker | 5042166 | 2016-06-27 22:09:48 -0700 | [diff] [blame] | 34 | |
| 35 | $(SERVICE_DIR)/vrouter: |
Scott Baker | 5475fc2 | 2016-07-22 15:15:14 -0700 | [diff] [blame] | 36 | git -C $(SERVICE_DIR) $(GITOPTS) clone -b $(VROUTER_BRANCH) https://gerrit.opencord.org/p/vrouter.git |
Scott Baker | 5042166 | 2016-06-27 22:09:48 -0700 | [diff] [blame] | 37 | |
| 38 | $(SERVICE_DIR)/vtr: |
Scott Baker | 5475fc2 | 2016-07-22 15:15:14 -0700 | [diff] [blame] | 39 | git -C $(SERVICE_DIR) $(GITOPTS) clone -b $(VTR_BRANCH) https://gerrit.opencord.org/p/vtr.git |
Scott Baker | 5042166 | 2016-06-27 22:09:48 -0700 | [diff] [blame] | 40 | |
| 41 | $(SERVICE_DIR)/onos-service: |
Scott Baker | 5475fc2 | 2016-07-22 15:15:14 -0700 | [diff] [blame] | 42 | git -C $(SERVICE_DIR) $(GITOPTS) clone -b $(ONOS_BRANCH) https://gerrit.opencord.org/p/onos-service.git |
Scott Baker | 5042166 | 2016-06-27 22:09:48 -0700 | [diff] [blame] | 43 | |
| 44 | $(SERVICE_DIR)/fabric: |
Scott Baker | 5475fc2 | 2016-07-22 15:15:14 -0700 | [diff] [blame] | 45 | git -C $(SERVICE_DIR) $(GITOPTS) clone -b $(FABRIC_BRANCH) https://gerrit.opencord.org/p/fabric.git |
Scott Baker | 5042166 | 2016-06-27 22:09:48 -0700 | [diff] [blame] | 46 | |
| 47 | $(SERVICE_DIR)/monitoring: |
Scott Baker | 5475fc2 | 2016-07-22 15:15:14 -0700 | [diff] [blame] | 48 | git -C $(SERVICE_DIR) $(GITOPTS) clone -b $(MONITORING_BRANCH) https://gerrit.opencord.org/p/monitoring.git |
Scott Baker | 5042166 | 2016-06-27 22:09:48 -0700 | [diff] [blame] | 49 | |
| 50 | cleanup: |
| 51 | rm -rf $(SERVICE_DIR)/* |
| 52 | |
| 53 | update: |
| 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 Baker | 5475fc2 | 2016-07-22 15:15:14 -0700 | [diff] [blame] | 64 | git -C ../.. $(GITOPTS) clone -b $(XOS_BRANCH) https://gerrit.opencord.org/p/xos.git |
Scott Baker | 5042166 | 2016-06-27 22:09:48 -0700 | [diff] [blame] | 65 | |
| 66 | update_xos: |
| 67 | git -C $(XOS_DIR) pull |