NetBSD Problem Report #10203
Received: (qmail 25145 invoked from network); 26 May 2000 18:23:04 -0000
Message-Id: <20000526182249.021CFDF@proven.weird.com>
Date: Fri, 26 May 2000 14:22:49 -0400 (EDT)
From: woods@weird.com (Greg A. Woods)
Sender: woods@proven.weird.com
Reply-To: woods@planix.com (Greg A. Woods)
To: gnats-bugs@gnats.netbsd.org
Subject: share/tmac/Makefile does not have correct dependencies
X-Send-Pr-Version: 3.95
>Number: 10203
>Category: bin
>Synopsis: share/tmac/Makefile does not have correct dependencies
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: bin-bug-people
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri May 26 18:24:00 +0000 2000
>Closed-Date: Mon Jan 07 18:42:18 +0000 2002
>Last-Modified: Mon Jan 07 18:42:18 +0000 2002
>Originator: Greg A. Woods
>Release: 2000/05/26
>Organization:
Planix, Inc.; Toronto, Ontario; Canada
>Environment:
NetBSD-current
>Description:
The Makefile in share/tmac/Makefile does not correctly rebuild
its target files when building the "install" target
>How-To-Repeat:
$ cd /usr/src/share/tmac
$ touch doc-syms
$ make install
Observe that tmac.doc-syms is neither rebuilt or installed.
>Fix:
The problem is that the target files are treated as include
files, which of course are their own sources according to
bsd.prog.mk and therefore don't need to be built. The fix is
to treat them as scripts instead:
Index: share/tmac/Makefile
===================================================================
RCS file: /cvs/NetBSD/src/share/tmac/Makefile,v
retrieving revision 1.1.1.2
diff -c -r1.1.1.2 share/tmac/Makefile
*** share/tmac/Makefile 2000/03/21 00:31:57 1.1.1.2
--- share/tmac/Makefile 2000/05/26 17:48:40
***************
*** 4,12 ****
# IF YOU ADD TO MSRCS, MAKE SURE YOU UPDATE `CATDEPS' IN bsd.man.mk!
MSRCS= andoc doc doc-ditroff doc-common doc-nroff doc-syms doc2html
MMACS= ${MSRCS:S@^@tmac.@g}
! INCS= ${MMACS}
! INCSDIR=${BINDIR}/tmac
! LINKS= ${INCSDIR}/tmac.andoc ${INCSDIR}/tmac.an
CLEANFILES+= ${MMACS}
TMACDIR?=${.CURDIR}
--- 4,12 ----
# IF YOU ADD TO MSRCS, MAKE SURE YOU UPDATE `CATDEPS' IN bsd.man.mk!
MSRCS= andoc doc doc-ditroff doc-common doc-nroff doc-syms doc2html
MMACS= ${MSRCS:S@^@tmac.@g}
! SCRIPTS=${MMACS}
! SCRIPTDIR=${BINDIR}/tmac
! LINKS= ${SCRIPTDIR}/tmac.andoc ${SCRIPTDIR}/tmac.an
CLEANFILES+= ${MMACS}
TMACDIR?=${.CURDIR}
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: tv
State-Changed-When: Mon Jan 7 10:41:17 PST 2002
State-Changed-Why:
"make includes" is deliberately different from "make install", and the
behavior of the former is what is desired in src/share/tmac -- those files
need to be up-to-date *before* building programs commences.
So, a simple "make includes" in src/share/tmac will update them.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.