X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;ds=sidebyside;f=sfa%2Fclient%2FMakefile;h=061e1b2e10b83ecd39435afb665c73a4a04ea32d;hb=0cd845813e4a0bf7ad67df27a7ef7369d554392c;hp=420543fb81fc483964deef21d217fa4ff86020a3;hpb=64a35df78dc4edda419eee9f6ab9d3eac6714878;p=sfa.git diff --git a/sfa/client/Makefile b/sfa/client/Makefile index 420543fb..061e1b2e 100644 --- a/sfa/client/Makefile +++ b/sfa/client/Makefile @@ -1,39 +1,83 @@ # recompute the SFA graphs from different locations +## use -vv for the full story +SFASCAN = ./sfascan.py -v + +# AMs, at least MyPLC AMs, are boring +#BUNDLES += http://planet-lab.eu:12346/@auto-ple-am BUNDLES += http://planet-lab.eu:12345/@auto-ple-reg BUNDLES += http://planet-lab.eu:12347/@auto-ple-sa BUNDLES += http://planet-lab.org:12345/@auto-plc-reg BUNDLES += http://planet-lab.org:12347/@auto-plc-sa BUNDLES += http://planet-lab.kr:12345/@auto-ppk-reg BUNDLES += http://planet-lab.kr:12347/@auto-ppk-sa -BUNDLES += http://www.planet-lab.jp:12345/@auto-plj-reg -BUNDLES += http://www.planet-lab.jp:12347/@auto-plj-sa BUNDLES += http://geni-myvini.umkc.gpeni.net:12345/@auto-gpeni-reg BUNDLES += http://geni-myvini.umkc.gpeni.net:12347/@auto-gpeni-sa BUNDLES += http://198.248.241.100:12345/@auto-glc-reg BUNDLES += http://198.248.241.100:12347/@auto-glc-sa BUNDLES += http://vini-veritas.net:12345/@auto-vini-reg BUNDLES += http://vini-veritas.net:12347/@auto-vini-sa +BUNDLES += http://www.planet-lab.jp:12345/@auto-plj-reg +BUNDLES += http://www.planet-lab.jp:12347/@auto-plj-sa +BUNDLES += http://www.emanicslab.org:12345/@auto-elc-reg +BUNDLES += http://www.emanicslab.org:12347/@auto-elc-sa + +# left to right +BUNDLES-LR += http://www.emulab.net:443/protogeni/xmlrpc/am/@auto-emulab-am +BUNDLES-LR += http://planet-lab.eu:12345/@auto-ple-reg +BUNDLES-LR += http://planet-lab.eu:12347/@auto-ple-sa +BUNDLES-LR += http://planet-lab.org:12345/@auto-plc-reg +BUNDLES-LR += http://planet-lab.org:12347/@auto-plc-sa +BUNDLES-LR += http://planet-lab.kr:12345/@auto-ppk-reg +#BUNDLES-LR += http://planet-lab.kr:12347/@auto-ppk-sa +BUNDLES-LR += http://geni-myvini.umkc.gpeni.net:12345/@auto-gpeni-reg +BUNDLES-LR += http://geni-myvini.umkc.gpeni.net:12347/@auto-gpeni-sa +BUNDLES-LR += http://198.248.241.100:12345/@auto-glc-reg +BUNDLES-LR += http://198.248.241.100:12347/@auto-glc-sa +BUNDLES-LR += http://vini-veritas.net:12345/@auto-vini-reg +BUNDLES-LR += http://vini-veritas.net:12347/@auto-vini-sa +BUNDLES-LR += http://www.planet-lab.jp:12345/@auto-plj-reg +BUNDLES-LR += http://www.planet-lab.jp:12347/@auto-plj-sa +BUNDLES-LR += http://www.emanicslab.org:12345/@auto-elc-reg +BUNDLES-LR += http://www.emanicslab.org:12347/@auto-elc-sa -# dont output svg yet -#EXTENSIONS := png svg -EXTENSIONS := png +EXTENSIONS := png svg +#EXTENSIONS := png +#################### +ALL += $(foreach bundle,$(BUNDLES),$(word 2,$(subst @, ,$(bundle)))) +ALL += $(foreach bundle,$(BUNDLES-LR),$(word 2,$(subst @, ,$(bundle)))-lr) + +all: $(ALL) + +ple: auto-ple-reg auto-ple-sa-lr.out + +#################### define bundle_scan_target $(word 2,$(subst @, ,$(1))): - ./sfascan.py -e $(word 1,$(subst @, ,$(1))) $(foreach extension,$(EXTENSIONS),-o $(word 2,$(subst @, ,$(1))).$(extension)) >& $(word 2,$(subst @, ,$(1))).out + $(SFASCAN) $(foreach extension,$(EXTENSIONS),-o $(word 2,$(subst @, ,$(1))).$(extension)) $(word 1,$(subst @, ,$(1))) >& .$(word 2,$(subst @, ,$(1))).out .PHONY: $(word 2,$(subst @, ,$(1))) endef -ALL := $(foreach bundle,$(BUNDLES),$(word 2,$(subst @, ,$(bundle)))) +# the actual targets +$(foreach bundle,$(BUNDLES),$(eval $(call bundle_scan_target,$(bundle)))) -all: $(ALL) +#################### same but left-to-right +define bundle_scan_target_lr +$(word 2,$(subst @, ,$(1)))-lr: + $(SFASCAN) -l $(foreach extension,$(EXTENSIONS),-o $(word 2,$(subst @, ,$(1)))-lr.$(extension)) $(word 1,$(subst @, ,$(1))) >& .$(word 2,$(subst @, ,$(1)))-lr.out +.PHONY: $(word 2,$(subst @, ,$(1)))-lr +endef # the actual targets -$(foreach bundle,$(BUNDLES),$(eval $(call bundle_scan_target,$(bundle)))) +$(foreach bundle,$(BUNDLES-LR),$(eval $(call bundle_scan_target_lr,$(bundle)))) #################### +versions: $(VERSIONS) +clean-versions: + rm -f $(VERSIONS) +#################### make name.version define bundle_version_target $(word 2,$(subst @, ,$(1))).version: -./sfi.py -s $(word 1,$(subst @, ,$(1))) version >& $$@ @@ -41,13 +85,21 @@ endef VERSIONS := $(foreach bundle,$(BUNDLES),$(word 2,$(subst @, ,$(bundle))).version) -versions: $(VERSIONS) -clean-versions: - rm -f $(VERSIONS) - # the actual targets $(foreach bundle,$(BUNDLES),$(eval $(call bundle_version_target,$(bundle)))) +#################### +clean: + rm -f .auto* + $(foreach extension,$(EXTENSIONS),rm -rf auto-*.$(extension);) + $(SFASCAN) -c + +DATE=$(shell date '+%Y-%m-%d') +PUBEXTENSIONS=png +publish: + echo $(DATE) + ssh tparment@srv-planete.inria.fr mkdir /proj/planete/www/Thierry.Parmentelat/sfascan/$(DATE) + $(foreach extension,$(PUBEXTENSIONS),rsync -av auto-*.$(extension) tparment@srv-planete.inria.fr:/proj/planete/www/Thierry.Parmentelat/sfascan/$(DATE) ;) #################### convenience, for debugging only # make +foo : prints the value of $(foo)