util/spd_tools: Rebuild utils when source changes

This adds source file dependencies to utilities so that they are rebuilt
when the source is changed. Previously, binaries were only built if they
did not already exist and never rebuilt to reflect source file changes.

BUG=none
TEST=verified binaries are rebuilt when source files are touched.

Change-Id: I4775fe0e00e0f5d4f8b4b47331d836aba53c0e69
Signed-off-by: Caveh Jalali <caveh@chromium.org>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/67266
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Robert Zieba <robertzieba@google.com>
Reviewed-by: Reka Norman <rekanorman@chromium.org>
Reviewed-by: Martin L Roth <gaumless@gmail.com>
This commit is contained in:
Caveh Jalali 2022-08-31 17:16:55 -07:00 committed by Martin L Roth
parent 672bd9bee5
commit 7dd42da9a0
1 changed files with 4 additions and 4 deletions

View File

@ -3,11 +3,11 @@ PART_ID_GEN = bin/part_id_gen
all: $(SPD_GEN) $(PART_ID_GEN)
$(SPD_GEN):
go build -o $(SPD_GEN) src/spd_gen/*.go
$(SPD_GEN): src/spd_gen/*.go
go build -o $@ $^
$(PART_ID_GEN):
go build -o $(PART_ID_GEN) src/part_id_gen/*.go
$(PART_ID_GEN): src/part_id_gen/*.go
go build -o $@ $^
clean:
rm -rf bin/