Skip to content

Commit 0123234

Browse files
committed
Make fcnet targets depend on source file
Previously, make demo-network only worked the first time because the target did not depend on the soruce file. With this change, make demo-network will reinstall the CNI configs every time the source file changes Signed-off-by: Kern Walster <[email protected]>
1 parent 31033b9 commit 0123234

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -294,12 +294,12 @@ install-test-cni-bins: test-cni-bins $(CNI_BIN_ROOT)
294294
install -D -o root -g root -m755 -t $(CNI_BIN_ROOT) $(TEST_BRIDGED_TAP_BIN)
295295

296296
FCNET_CONFIG?=/etc/cni/conf.d/fcnet.conflist
297-
$(FCNET_CONFIG):
297+
$(FCNET_CONFIG): tools/demo/fcnet.conflist
298298
mkdir -p $(dir $(FCNET_CONFIG))
299299
install -o root -g root -m644 tools/demo/fcnet.conflist $(FCNET_CONFIG)
300300

301301
FCNET_BRIDGE_CONFIG?=/etc/network/interfaces.d/fc-br0
302-
$(FCNET_BRIDGE_CONFIG):
302+
$(FCNET_BRIDGE_CONFIG): tools/demo/fc-br0.interface
303303
mkdir -p $(dir $(FCNET_BRIDGE_CONFIG))
304304
install -o root -g root -m644 tools/demo/fc-br0.interface $(FCNET_BRIDGE_CONFIG)
305305

0 commit comments

Comments
 (0)