Browse Source

tools: ccan_depends requires a config.h

Commit a77cc282 causes tools/create-ccan-tree to fail, as it can't build
tools/ccan_depends (via `make tools/ccan_depends`) without a
configuration header present.

This change adds a dependency on config.h, so that the configurator
kicks-in prior to building ccan_depends.o.

Other tools don't need this dependency, as tools/ccan_depends is built
during the Makefile 'include' process.

Signed-off-by: Jeremy Kerr <jeremy.kerr@canonical.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Jeremy Kerr 13 years ago
parent
commit
465655bb11
1 changed files with 2 additions and 0 deletions
  1. 2 0
      tools/Makefile

+ 2 - 0
tools/Makefile

@@ -16,6 +16,8 @@ DEP_OBJS = ccan/grab_file/grab_file.o \
 .PHONY: tools
 .PHONY: tools
 tools: $(ALL_TOOLS)
 tools: $(ALL_TOOLS)
 
 
+tools/ccan_depends.o: config.h
+
 tools/ccan_depends: tools/ccan_depends.o $(DEP_OBJS)
 tools/ccan_depends: tools/ccan_depends.o $(DEP_OBJS)
 
 
 tools/doc_extract: tools/doc_extract.o tools/doc_extract-core.o $(DEP_OBJS)
 tools/doc_extract: tools/doc_extract.o tools/doc_extract-core.o $(DEP_OBJS)