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