Commit b175cfcf authored by Rusty Russell's avatar Rusty Russell

Makefile: generate config.h in two stages

This means we don't create an empty file if configurator fails.
parent e18e80fe
......@@ -122,8 +122,9 @@ inter-depends: $(ALL_DEPENDS) Makefile
test-depends: $(ALL_DEPENDS) Makefile
for f in $(ALL_DEPENDS); do echo check-`basename \`dirname $$f\``: `sed -n 's,ccan/\(.*\),check-\1,p' < $$f`; done > $@
# 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) > config.h
tools/configurator/configurator $(CC) $(CCAN_CFLAGS) > $@ || rm -f $@
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