blob: b7d92d5163d5c59af1b7f592b142a4a079184253 [file] [log] [blame]
include ../common/Makedefs
include ../common/Makedefs.branches
GITOPTS=-c advice.detachedHead=false
services: $(SERVICE_DIR) \
$(SERVICE_DIR)/exampleservice \
$(SERVICE_DIR)/olt \
$(SERVICE_DIR)/vsg \
$(SERVICE_DIR)/vtn \
$(SERVICE_DIR)/vrouter \
$(SERVICE_DIR)/vtr \
$(SERVICE_DIR)/onos-service \
$(SERVICE_DIR)/fabric
monitoring_services: $(SERVICE_DIR)/monitoring
xos_core: $(XOS_DIR)
$(SERVICE_DIR):
mkdir -p $(SERVICE_DIR)
$(SERVICE_DIR)/exampleservice:
git -C $(SERVICE_DIR) $(GITOPTS) clone -b $(EXAMPLESERVICE_BRANCH) https://gerrit.opencord.org/p/exampleservice.git
$(SERVICE_DIR)/olt:
git -C $(SERVICE_DIR) $(GITOPTS) clone -b $(OLT_BRANCH) https://gerrit.opencord.org/p/olt.git
$(SERVICE_DIR)/vsg:
git -C $(SERVICE_DIR) $(GITOPTS) clone -b $(VSG_BRANCH) https://gerrit.opencord.org/p/vsg.git
$(SERVICE_DIR)/vtn:
git -C $(SERVICE_DIR) $(GITOPTS) clone -b $(VTN_BRANCH) https://gerrit.opencord.org/p/vtn.git
$(SERVICE_DIR)/vrouter:
git -C $(SERVICE_DIR) $(GITOPTS) clone -b $(VROUTER_BRANCH) https://gerrit.opencord.org/p/vrouter.git
$(SERVICE_DIR)/vtr:
git -C $(SERVICE_DIR) $(GITOPTS) clone -b $(VTR_BRANCH) https://gerrit.opencord.org/p/vtr.git
$(SERVICE_DIR)/onos-service:
git -C $(SERVICE_DIR) $(GITOPTS) clone -b $(ONOS_BRANCH) https://gerrit.opencord.org/p/onos-service.git
$(SERVICE_DIR)/fabric:
git -C $(SERVICE_DIR) $(GITOPTS) clone -b $(FABRIC_BRANCH) https://gerrit.opencord.org/p/fabric.git
$(SERVICE_DIR)/monitoring:
git -C $(SERVICE_DIR) $(GITOPTS) clone -b $(MONITORING_BRANCH) https://gerrit.opencord.org/p/monitoring.git
cleanup:
rm -rf $(SERVICE_DIR)/*
update:
git -C $(SERVICE_DIR)/exampleservice pull
git -C $(SERVICE_DIR)/olt pull
git -C $(SERVICE_DIR)/vsg pull
git -C $(SERVICE_DIR)/vtn pull
git -C $(SERVICE_DIR)/vrouter pull
git -C $(SERVICE_DIR)/vtr pull
git -C $(SERVICE_DIR)/onos-service pull
git -C $(SERVICE_DIR)/fabric pull
$(XOS_DIR):
git -C ../.. $(GITOPTS) clone -b $(XOS_BRANCH) https://gerrit.opencord.org/p/xos.git
update_xos:
git -C $(XOS_DIR) pull