From owner-freebsd-hackers Sun Feb 8 02:58:00 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id CAA07570 for hackers-outgoing; Sun, 8 Feb 1998 02:58:00 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from wafu.netgate.net (wafu.netgate.net [204.145.147.80]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id CAA07552 for ; Sun, 8 Feb 1998 02:57:58 -0800 (PST) (envelope-from shigio@wafu.netgate.net) Message-Id: <199802081057.CAA07552@hub.freebsd.org> Received: (qmail 28305 invoked from network); 8 Feb 1998 02:58:35 -0000 Received: from ins45.tama-ap3.dti.ne.jp (HELO chiota.signet.or.jp) (203.181.67.45) by wafu.netgate.net with SMTP; 8 Feb 1998 02:58:35 -0000 Received: from chiota.signet.or.jp (localhost.signet.or.jp [127.0.0.1]) by chiota.signet.or.jp (8.8.5/) with ESMTP id TAA00397; Sun, 8 Feb 1998 19:56:42 +0900 (JST) To: freebsd-hackers@FreeBSD.ORG Cc: shigio@wafu.netgate.net Subject: bsd.prog.mk for new global(1) Date: Sun, 08 Feb 1998 19:56:41 +0900 From: Shigio Yamaguchi Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Now, global(1) in -current can understand 'obj' directory of BSD build system, you can put tag files in 'obj' directory. For example, % cd /usr/src/sys % gtags /usr/obj/usr/src/sys <- make tag files in 'obj' directory. % ls GTAGS ls: GTAGS: No such file or directory % global -x fork fork 86 kern/kern_fork.c fork(p, uap, retval) So, following modification would be useful, I think. [/usr/share/mk/bsd.prog.mk] .if !target(tags) tags: ${SRCS} _SUBDIR .if defined(PROG) cd ${.CURDIR} && gtags ${GTAGSFLAGS} ${.OBJDIR} ...(1) .if defined(HTML) cd ${.CURDIR} && htags ${HTAGSFLAGS} -d ${.OBJDIR} ${.OBJDIR} ...(2) .endif .endif .endif (1) Gtags put tag files in ${.OBJDIR}. (2) Htags locates tag files in ${.OBJDIR} and put hypertext in ${.OBJDIR}. [/usr/share/mk/sys.mk] # For tags rule. GTAGSFLAGS= -o HTAGSFLAGS= -o option suppress making GSYMS file (it's very large). What do you think? -- Shigio Yamaguchi (Freelance programmer) Mail: shigio@wafu.netgate.net, WWW: http://wafu.netgate.net/tama/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe hackers" in the body of the message