diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2012-11-22 10:08:53 +1030 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2012-11-22 10:08:53 +1030 |
commit | c07a2b209d44273098e2d435ebdca82f158c0373 (patch) | |
tree | dec189317c2ac832f037b1de2f817d90fc2dd7a1 | |
parent | ab4d77b99238b1cce1b0ad33aa8ef1055c587889 (diff) |
Makefile: generate config.h more carefully
Don't risk reading partially-constructed files.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-rw-r--r-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |