summaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorCaveh Jalali <caveh@chromium.org>2022-08-31 17:16:55 -0700
committerMartin L Roth <gaumless@gmail.com>2022-09-04 16:57:33 +0000
commit7dd42da9a064750699058b2a9d66d84bc314b221 (patch)
treeb74d08cafe969a139b5794a9608daa486e265aad /util
parent672bd9bee5c0045694ef20fe3e2f7a003bef0edd (diff)
downloadcoreboot-7dd42da9a064750699058b2a9d66d84bc314b221.tar.gz
coreboot-7dd42da9a064750699058b2a9d66d84bc314b221.tar.bz2
coreboot-7dd42da9a064750699058b2a9d66d84bc314b221.zip
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>
Diffstat (limited to 'util')
-rw-r--r--util/spd_tools/Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/util/spd_tools/Makefile b/util/spd_tools/Makefile
index d8806724fa3f..3aad91c976b9 100644
--- a/util/spd_tools/Makefile
+++ b/util/spd_tools/Makefile
@@ -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/