Commit c07a2b20 authored by Rusty Russell's avatar Rusty Russell

Makefile: generate config.h more carefully

Don't risk reading partially-constructed files.
Signed-off-by: default avatarRusty Russell <rusty@rustcorp.com.au>
parent ab4d77b9
......@@ -129,7 +129,7 @@ FORCE:
# Ensure we don't end up with empty file if configurator fails!
config.h: tools/configurator/configurator Makefile Makefile-ccan
tools/configurator/configurator $(CC) $(CCAN_CFLAGS) > $@ || rm -f $@
tools/configurator/configurator $(CC) $(CCAN_CFLAGS) > $@.tmp && mv $@.tmp $@
include tools/Makefile
-include inter-depends
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment