From c639b08ebc1b202b571b245bb5eee075300b2ec0 Mon Sep 17 00:00:00 2001 From: Steve Simmons Date: Wed, 27 Jun 2012 17:28:36 -0400 Subject: [PATCH] Added build of cscope index to Makefile Add ability to do 'make cscope' at the top of the distribution tree and get 'cscope.out' built in ./src. Index file is removed in 'make clean'. cscope.out is now ignored in src/.gitignore Change-Id: I2ae4eea0fce46a87a6b9d5a992fcb7288f6b5655 Reviewed-on: http://gerrit.openafs.org/7594 Reviewed-by: Jeffrey Altman Tested-by: Jeffrey Altman --- .gitignore | 1 + Makefile.in | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/.gitignore b/.gitignore index b569bd36b8..31eb7b656c 100644 --- a/.gitignore +++ b/.gitignore @@ -46,6 +46,7 @@ config.log /config.status /configure /configure-libafs +/cscope.out /include /lib /autom4te.cache diff --git a/Makefile.in b/Makefile.in index 072dfdd550..940e669190 100644 --- a/Makefile.in +++ b/Makefile.in @@ -42,6 +42,9 @@ only_libafs_tree: force buildtools: force $(MAKE) build TARGET=build_tools COMPILE_PART2B=buildtools +cscope: + ( cd src ; cscope -b -R ) + generated: force buildtools +${COMPILE_PART1} afs ${COMPILE_GENERATED} +${COMPILE_PART1} auth ${COMPILE_GENERATED} @@ -783,6 +786,7 @@ clean2: -${COMPILE_PART1} crypto/hcrypto ${COMPILE_CLEAN} -${COMPILE_PART1} roken ${COMPILE_CLEAN} -${COMPILE_PART1} crypto/rfc3961 ${COMPILE_CLEAN} + -(cd src; /bin/rm cscope.out) -(cd src/libafs; /bin/rm -rf afs afsint config rx) -(cd src/libuafs; /bin/rm -rf afs afsint config rx) -/bin/rm -rf ${TOP_INCDIR} ${TOP_LIBDIR} ${TOP_JLIBDIR}