summaryrefslogtreecommitdiff
path: root/Makefile.SH
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2016-03-10 20:05:32 -0500
committerJarkko Hietaniemi <jhi@iki.fi>2016-03-10 20:09:58 -0500
commit762030fb8b456ed5b622cfc616de7de1cb061b9f (patch)
tree9bac9dccc38d1e60b6b31c0631c9a0b5d156d559 /Makefile.SH
parent34a0e301f59c0bb8059f9b6d03361149f3fb035e (diff)
downloadperl-762030fb8b456ed5b622cfc616de7de1cb061b9f.tar.gz
make target for cscope indexing.
Diffstat (limited to 'Makefile.SH')
-rwxr-xr-xMakefile.SH9
1 files changed, 9 insertions, 0 deletions
diff --git a/Makefile.SH b/Makefile.SH
index 43701addb0..d4223d12cb 100755
--- a/Makefile.SH
+++ b/Makefile.SH
@@ -1409,6 +1409,15 @@ lint: $(c)
splint: $(c)
splint $(splintflags) -DPERL_CORE -D_REENTRANT -DDEBUGGING -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 $(splintfiles)
+cscopeflags = -Rb # Recursive, build-only.
+
+.PHONY: cscope
+# To query the cscope.out "cscope -dLnsymbol" where n = 0 means uses,
+# 1 = definitions, 2 = callees, 3 = callers, or run cscope interactively,
+# for example "cscope -dL1Perl_mg_set".
+cscope.out cscope: $(c) $(h)
+ cscope $(cscopeflags)
+
# Need to unset during recursion to go out of loop.
# The README below ensures that the dependency list is never empty and
# that when MAKEDEPEND is empty $(FIRSTMAKEFILE) doesn't need rebuilding.