From: Tony Breeds Date: Sat, 11 May 2013 04:05:51 +0000 (+1000) Subject: Makefile: add cscope target X-Git-Url: http://git.ozlabs.org/?p=yaboot.git;a=commitdiff_plain;h=3307377768008d05c9fdb6506bcee18d030da66b;hp=f70d675c9b833e57b605fc94702cd66e97c717f5 Makefile: add cscope target Signed-off-by: Tony Breeds --- diff --git a/Makefile b/Makefile index ab37082..eab3e8a 100644 --- a/Makefile +++ b/Makefile @@ -157,6 +157,7 @@ clean: find . -not -path './\{arch\}*' -name ',,*' | xargs rm -rf -gunzip man/*.gz rm -rf man.deb + -rm cscope.* cleandocs: make -C doc clean @@ -240,3 +241,8 @@ deinstall: @echo "${ROOT}/etc/yaboot.conf has not been removed, you may remove it yourself if you wish." uninstall: deinstall + +.PHONY: cscope +cscope: + (echo \-k; echo \-q; find . -name '*.[chS]' )> cscope.files + cscope -b -f cscope.out