Harald Welte | 6807982 | 2017-12-12 16:30:53 +0100 | [diff] [blame] | 1 | |
| 2 | ECLIPSEGIT:=https://github.com/eclipse |
| 3 | ECLIPSEGIT2:=git://git.eclipse.org/gitroot/titan |
Harald Welte | 701b574 | 2018-01-22 11:29:13 +0100 | [diff] [blame] | 4 | OSMOGITHUB:=https://github.com/osmocom |
Harald Welte | 6807982 | 2017-12-12 16:30:53 +0100 | [diff] [blame] | 5 | |
| 6 | ECLIPSEGIT_REPOS= titan.Libraries.TCCUsefulFunctions \ |
| 7 | titan.ProtocolModules.ICMP \ |
| 8 | titan.ProtocolModules.ICMPv6 \ |
| 9 | titan.ProtocolModules.IP \ |
| 10 | titan.ProtocolModules.L2TP \ |
| 11 | titan.ProtocolModules.M3UA \ |
| 12 | titan.ProtocolModules.SMPP \ |
| 13 | titan.ProtocolModules.TCP \ |
| 14 | titan.ProtocolModules.UDP \ |
| 15 | titan.ProtocolModules.RTP \ |
| 16 | titan.TestPorts.Common_Components.Socket-API \ |
| 17 | titan.TestPorts.IPL4asp \ |
| 18 | titan.TestPorts.LANL2asp \ |
| 19 | titan.TestPorts.PCAPasp \ |
Harald Welte | 6807982 | 2017-12-12 16:30:53 +0100 | [diff] [blame] | 20 | titan.TestPorts.SIPmsg \ |
| 21 | titan.TestPorts.TCPasp \ |
| 22 | titan.TestPorts.TELNETasp \ |
Harald Welte | 6fc784e | 2018-02-25 23:31:37 +0100 | [diff] [blame] | 23 | titan.TestPorts.UDPasp |
Harald Welte | 6807982 | 2017-12-12 16:30:53 +0100 | [diff] [blame] | 24 | |
| 25 | ECLIPSEGIT2_REPOS= titan.ProtocolModules.GRE \ |
| 26 | titan.ProtocolModules.M2PA \ |
| 27 | titan.ProtocolModules.SCTP \ |
| 28 | titan.ProtocolModules.SUA \ |
| 29 | titan.ProtocolModules.SDP \ |
| 30 | titan.TestPorts.GPIO \ |
| 31 | titan.ProtocolModules.BSSAPP_v7.3.0 \ |
| 32 | titan.ProtocolModules.BSSGP_v13.0.0 \ |
| 33 | titan.ProtocolModules.BSSMAP_v11.2.0 \ |
| 34 | titan.ProtocolModules.GTP_v13.5.0 \ |
| 35 | titan.ProtocolModules.GTPv2_v13.7.0 \ |
| 36 | titan.ProtocolModules.ISUP_Q.762 \ |
| 37 | titan.ProtocolModules.LLC_v7.1.0 \ |
| 38 | titan.ProtocolModules.MobileL3_v13.4.0 \ |
| 39 | titan.ProtocolModules.NS_v7.3.0 \ |
Harald Welte | c87abfc | 2018-03-18 10:58:00 +0100 | [diff] [blame] | 40 | titan.ProtocolModules.SNDCP_v7.0.0 \ |
| 41 | titan.ProtocolEmulations.M3UA |
Harald Welte | 6807982 | 2017-12-12 16:30:53 +0100 | [diff] [blame] | 42 | |
Harald Welte | 6fc784e | 2018-02-25 23:31:37 +0100 | [diff] [blame] | 43 | OSMOGITHUB_REPOS= titan.TestPorts.SCTPasp \ |
Harald Welte | c87abfc | 2018-03-18 10:58:00 +0100 | [diff] [blame] | 44 | titan.TestPorts.MTP3asp \ |
| 45 | titan.TestPorts.UNIX_DOMAIN_SOCKETasp \ |
| 46 | titan.ProtocolEmulations.SCCP |
Harald Welte | 701b574 | 2018-01-22 11:29:13 +0100 | [diff] [blame] | 47 | |
| 48 | ALL_REPOS=$(ECLIPSEGIT_REPOS) $(ECLIPSEGIT2_REPOS) $(OSMOGITHUB_REPOS) |
Harald Welte | 6807982 | 2017-12-12 16:30:53 +0100 | [diff] [blame] | 49 | |
| 50 | all: $(ALL_REPOS) |
| 51 | |
| 52 | update: $(foreach dir,$(ALL_REPOS),$(dir)/update) |
| 53 | clean: $(foreach dir,$(ALL_REPOS),$(dir)/clean) |
| 54 | |
| 55 | define GIT_template |
| 56 | $(1): |
| 57 | git clone $(2)/$(1) |
| 58 | |
| 59 | .PHONY:$(1)/update |
| 60 | $(1)/update: $(1) |
Harald Welte | 981be73 | 2018-02-15 18:23:22 +0100 | [diff] [blame] | 61 | (cd $(1) && git remote set-url origin $(2)/$(1) && git fetch && git checkout -f -B master origin/master) |
Harald Welte | 6807982 | 2017-12-12 16:30:53 +0100 | [diff] [blame] | 62 | |
| 63 | .PHONY: $(1)/clean |
Harald Welte | 4c294b6 | 2018-02-15 18:27:10 +0100 | [diff] [blame] | 64 | $(1)/clean: $(1) |
| 65 | (cd $(1) && git checkout -f -B master && git reset --hard) |
| 66 | |
| 67 | .PHONY: $(1)/distclean |
| 68 | $(1)/distclean: |
Harald Welte | 6807982 | 2017-12-12 16:30:53 +0100 | [diff] [blame] | 69 | @rm -rf $(1) |
| 70 | endef |
| 71 | |
| 72 | $(foreach dir,$(ECLIPSEGIT_REPOS), \ |
| 73 | $(eval $(call GIT_template,$(dir),$(ECLIPSEGIT)))) |
| 74 | |
| 75 | $(foreach dir,$(ECLIPSEGIT2_REPOS), \ |
| 76 | $(eval $(call GIT_template,$(dir),$(ECLIPSEGIT2)))) |
Harald Welte | 701b574 | 2018-01-22 11:29:13 +0100 | [diff] [blame] | 77 | |
| 78 | $(foreach dir,$(OSMOGITHUB_REPOS), \ |
| 79 | $(eval $(call GIT_template,$(dir),$(OSMOGITHUB)))) |