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.
This commit is contained in:
Samuel Holland 2021-07-09 23:12:54 -05:00 committed by Ondrej Jirman
parent 1fd0bac031
commit 78b438a747

View file

@ -38,7 +38,7 @@ $(OUT)ppkb-i2c-selftest: i2c-selftest.c common.c
@mkdir -p $(OUT) @mkdir -p $(OUT)
$(CC) $(CFLAGS) -o $@ $< $(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) @mkdir -p $(OUT)
cd firmware && ./build.sh cd firmware && ./build.sh
cp -f firmware/build/fw-stock.bin $(OUT)fw-stock.bin cp -f firmware/build/fw-stock.bin $(OUT)fw-stock.bin