X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=tools%2FMakefile;h=63d474fbcc00255343b12e198014f0d3549a8cf7;hp=c92bb54b7631a054da532b8d368a72e0d3bcc662;hb=082d651ffd87f78f20d56aa477c3c75d7361c1e1;hpb=437fa285d12183a0f1e7450b3a01cbe5620a3507 diff --git a/tools/Makefile b/tools/Makefile index c92bb54b..63d474fb 100644 --- a/tools/Makefile +++ b/tools/Makefile @@ -1,10 +1,21 @@ -tools/run_tests: tools/run_tests.o tools/depends.o tools/split.o tools/grab_file.o ccan/tap/tap.o ccan/talloc/talloc.o +ALL_TOOLS = tools/configurator/configurator tools/ccan_depends tools/doc_extract tools/namespacize tools/ccanlint/ccanlint -tools/doc_extract: tools/doc_extract.c ccan/talloc/talloc.o +DEP_OBJS = tools/depends.o tools/compile.o tools/tools.o ccan/str_talloc/str_talloc.o ccan/str/str.o ccan/str/debug.o ccan/grab_file/grab_file.o ccan/talloc/talloc.o ccan/noerr/noerr.o ccan/read_write_all/read_write_all.o -tools/namespacize: tools/namespacize.c tools/split.o tools/grab_file.o tools/depends.o ccan/talloc/talloc.o +.PHONY: tools +tools: $(ALL_TOOLS) + +tools/ccan_depends: tools/ccan_depends.o $(DEP_OBJS) + +tools/doc_extract: tools/doc_extract.o tools/doc_extract-core.o $(DEP_OBJS) + +tools/namespacize: tools/namespacize.o $(DEP_OBJS) + +tools/namespacize.o tools/depends.o: tools/tools.h + +tools/configurator/configurator: tools/configurator/configurator.c tools-clean: ccanlint-clean - rm -f run_tests doc_extract namespacize + $(RM) $(ALL_TOOLS) include tools/ccanlint/Makefile