summaryrefslogtreecommitdiffstats
path: root/share/mk/bsd.dep.mk
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1997-04-13 06:44:25 +0000
committerjkh <jkh@FreeBSD.org>1997-04-13 06:44:25 +0000
commit1b2fdd568d73be2c650ec6f1df32ef2809520373 (patch)
treee17044ea699348150ba3b5d5c51deaa68b3e4190 /share/mk/bsd.dep.mk
parent376c4fd174b93c6dc5547687925eddced146cb77 (diff)
downloadFreeBSD-src-1b2fdd568d73be2c650ec6f1df32ef2809520373.zip
FreeBSD-src-1b2fdd568d73be2c650ec6f1df32ef2809520373.tar.gz
Support GLOBAL style tags.
Diffstat (limited to 'share/mk/bsd.dep.mk')
-rw-r--r--share/mk/bsd.dep.mk24
1 files changed, 15 insertions, 9 deletions
diff --git a/share/mk/bsd.dep.mk b/share/mk/bsd.dep.mk
index 90abc88..91d4ee2 100644
--- a/share/mk/bsd.dep.mk
+++ b/share/mk/bsd.dep.mk
@@ -1,4 +1,4 @@
-# $Id: bsd.dep.mk,v 1.10 1997/02/22 13:56:08 peter Exp $
+# $Id: bsd.dep.mk,v 1.11 1997/04/09 16:10:23 bde Exp $
#
# The include file <bsd.dep.mk> handles Makefile dependencies.
#
@@ -24,8 +24,8 @@
# them in the file ${DEPENDFILE}.
#
# tags:
-# Create a tags file for the source files.
-#
+# Create a (GLOBAL) gtags file for the source files.
+# If HTML is defined, htags is also run after gtags.
MKDEPCMD?= mkdep
@@ -71,20 +71,26 @@ afterdepend:
.endif
.endif
+.if defined(NOTAGS)
+tags:
+.endif
+
.if !target(tags)
-.if defined(SRCS)
tags: ${SRCS} _SUBDIR
- -cd ${.CURDIR}; ctags -f /dev/stdout ${.ALLSRC:N*.h} | \
- sed "s;\${.CURDIR}/;;" > tags
-.else
-tags: _SUBDIR
+ @cd ${.CURDIR} && gtags ${GTAGSFLAGS}
+.if defined(HTML)
+ @cd ${.CURDIR} && htags ${HTAGSFLAGS}
.endif
.endif
.if defined(SRCS)
.if !target(cleandepend)
cleandepend: _SUBDIR
- rm -f ${DEPENDFILE} tags
+ rm -f ${DEPENDFILE}
+ rm -f ${.CURDIR}/GRTAGS ${.CURDIR}/GTAGS
+.if defined(HTML)
+ rm -rf ${.CURDIR}/HTML
+.endif
.endif
.endif
OpenPOWER on IntegriCloud