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 | |
| 3 | GITOPTS=-c advice.detachedHead=false |
Scott Baker | 5042166 | 2016-06-27 22:09:48 -0700 | [diff] [blame] | 4 | |
| 5 | services: $(SERVICE_DIR) \ |
| 6 | $(SERVICE_DIR)/exampleservice \ |
| 7 | $(SERVICE_DIR)/olt \ |
Scott Baker | 2daffb1 | 2016-08-04 10:20:38 -0700 | [diff] [blame] | 8 | $(SERVICE_DIR)/vsg \ |
Scott Baker | 5042166 | 2016-06-27 22:09:48 -0700 | [diff] [blame] | 9 | $(SERVICE_DIR)/vtn \ |
Scott Baker | 2daffb1 | 2016-08-04 10:20:38 -0700 | [diff] [blame] | 10 | $(SERVICE_DIR)/vrouter \ |
| 11 | $(SERVICE_DIR)/vtr \ |
| 12 | $(SERVICE_DIR)/onos-service \ |
| 13 | $(SERVICE_DIR)/fabric \ |
Scott Baker | 8ef5e5e | 2016-08-11 13:37:16 -0700 | [diff] [blame] | 14 | $(SERVICE_DIR)/hypercache \ |
Rizwan Haider | 752a48c | 2016-08-18 15:37:06 -0400 | [diff] [blame^] | 15 | $(SERVICE_DIR)/metro-net \ |
Scott Baker | 8ef5e5e | 2016-08-11 13:37:16 -0700 | [diff] [blame] | 16 | $(SERVICE_DIR)/openstack |
Scott Baker | 5042166 | 2016-06-27 22:09:48 -0700 | [diff] [blame] | 17 | |
| 18 | monitoring_services: $(SERVICE_DIR)/monitoring |
| 19 | |
| 20 | xos_core: $(XOS_DIR) |
| 21 | |
Zack Williams | b97dc0b | 2016-07-29 10:59:34 -0700 | [diff] [blame] | 22 | $(XOS_DIR): |
| 23 | git -C ../.. $(GITOPTS) clone -b $(XOS_BRANCH) $(XOS_GIT_URL) |
| 24 | |
| 25 | update_xos: |
| 26 | git -C $(XOS_DIR) pull |
| 27 | |
Scott Baker | 5042166 | 2016-06-27 22:09:48 -0700 | [diff] [blame] | 28 | $(SERVICE_DIR): |
| 29 | mkdir -p $(SERVICE_DIR) |
| 30 | |
| 31 | $(SERVICE_DIR)/exampleservice: |
Zack Williams | b97dc0b | 2016-07-29 10:59:34 -0700 | [diff] [blame] | 32 | git -C $(SERVICE_DIR) $(GITOPTS) clone -b $(EXAMPLESERVICE_BRANCH) $(EXAMPLESERVICE_GIT_URL) |
Scott Baker | 5042166 | 2016-06-27 22:09:48 -0700 | [diff] [blame] | 33 | |
| 34 | $(SERVICE_DIR)/olt: |
Zack Williams | b97dc0b | 2016-07-29 10:59:34 -0700 | [diff] [blame] | 35 | git -C $(SERVICE_DIR) $(GITOPTS) clone -b $(OLT_BRANCH) $(OLT_GIT_URL) |
Scott Baker | 5042166 | 2016-06-27 22:09:48 -0700 | [diff] [blame] | 36 | |
| 37 | $(SERVICE_DIR)/vsg: |
Zack Williams | b97dc0b | 2016-07-29 10:59:34 -0700 | [diff] [blame] | 38 | git -C $(SERVICE_DIR) $(GITOPTS) clone -b $(VSG_BRANCH) $(VSG_GIT_URL) |
Scott Baker | 5042166 | 2016-06-27 22:09:48 -0700 | [diff] [blame] | 39 | |
| 40 | $(SERVICE_DIR)/vtn: |
Zack Williams | b97dc0b | 2016-07-29 10:59:34 -0700 | [diff] [blame] | 41 | git -C $(SERVICE_DIR) $(GITOPTS) clone -b $(VTN_BRANCH) $(VTN_GIT_URL) |
Scott Baker | 5042166 | 2016-06-27 22:09:48 -0700 | [diff] [blame] | 42 | |
| 43 | $(SERVICE_DIR)/vrouter: |
Zack Williams | b97dc0b | 2016-07-29 10:59:34 -0700 | [diff] [blame] | 44 | git -C $(SERVICE_DIR) $(GITOPTS) clone -b $(VROUTER_BRANCH) $(VROUTER_GIT_URL) |
Scott Baker | 5042166 | 2016-06-27 22:09:48 -0700 | [diff] [blame] | 45 | |
| 46 | $(SERVICE_DIR)/vtr: |
Zack Williams | b97dc0b | 2016-07-29 10:59:34 -0700 | [diff] [blame] | 47 | git -C $(SERVICE_DIR) $(GITOPTS) clone -b $(VTR_BRANCH) $(VTR_GIT_URL) |
Scott Baker | 5042166 | 2016-06-27 22:09:48 -0700 | [diff] [blame] | 48 | |
| 49 | $(SERVICE_DIR)/onos-service: |
Zack Williams | b97dc0b | 2016-07-29 10:59:34 -0700 | [diff] [blame] | 50 | git -C $(SERVICE_DIR) $(GITOPTS) clone -b $(ONOS_BRANCH) $(ONOS_GIT_URL) |
Scott Baker | 5042166 | 2016-06-27 22:09:48 -0700 | [diff] [blame] | 51 | |
| 52 | $(SERVICE_DIR)/fabric: |
Zack Williams | b97dc0b | 2016-07-29 10:59:34 -0700 | [diff] [blame] | 53 | git -C $(SERVICE_DIR) $(GITOPTS) clone -b $(FABRIC_BRANCH) $(FABRIC_GIT_URL) |
Scott Baker | 5042166 | 2016-06-27 22:09:48 -0700 | [diff] [blame] | 54 | |
| 55 | $(SERVICE_DIR)/monitoring: |
Zack Williams | b97dc0b | 2016-07-29 10:59:34 -0700 | [diff] [blame] | 56 | git -C $(SERVICE_DIR) $(GITOPTS) clone -b $(MONITORING_BRANCH) $(MONITORING_GIT_URL) |
Scott Baker | 5042166 | 2016-06-27 22:09:48 -0700 | [diff] [blame] | 57 | |
Scott Baker | 2daffb1 | 2016-08-04 10:20:38 -0700 | [diff] [blame] | 58 | $(SERVICE_DIR)/hypercache: |
| 59 | git -C $(SERVICE_DIR) $(GITOPTS) clone -b $(HYPERCACHE_BRANCH) $(HYPERCACHE_GIT_URL) |
| 60 | |
Rizwan Haider | 752a48c | 2016-08-18 15:37:06 -0400 | [diff] [blame^] | 61 | $(SERVICE_DIR)/metro-net: |
| 62 | git -C $(SERVICE_DIR) $(GITOPTS) clone -b $(METRONETWORK_BRANCH) $(METRONETWORK_GIT_URL) |
| 63 | |
Scott Baker | 8ef5e5e | 2016-08-11 13:37:16 -0700 | [diff] [blame] | 64 | $(SERVICE_DIR)/openstack: |
| 65 | git -C $(SERVICE_DIR) $(GITOPTS) clone -b $(OPENSTACK_BRANCH) $(OPENSTACK_GIT_URL) |
| 66 | |
Scott Baker | 5042166 | 2016-06-27 22:09:48 -0700 | [diff] [blame] | 67 | cleanup: |
| 68 | rm -rf $(SERVICE_DIR)/* |
| 69 | |
| 70 | update: |
| 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 Baker | 2daffb1 | 2016-08-04 10:20:38 -0700 | [diff] [blame] | 79 | git -C $(SERVICE_DIR)/hypercache pull |
Rizwan Haider | 752a48c | 2016-08-18 15:37:06 -0400 | [diff] [blame^] | 80 | git -C $(SERVICE_DIR)/metro-net pull |
Scott Baker | 8ef5e5e | 2016-08-11 13:37:16 -0700 | [diff] [blame] | 81 | git -C $(SERVICE_DIR)/openstack pull |