1 # recompute the SFA graphs from different locations
3 SFASCAN = ./sfascan.py -v
5 # AMs, at least MyPLC AMs, are boring
6 #BUNDLES += http://planet-lab.eu:12346/@auto-ple-am
7 BUNDLES += http://planet-lab.eu:12345/@auto-ple-reg
8 BUNDLES += http://planet-lab.eu:12347/@auto-ple-sa
9 BUNDLES += http://planet-lab.org:12345/@auto-plc-reg
10 BUNDLES += http://planet-lab.org:12347/@auto-plc-sa
11 BUNDLES += http://planet-lab.kr:12345/@auto-ppk-reg
12 BUNDLES += http://planet-lab.kr:12347/@auto-ppk-sa
13 BUNDLES += http://geni-myvini.umkc.gpeni.net:12345/@auto-gpeni-reg
14 BUNDLES += http://geni-myvini.umkc.gpeni.net:12347/@auto-gpeni-sa
15 BUNDLES += http://198.248.241.100:12345/@auto-glc-reg
16 BUNDLES += http://198.248.241.100:12347/@auto-glc-sa
17 BUNDLES += http://vini-veritas.net:12345/@auto-vini-reg
18 BUNDLES += http://vini-veritas.net:12347/@auto-vini-sa
19 BUNDLES += http://www.planet-lab.jp:12345/@auto-plj-reg
20 BUNDLES += http://www.planet-lab.jp:12347/@auto-plj-sa
21 BUNDLES += http://www.emanicslab.org:12345/@auto-elc-reg
22 BUNDLES += http://www.emanicslab.org:12347/@auto-elc-sa
25 BUNDLES-LR += http://www.emulab.net:443/protogeni/xmlrpc/am/@auto-emulab-am
26 BUNDLES-LR += http://planet-lab.eu:12345/@auto-ple-reg
27 BUNDLES-LR += http://planet-lab.eu:12347/@auto-ple-sa
28 BUNDLES-LR += http://planet-lab.org:12345/@auto-plc-reg
29 BUNDLES-LR += http://planet-lab.org:12347/@auto-plc-sa
30 BUNDLES-LR += http://planet-lab.kr:12345/@auto-ppk-reg
31 #BUNDLES-LR += http://planet-lab.kr:12347/@auto-ppk-sa
32 BUNDLES-LR += http://geni-myvini.umkc.gpeni.net:12345/@auto-gpeni-reg
33 BUNDLES-LR += http://geni-myvini.umkc.gpeni.net:12347/@auto-gpeni-sa
34 BUNDLES-LR += http://198.248.241.100:12345/@auto-glc-reg
35 BUNDLES-LR += http://198.248.241.100:12347/@auto-glc-sa
36 BUNDLES-LR += http://vini-veritas.net:12345/@auto-vini-reg
37 BUNDLES-LR += http://vini-veritas.net:12347/@auto-vini-sa
38 BUNDLES-LR += http://www.planet-lab.jp:12345/@auto-plj-reg
39 BUNDLES-LR += http://www.planet-lab.jp:12347/@auto-plj-sa
40 BUNDLES-LR += http://www.emanicslab.org:12345/@auto-elc-reg
41 BUNDLES-LR += http://www.emanicslab.org:12347/@auto-elc-sa
43 #EXTENSIONS := png svg
47 ALL += $(foreach bundle,$(BUNDLES),$(word 2,$(subst @, ,$(bundle))))
48 ALL += $(foreach bundle,$(BUNDLES-LR),$(word 2,$(subst @, ,$(bundle)))-lr)
52 ple: auto-ple-reg auto-ple-sa-lr.out
55 define bundle_scan_target
56 $(word 2,$(subst @, ,$(1))):
57 $(SFASCAN) $(foreach extension,$(EXTENSIONS),-o $(word 2,$(subst @, ,$(1))).$(extension)) $(word 1,$(subst @, ,$(1))) >& .$(word 2,$(subst @, ,$(1))).out
58 .PHONY: $(word 2,$(subst @, ,$(1)))
62 $(foreach bundle,$(BUNDLES),$(eval $(call bundle_scan_target,$(bundle))))
64 #################### same but left-to-right
65 define bundle_scan_target_lr
66 $(word 2,$(subst @, ,$(1)))-lr:
67 $(SFASCAN) -l $(foreach extension,$(EXTENSIONS),-o $(word 2,$(subst @, ,$(1)))-lr.$(extension)) $(word 1,$(subst @, ,$(1))) >& .$(word 2,$(subst @, ,$(1)))-lr.out
68 .PHONY: $(word 2,$(subst @, ,$(1)))-lr
72 $(foreach bundle,$(BUNDLES-LR),$(eval $(call bundle_scan_target_lr,$(bundle))))
79 #################### make name.version
80 define bundle_version_target
81 $(word 2,$(subst @, ,$(1))).version:
82 -./sfi.py -s $(word 1,$(subst @, ,$(1))) version >& $$@
85 VERSIONS := $(foreach bundle,$(BUNDLES),$(word 2,$(subst @, ,$(bundle))).version)
88 $(foreach bundle,$(BUNDLES),$(eval $(call bundle_version_target,$(bundle))))
92 rm -f auto-*.{out,version}
93 $(foreach extension,$(EXTENSIONS),rm -rf auto-*.$(extension);)
95 DATE=$(shell date '+%Y-%m-%d')
99 ssh tparment@srv-planete.inria.fr mkdir /proj/planete/www/Thierry.Parmentelat/sfascan/$(DATE)
100 $(foreach extension,$(PUBEXTENSIONS),rsync -av auto-*.$(extension) tparment@srv-planete.inria.fr:/proj/planete/www/Thierry.Parmentelat/sfascan/$(DATE) ;)
102 #################### convenience, for debugging only
103 # make +foo : prints the value of $(foo)
104 # make ++foo : idem but verbose, i.e. foo=$(foo)
105 ++%: varname=$(subst +,,$@)
107 @echo "$(varname)=$($(varname))"
108 +%: varname=$(subst +,,$@)
110 @echo "$($(varname))"