]> git.ozlabs.org Git - yaboot.git/commitdiff
Makefile: add cscope target
authorTony Breeds <tony@bakeyournoodle.com>
Sat, 11 May 2013 04:05:51 +0000 (14:05 +1000)
committerTony Breeds <tony@bakeyournoodle.com>
Mon, 13 May 2013 05:03:24 +0000 (15:03 +1000)
Signed-off-by: Tony Breeds <tony@bakeyournoodle.com>
Makefile

index ab37082f784d0d6d0c1176febbe562173a6cc071..eab3e8a884fd31df5e51945c4d87b2b79b5f67d0 100644 (file)
--- 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