diff options
author | Willy Tarreau <w@1wt.eu> | 2010-01-30 16:41:48 +0100 |
---|---|---|
committer | Willy Tarreau <w@1wt.eu> | 2010-01-31 00:50:00 +0100 |
commit | c3e5d5192d01ba88ab57a5ab6f50fef95eb7d0ec (patch) | |
tree | dde91ac6dfa500c7c308d10a9402b87adf40a8b8 | |
parent | 540f3a3ff31bf23eb4deea28ba7e7a0173ea8adc (diff) | |
download | linux-2.4-c3e5d5192d01ba88ab57a5ab6f50fef95eb7d0ec.tar.gz |
Makefile: add the 'cscope' target.
Some users asked for a backport of 2.6's "make cscope" target. It's
cleaned by "make distclean" as other tags.
Signed-off-by: Willy Tarreau <w@1wt.eu>
-rw-r--r-- | Makefile | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile index aa6c68c3cefc45..206b6be72c4617 100644 --- a/Makefile +++ b/Makefile @@ -397,6 +397,10 @@ tags: dummy find include -type d \( -name "asm-*" -o -name config \) -prune -o -name '*.h' -print | xargs ctags $$CTAGSF -a && \ find $(SUBDIRS) init -name '*.[ch]' | xargs ctags $$CTAGSF -a +cscope: dummy + (echo \-k; echo \-q; find * -name '*.[chS]') > cscope.files + cscope -b -f cscope.out + ifdef CONFIG_MODULES ifdef CONFIG_MODVERSIONS MODFLAGS += -DMODVERSIONS -include $(HPATH)/linux/modversions.h @@ -475,7 +479,7 @@ distclean: mrproper rm -f core `find . \( -not -type d \) -and \ \( -name '*.orig' -o -name '*.rej' -o -name '*~' \ -o -name '*.bak' -o -name '#*#' -o -name '.*.orig' \ - -o -name '.*.rej' -o -name '.SUMS' -o -size 0 \) -type f -print` TAGS tags + -o -name '.*.rej' -o -name '.SUMS' -o -size 0 \) -type f -print` TAGS tags cscope* backup: mrproper cd .. && tar cf - linux/ | gzip -9 > backup.gz |