lkml.org 
[lkml]   [2003]   [Jan]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Subject[PATCH] cscope support in Makefile
From
Date
Dear Kai,
I add cscope support as well as tags/TAGS in Makefile. If you like it,
pls apply. ;-)
--
Yours truly,
Louis Zhuang
---------------
Fault Injection Test Harness Project
BK tree: http://fault-injection.bkbits.net/linux-2.5
Home Page: http://sf.net/projects/fault-injection

===== Makefile 1.357 vs edited =====
--- 1.357/Makefile Fri Jan 17 10:20:27 2003
+++ edited/Makefile Thu Jan 23 11:15:26 2003
@@ -190,7 +190,7 @@
noconfig_targets := xconfig menuconfig config oldconfig randconfig \
defconfig allyesconfig allnoconfig allmodconfig \
clean mrproper distclean \
- help tags TAGS sgmldocs psdocs pdfdocs htmldocs \
+ help tags TAGS cscope sgmldocs psdocs pdfdocs htmldocs \
checkconfig checkhelp checkincludes

RCS_FIND_IGNORE := \( -name SCCS -o -name BitKeeper -o -name .svn -o -name CVS \) -prune -o
@@ -718,7 +718,7 @@
.menuconfig.log \
include/asm \
.hdepend include/linux/modversions.h \
- tags TAGS kernel.spec \
+ tags TAGS cscope kernel.spec \
.tmp*

# Directories removed with 'make mrproper'
@@ -775,6 +775,9 @@
-name '*.[chS]' -print )
endef

+quiet_cmd_cscope = MAKE $@
+cmd_cscope = $(all-sources) | cscope -k -b -i -
+
quiet_cmd_TAGS = MAKE $@
cmd_TAGS = $(all-sources) | etags -

@@ -786,6 +789,9 @@
CTAGSF=`ctags --version | grep -i exuberant >/dev/null && echo "-I __initdata,__exitdata,EXPORT_SYMBOL,EXPORT_SYMBOL_NOVERS"`; \
$(all-sources) | xargs ctags $$CTAGSF -a
endef
+
+cscope: FORCE
+ $(call cmd,cscope)

TAGS: FORCE
$(call cmd,TAGS)

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:32    [W:0.290 / U:0.036 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site