From 78b438a747c3a0e5e50dabd03bd8c2f9149ae36e Mon Sep 17 00:00:00 2001 From: Samuel Holland Date: Fri, 9 Jul 2021 23:12:54 -0500 Subject: [PATCH] firmware: Rebuild if any source file changes This catches changes to the stock IVT assembly. Instead of adding that to the list, use $(wildcard) to be more future-proof. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 821d7a3..cfa53f9 100644 --- a/Makefile +++ b/Makefile @@ -38,7 +38,7 @@ $(OUT)ppkb-i2c-selftest: i2c-selftest.c common.c @mkdir -p $(OUT) $(CC) $(CFLAGS) -o $@ $< -$(OUT)fw-stock.bin $(OUT)fw-user.bin: firmware/em85f684a.h firmware/main.c firmware/build.sh firmware/bootloader.bin +$(OUT)fw-stock.bin $(OUT)fw-user.bin: $(wildcard firmware/*.*) @mkdir -p $(OUT) cd firmware && ./build.sh cp -f firmware/build/fw-stock.bin $(OUT)fw-stock.bin