Subject: make tags
To: None <tech-userlevel@netbsd.org>
From: Masao Uebayashi <uebayasi@pultek.co.jp>
List: tech-userlevel
Date: 03/30/2003 20:58:00
Hello.

I don't think `tags' target defined in /usr/share/mk/bsd.dep.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.

Masao

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