blob: d34313cb87f307c561512d4473c7ca4960c6179f [file] [log] [blame]
include ../common/Makedefs
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 \
$(SERVICE_DIR)/hypercache
monitoring_services: $(SERVICE_DIR)/monitoring
xos_core: $(XOS_DIR)
$(XOS_DIR):
git -C ../.. $(GITOPTS) clone -b $(XOS_BRANCH) $(XOS_GIT_URL)
update_xos:
git -C $(XOS_DIR) pull
$(SERVICE_DIR):
mkdir -p $(SERVICE_DIR)
$(SERVICE_DIR)/exampleservice:
git -C $(SERVICE_DIR) $(GITOPTS) clone -b $(EXAMPLESERVICE_BRANCH) $(EXAMPLESERVICE_GIT_URL)
$(SERVICE_DIR)/olt:
git -C $(SERVICE_DIR) $(GITOPTS) clone -b $(OLT_BRANCH) $(OLT_GIT_URL)
$(SERVICE_DIR)/vsg:
git -C $(SERVICE_DIR) $(GITOPTS) clone -b $(VSG_BRANCH) $(VSG_GIT_URL)
$(SERVICE_DIR)/vtn:
git -C $(SERVICE_DIR) $(GITOPTS) clone -b $(VTN_BRANCH) $(VTN_GIT_URL)
$(SERVICE_DIR)/vrouter:
git -C $(SERVICE_DIR) $(GITOPTS) clone -b $(VROUTER_BRANCH) $(VROUTER_GIT_URL)
$(SERVICE_DIR)/vtr:
git -C $(SERVICE_DIR) $(GITOPTS) clone -b $(VTR_BRANCH) $(VTR_GIT_URL)
$(SERVICE_DIR)/onos-service:
git -C $(SERVICE_DIR) $(GITOPTS) clone -b $(ONOS_BRANCH) $(ONOS_GIT_URL)
$(SERVICE_DIR)/fabric:
git -C $(SERVICE_DIR) $(GITOPTS) clone -b $(FABRIC_BRANCH) $(FABRIC_GIT_URL)
$(SERVICE_DIR)/monitoring:
git -C $(SERVICE_DIR) $(GITOPTS) clone -b $(MONITORING_BRANCH) $(MONITORING_GIT_URL)
$(SERVICE_DIR)/hypercache:
git -C $(SERVICE_DIR) $(GITOPTS) clone -b $(HYPERCACHE_BRANCH) $(HYPERCACHE_GIT_URL)
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
git -C $(SERVICE_DIR)/hypercache pull