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 <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2016-05-02 15:54:56 +09:30
parent f4e94147a7
commit 5ba7692254

View File

@@ -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 $@ $<