Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Commit

Permalink
build: add VERSION dependency to netmon target
Browse files Browse the repository at this point in the history
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 <[email protected]>
(cherry picked from commit bbf9253)
Signed-off-by: Ganesh Maharaj Mahalingam <[email protected]>
  • Loading branch information
stefanhaRH authored and Ganesh Maharaj Mahalingam committed Apr 30, 2019
1 parent 77fa89e commit 45b9ae7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,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)
Expand Down

0 comments on commit 45b9ae7

Please sign in to comment.