Date: Wed, 1 Jan 2003 16:00:18 -0800 (PST) From: Lyndon Nerenberg {VE6BBM} <lyndon@orthanc.ab.ca> To: freebsd-bugs@FreeBSD.org Subject: Re: bin/46676: [PATCH] bsd.dep.mk restricts domain of tags commands Message-ID: <200301020000.h0200IcZ008611@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/46676; it has been noted by GNATS. From: Lyndon Nerenberg {VE6BBM} <lyndon@orthanc.ab.ca> To: FreeBSD-gnats-submit@FreeBSD.org Cc: Subject: Re: bin/46676: [PATCH] bsd.dep.mk restricts domain of tags commands Date: Wed, 01 Jan 2003 16:52:28 -0700 Sorry folks, the second half of the patch got chopped. Here it is again. Index: bsd.dep.mk =================================================================== RCS file: /home/ncvs/src/share/mk/bsd.dep.mk,v retrieving revision 1.38 diff -u -r1.38 bsd.dep.mk --- bsd.dep.mk 2002/10/17 13:48:13 1.38 +++ bsd.dep.mk 2003/01/01 23:50:42 @@ -56,14 +56,14 @@ # Keep `tags' here, before SRCS are mangled below for `depend'. .if !target(tags) && defined(SRCS) && !defined(NOTAGS) 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 @@ -160,13 +160,13 @@ .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} tags .endif .endif .endif To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200301020000.h0200IcZ008611>