better dependencies for external links
authorGiuseppe Lettieri <g.lettieri@iet.unipi.it>
Thu, 4 Apr 2013 13:38:06 +0000 (15:38 +0200)
committerGiuseppe Lettieri <g.lettieri@iet.unipi.it>
Thu, 4 Apr 2013 13:38:06 +0000 (15:38 +0200)
with the previous dependencies the sequence

make L/N-E; make clean; make L/N-E

(with E an external node) would have not rerun
the recipe for node E, even if the port of node
N would have changed after the clean.

planetlab/exp-tool/Makefile

index 6c0e7a4..3ab2709 100644 (file)
@@ -529,14 +529,14 @@ $(foreach host,$(EXTERNAL_HOSTS),cache/bridge.$(host)): ;
 $(foreach host,$(EXTERNAL_HOSTS),cache/switch.$(host)): ;
 $(foreach host,$(EXTERNAL_HOSTS),cache/controller.$(host)): ;
 $(foreach link,$(EXTERNAL_LINKS),cache/iface.$(link)@2): ;
-$(foreach link,$(EXTERNAL_LINKS),cache/endpoint.$(link)@2): ;
+$(foreach link,$(EXTERNAL_LINKS),cache/port.$(link)@2): ;
 $(foreach link,$(EXTERNAL_LINKS),del-iface.$(link)@2): ;
 
 # we assume that a program called tunproxy is available on the
 # external nodes.  
 
 .SECONDEXPANSION:
-$(foreach link,$(EXTERNAL_LINKS),cache/port.$(link)@2): cache/port.%@2: cache/port.%@1 cache/host.$$(call leftnode,%)
+$(foreach link,$(EXTERNAL_LINKS),cache/endpoint.$(link)@2): cache/endpoint.%@2: cache/port.%@1 cache/host.$$(call leftnode,%)
        @#echo $* [$<] [$^] $(call rightnode,$*)
        @echo $(call default,EXTERNAL_PORT,$(call rightnode,$*)) > $@
        @echo "===>" $(call rightnode,$*): \