blob: 262784b30fc952578d11afdc4b47315990627af5 [file] [log] [blame]
Scott Baker50421662016-06-27 22:09:48 -07001include ../common/Makedefs
Scott Baker5475fc22016-07-22 15:15:14 -07002
3GITOPTS=-c advice.detachedHead=false
Scott Baker50421662016-06-27 22:09:48 -07004
5services: $(SERVICE_DIR) \
6 $(SERVICE_DIR)/exampleservice \
7 $(SERVICE_DIR)/olt \
Zack Williamsb97dc0b2016-07-29 10:59:34 -07008 $(SERVICE_DIR)/vsg \
Scott Baker50421662016-06-27 22:09:48 -07009 $(SERVICE_DIR)/vtn \
Zack Williamsb97dc0b2016-07-29 10:59:34 -070010 $(SERVICE_DIR)/vrouter \
11 $(SERVICE_DIR)/vtr \
12 $(SERVICE_DIR)/onos-service \
13 $(SERVICE_DIR)/fabric
Scott Baker50421662016-06-27 22:09:48 -070014
15monitoring_services: $(SERVICE_DIR)/monitoring
16
17xos_core: $(XOS_DIR)
18
Zack Williamsb97dc0b2016-07-29 10:59:34 -070019$(XOS_DIR):
20 git -C ../.. $(GITOPTS) clone -b $(XOS_BRANCH) $(XOS_GIT_URL)
21
22update_xos:
23 git -C $(XOS_DIR) pull
24
Scott Baker50421662016-06-27 22:09:48 -070025$(SERVICE_DIR):
26 mkdir -p $(SERVICE_DIR)
27
28$(SERVICE_DIR)/exampleservice:
Zack Williamsb97dc0b2016-07-29 10:59:34 -070029 git -C $(SERVICE_DIR) $(GITOPTS) clone -b $(EXAMPLESERVICE_BRANCH) $(EXAMPLESERVICE_GIT_URL)
Scott Baker50421662016-06-27 22:09:48 -070030
31$(SERVICE_DIR)/olt:
Zack Williamsb97dc0b2016-07-29 10:59:34 -070032 git -C $(SERVICE_DIR) $(GITOPTS) clone -b $(OLT_BRANCH) $(OLT_GIT_URL)
Scott Baker50421662016-06-27 22:09:48 -070033
34$(SERVICE_DIR)/vsg:
Zack Williamsb97dc0b2016-07-29 10:59:34 -070035 git -C $(SERVICE_DIR) $(GITOPTS) clone -b $(VSG_BRANCH) $(VSG_GIT_URL)
Scott Baker50421662016-06-27 22:09:48 -070036
37$(SERVICE_DIR)/vtn:
Zack Williamsb97dc0b2016-07-29 10:59:34 -070038 git -C $(SERVICE_DIR) $(GITOPTS) clone -b $(VTN_BRANCH) $(VTN_GIT_URL)
Scott Baker50421662016-06-27 22:09:48 -070039
40$(SERVICE_DIR)/vrouter:
Zack Williamsb97dc0b2016-07-29 10:59:34 -070041 git -C $(SERVICE_DIR) $(GITOPTS) clone -b $(VROUTER_BRANCH) $(VROUTER_GIT_URL)
Scott Baker50421662016-06-27 22:09:48 -070042
43$(SERVICE_DIR)/vtr:
Zack Williamsb97dc0b2016-07-29 10:59:34 -070044 git -C $(SERVICE_DIR) $(GITOPTS) clone -b $(VTR_BRANCH) $(VTR_GIT_URL)
Scott Baker50421662016-06-27 22:09:48 -070045
46$(SERVICE_DIR)/onos-service:
Zack Williamsb97dc0b2016-07-29 10:59:34 -070047 git -C $(SERVICE_DIR) $(GITOPTS) clone -b $(ONOS_BRANCH) $(ONOS_GIT_URL)
Scott Baker50421662016-06-27 22:09:48 -070048
49$(SERVICE_DIR)/fabric:
Zack Williamsb97dc0b2016-07-29 10:59:34 -070050 git -C $(SERVICE_DIR) $(GITOPTS) clone -b $(FABRIC_BRANCH) $(FABRIC_GIT_URL)
Scott Baker50421662016-06-27 22:09:48 -070051
52$(SERVICE_DIR)/monitoring:
Zack Williamsb97dc0b2016-07-29 10:59:34 -070053 git -C $(SERVICE_DIR) $(GITOPTS) clone -b $(MONITORING_BRANCH) $(MONITORING_GIT_URL)
Scott Baker50421662016-06-27 22:09:48 -070054
55cleanup:
56 rm -rf $(SERVICE_DIR)/*
57
58update:
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