]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: Makefile: provide cscope rule
authorWilliam Lallemand <wlallemand@exceliance.fr>
Fri, 18 Oct 2013 14:26:39 +0000 (16:26 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 23 Oct 2013 10:11:11 +0000 (12:11 +0200)
"make cscope" builds tags for cscope.

Makefile

index 0529e8937d67254bea5a548b28d2e5195d8bb6f1..2acaee4aaeb7ec2eed60fdcbb07fee9b5b1f133e 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -717,6 +717,9 @@ tags:
        find src include \( -name '*.c' -o -name '*.h' \) -print0 | \
           xargs -0 etags --declarations --members
 
+cscope:
+       find src include -name "*.[ch]" -print | cscope -q -b -i -
+
 tar:   clean
        ln -s . haproxy-$(VERSION)
        tar --exclude=haproxy-$(VERSION)/.git \