commit de34a1dc1151623f12378cc33f547e26a8d7eeeb parent 32f960357cc2eefd8a4ac7fc87ab2ff664d797c7 Author: hhvn <dev@hhvn.uk> Date: Sun, 12 Dec 2021 18:29:39 +0000 Makefile: rebuild objects if header changes Diffstat:
M | Makefile | | | 7 | +++++++ |
1 file changed, 7 insertions(+), 0 deletions(-)
diff --git a/Makefile b/Makefile @@ -24,6 +24,13 @@ all: $(BIN) $(MAN) config.mk: ./configure +# All objects should be rebuild if +# struct.h changes, as, for example, +# if an enum changes value that will +# only be recognized in source files +# that have been changed aswell. +$(OBJ): src/struct.h + $(BIN): $(OBJ) $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(OBJ)