Scott Baker | 5042166 | 2016-06-27 22:09:48 -0700 | [diff] [blame] | 1 | include ../common/Makedefs |
| 2 | |
| 3 | services: $(SERVICE_DIR) \ |
| 4 | $(SERVICE_DIR)/exampleservice \ |
| 5 | $(SERVICE_DIR)/olt \ |
| 6 | $(SERVICE_DIR)/vsg \ |
| 7 | $(SERVICE_DIR)/vtn \ |
| 8 | $(SERVICE_DIR)/vrouter \ |
| 9 | $(SERVICE_DIR)/vtr \ |
| 10 | $(SERVICE_DIR)/onos-service \ |
| 11 | $(SERVICE_DIR)/fabric |
| 12 | |
| 13 | monitoring_services: $(SERVICE_DIR)/monitoring |
| 14 | |
| 15 | xos_core: $(XOS_DIR) |
| 16 | |
| 17 | $(SERVICE_DIR): |
| 18 | mkdir -p $(SERVICE_DIR) |
| 19 | |
| 20 | $(SERVICE_DIR)/exampleservice: |
| 21 | git -C $(SERVICE_DIR) clone https://gerrit.opencord.org/p/exampleservice.git |
| 22 | |
| 23 | $(SERVICE_DIR)/olt: |
| 24 | git -C $(SERVICE_DIR) clone https://gerrit.opencord.org/p/olt.git |
| 25 | |
| 26 | $(SERVICE_DIR)/vsg: |
| 27 | git -C $(SERVICE_DIR) clone https://gerrit.opencord.org/p/vsg.git |
| 28 | |
| 29 | $(SERVICE_DIR)/vtn: |
| 30 | git -C $(SERVICE_DIR) clone https://gerrit.opencord.org/p/vtn.git |
| 31 | |
| 32 | $(SERVICE_DIR)/vrouter: |
| 33 | git -C $(SERVICE_DIR) clone https://gerrit.opencord.org/p/vrouter.git |
| 34 | |
| 35 | $(SERVICE_DIR)/vtr: |
| 36 | git -C $(SERVICE_DIR) clone https://gerrit.opencord.org/p/vtr.git |
| 37 | |
| 38 | $(SERVICE_DIR)/onos-service: |
| 39 | git -C $(SERVICE_DIR) clone https://gerrit.opencord.org/p/onos-service.git |
| 40 | |
| 41 | $(SERVICE_DIR)/fabric: |
| 42 | git -C $(SERVICE_DIR) clone https://gerrit.opencord.org/p/fabric.git |
| 43 | |
| 44 | $(SERVICE_DIR)/monitoring: |
| 45 | git -C $(SERVICE_DIR) clone https://gerrit.opencord.org/p/monitoring.git |
| 46 | |
| 47 | cleanup: |
| 48 | rm -rf $(SERVICE_DIR)/* |
| 49 | |
| 50 | update: |
| 51 | git -C $(SERVICE_DIR)/exampleservice pull |
| 52 | git -C $(SERVICE_DIR)/olt pull |
| 53 | git -C $(SERVICE_DIR)/vsg pull |
| 54 | git -C $(SERVICE_DIR)/vtn pull |
| 55 | git -C $(SERVICE_DIR)/vrouter pull |
| 56 | git -C $(SERVICE_DIR)/vtr pull |
| 57 | git -C $(SERVICE_DIR)/onos-service pull |
| 58 | git -C $(SERVICE_DIR)/fabric pull |
| 59 | |
| 60 | $(XOS_DIR): |
| 61 | git -C ../.. clone https://gerrit.opencord.org/p/xos.git |
Scott Baker | bda441d | 2016-06-28 14:14:31 -0700 | [diff] [blame] | 62 | # Make sure the configuratiosn dir doesn't exist |
| 63 | # TODO: remove this after configurations dir has been removed from xos repo |
| 64 | rm -rf $(XOS_DIR)/xos/configurations |
Scott Baker | 5042166 | 2016-06-27 22:09:48 -0700 | [diff] [blame] | 65 | |
| 66 | update_xos: |
| 67 | git -C $(XOS_DIR) pull |