Subject: make tags
To: None <>
From: Masao Uebayashi <>
List: tech-userlevel
Date: 03/30/2003 20:58:00

I don't think `tags' target defined in /usr/share/mk/ is
doing TRT.  Currently, if `tags' is specified as a make target,
nothing happens as make(1) skips the body of `tags' target.  (This
will not be an error because of `tags: .PHONY' line elsewhere.)

So, the following change would be needed so that the `tags' target is
used as an interactive target.


Index: share/mk/
RCS file: /cvsroot/src/share/mk/,v
retrieving revision 1.38
diff -u -r1.38
--- share/mk/	2002/11/26 18:42:30	1.38
+++ share/mk/	2003/03/30 11:40:30
@@ -57,10 +57,8 @@
 ##### Custom rules
-.if !target(tags)
 tags: ${SRCS}
 .if defined(SRCS)
 	-cd ${.CURDIR}; ctags -f /dev/stdout ${.ALLSRC:N*.h} | \
 	    sed "s;\${.CURDIR}/;;" > tags