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