From d3afc4631626d7aade10e78a503e70173d457fec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Thu, 16 Jun 2011 09:11:06 +0100 Subject: [PATCH] add experimental callcatcher target --- Makefile.in | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/Makefile.in b/Makefile.in index 26b286837f17..ec56ac29895f 100644 --- a/Makefile.in +++ b/Makefile.in @@ -164,3 +164,20 @@ tags: docs: @. ./*Env.Set.sh && \ mkdocs.sh $$SRC_ROOT/docs $$SOLARENV/inc/doxygen.cfg + +findunusedcode: +# experimental callcatcher target +# http://www.skynet.ie/~caolan/Packages/callcatcher.html + @which callcatcher > /dev/null 2>&1 || \ + (echo "callcatcher not installed" && false) + @. ./*Env.Set.sh && \ + . ./solenv/bin/callcatchEnv.Set.sh && \ + cd instsetoo_native && \ + build.pl $(GBUILD_OPT) --all + @. ./*Env.Set.sh && \ + . ./solenv/bin/callcatchEnv.Set.sh && \ + callanalyse \ + $$OUTDIR/lib/* \ + $$OUTDIR/bin/* \ + */$$OUTPATH/bin/* \ + */$$OUTPATH/lib/*