From 5ba7692254f731e61a969e57f8e3637b37c8a705 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Mon, 2 May 2016 15:54:56 +0930 Subject: [PATCH] Makefile: fix config.h rebuilds in parallel. Occasionally make seems to rebuild this in parallel, so make sure to never have a partially complete one. Signed-off-by: Rusty Russell --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index e6f61d989..e6e55c28c 100644 --- a/Makefile +++ b/Makefile @@ -243,7 +243,7 @@ lightning.pb-c.c lightning.pb-c.h: lightning.proto $(TEST_PROGRAMS): % : %.o $(BITCOIN_OBJS) $(CCAN_OBJS) version.o libsecp256k1.a ccan/config.h: ccan/tools/configurator/configurator - $< > $@ + if $< > $@.new; then mv $@.new $@; else rm $@.new; exit 1; fi doc/deployable-lightning.pdf: doc/deployable-lightning.lyx doc/bitcoin.bib lyx -E pdf $@ $<