Makefile: rebuild all objects if Makefile changes.

This doesn't cover external libs in general (which *could* be effected by
CFLAGS), but at least all our own objects are rebuilt.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2018-01-20 14:57:13 +10:30
committed by Christian Decker
parent 73c31757e1
commit c22d2c8dae
2 changed files with 9 additions and 9 deletions

4
external/Makefile vendored
View File

@@ -49,7 +49,7 @@ external/jsmn/jsmn.h:
external/jsmn/jsmn.c: external/jsmn/jsmn.h
[ -f $@ ]
external/jsmn.o: external/jsmn/jsmn.c
external/jsmn.o: external/jsmn/jsmn.c Makefile
$(COMPILE.c) -DJSMN_STRICT=1 $(OUTPUT_OPTION) $<
external/libjsmn.a: external/jsmn.o
@@ -64,7 +64,7 @@ $(LIBBASE58_HEADERS):
[ -f $@ ] || git submodule update --init external/libbase58/
# Can't be inside submodule, as that makes git think it's dirty.
external/base58.o: $(LIBBASE58_SRC)
external/base58.o: $(LIBBASE58_SRC) Makefile
$(COMPILE.c) $(OUTPUT_OPTION) $<
external/libbase58.a: external/base58.o