diff --git a/util/spd_tools/Makefile b/util/spd_tools/Makefile index d8806724fa..3aad91c976 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/