[ccan] [PATCH] tools: ccan_depends requires a config.h
Jeremy Kerr
jeremy.kerr at canonical.com
Tue May 22 19:19:24 EST 2012
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 at canonical.com>
---
tools/Makefile | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tools/Makefile b/tools/Makefile
index b8871be..4bc7497 100644
--- a/tools/Makefile
+++ b/tools/Makefile
@@ -16,6 +16,8 @@ DEP_OBJS = ccan/grab_file/grab_file.o \
.PHONY: tools
tools: $(ALL_TOOLS)
+tools/ccan_depends.o: config.h
+
tools/ccan_depends: tools/ccan_depends.o $(DEP_OBJS)
tools/doc_extract: tools/doc_extract.o tools/doc_extract-core.o $(DEP_OBJS)
More information about the ccan
mailing list