From bbf92533f4bbc35ae7e0bdd5c0bf9c4c5c25e88e Mon Sep 17 00:00:00 2001 From: Stefan Hajnoczi Date: Wed, 17 Apr 2019 10:04:30 +0100 Subject: [PATCH] build: add VERSION dependency to netmon target The netmon target must be rebuilt when the VERSION file changes since it uses the value of VERSION on the build command-line. Signed-off-by: Stefan Hajnoczi --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 628e6fe6f..b27e580af 100644 --- a/Makefile +++ b/Makefile @@ -361,7 +361,7 @@ containerd-shim-v2: $(SHIMV2_OUTPUT) netmon: $(NETMON_TARGET_OUTPUT) -$(NETMON_TARGET_OUTPUT): $(SOURCES) +$(NETMON_TARGET_OUTPUT): $(SOURCES) VERSION $(QUIET_BUILD)(cd $(NETMON_DIR) && go build $(BUILDFLAGS) -o $@ -ldflags "-X main.version=$(VERSION)") runtime: $(TARGET_OUTPUT) $(CONFIGS)