diff options
author | ru <ru@FreeBSD.org> | 2010-01-18 15:58:02 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2010-01-18 15:58:02 +0000 |
commit | 7a4a8f7c7d2bc7b558739d0c279d2d6025406631 (patch) | |
tree | febbf0da1d7d3176ea3f5322b5be8a564e5b483d /share | |
parent | 12905eaff5882a8ba93246f8fb20206b08e37c9d (diff) | |
download | FreeBSD-src-7a4a8f7c7d2bc7b558739d0c279d2d6025406631.zip FreeBSD-src-7a4a8f7c7d2bc7b558739d0c279d2d6025406631.tar.gz |
Allow the CTAGS to be set to something other than "gtags" or "ctags",
but assume it supports a ctags(1)-compatible syntax.
PR: 46676
Submitted by: Lyndon Nerenberg
MFC after: 3 days
Diffstat (limited to 'share')
-rw-r--r-- | share/mk/bsd.dep.mk | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/share/mk/bsd.dep.mk b/share/mk/bsd.dep.mk index 95ca8f8..7711d80 100644 --- a/share/mk/bsd.dep.mk +++ b/share/mk/bsd.dep.mk @@ -58,14 +58,14 @@ DEPENDFILE?= .depend # Keep `tags' here, before SRCS are mangled below for `depend'. .if !target(tags) && defined(SRCS) && !defined(NO_TAGS) tags: ${SRCS} -.if ${CTAGS:T} == "ctags" - @${CTAGS} ${CTAGSFLAGS} -f /dev/stdout \ - ${.ALLSRC:N*.h} | sed "s;${.CURDIR}/;;" > ${.TARGET} -.elif ${CTAGS:T} == "gtags" +.if ${CTAGS:T} == "gtags" @cd ${.CURDIR} && ${CTAGS} ${GTAGSFLAGS} ${.OBJDIR} .if defined(HTML) @cd ${.CURDIR} && htags ${HTAGSFLAGS} -d ${.OBJDIR} ${.OBJDIR} .endif +.else + @${CTAGS} ${CTAGSFLAGS} -f /dev/stdout \ + ${.ALLSRC:N*.h} | sed "s;${.CURDIR}/;;" > ${.TARGET} .endif .endif @@ -175,15 +175,13 @@ afterdepend: .if !target(cleandepend) cleandepend: .if defined(SRCS) -.if ${CTAGS:T} == "ctags" - rm -f ${DEPENDFILE} tags -.elif ${CTAGS:T} == "gtags" +.if ${CTAGS:T} == "gtags" rm -f ${DEPENDFILE} GPATH GRTAGS GSYMS GTAGS .if defined(HTML) rm -rf HTML .endif .else - rm -f ${DEPENDFILE} + rm -f ${DEPENDFILE} tags .endif .endif .endif |