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