summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--config.mk5
-rw-r--r--makefile2
2 files changed, 6 insertions, 1 deletions
diff --git a/config.mk b/config.mk
index 1bf95f05b..bc845d698 100644
--- a/config.mk
+++ b/config.mk
@@ -234,6 +234,11 @@ cscope: code_pass
find ../../ -name '*.[CHchS]' -type f -fprint cscope.files; \
cscope -bqk)
+ctags: code_pass
+ mkdir -p ${ROOTPATH}/obj/cscope
+ (cd ${ROOTPATH}/obj/cscope ; rm -f tags ; \
+ ctags --recurse=yes --fields=+S ../../src)
+
ifneq ($(MAKECMDGOALS),clean)
ifneq ($(MAKECMDGOALS),gen_pass)
ifneq ($(MAKECMDGOALS),GEN_PASS)
diff --git a/makefile b/makefile
index b1028e261..1294562ef 100644
--- a/makefile
+++ b/makefile
@@ -1,7 +1,7 @@
SUBDIRS = src.d
ROOTPATH = .
-EXTRA_PARTS = cscope
+EXTRA_PARTS = cscope ctags
include ./config.mk
OpenPOWER on IntegriCloud