Subject: pkg/5186: bsd.port.mk doesn't document ALL_TARGET or INSTALL_TARGET
To: None <gnats-bugs@gnats.netbsd.org>
From: None <nathanw@MIT.EDU>
List: netbsd-bugs
Date: 03/22/1998 19:55:31
>Number: 5186
>Category: pkg
>Synopsis: Two useful variables aren't documented.
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: gnats-admin (GNATS administrator)
>State: open
>Class: doc-bug
>Submitter-Id: net
>Arrival-Date: Sun Mar 22 17:05:01 1998
>Last-Modified:
>Originator: Nathan J. Williams
>Organization:
Massachvsetts Institvte of Technology
>Release: NetBSD-current of 1998/3/22
>Environment:
System: NetBSD road-runner.mit.edu 1.3E NetBSD 1.3E (ROAD-RUNNER) #94: Mon Mar 16 11:12:37 EST 1998 nathanw@road-runner.mit.edu:/usr/src/sys/arch/i386/compile/ROAD-RUNNER i386
>Description:
The variables INSTALL_TARGET and ALL_TARGET that a package's Makefile
can usefully override aren't documented anywhere. This leads to needless
frustration when first trying to construct a package that doesn't have
standard "all" and "install" targets.
>How-To-Repeat:
>Fix:
Document them! Something like this patch would be a good start.
*** /usr/share/mk/bsd.port.mk Sun Mar 22 18:25:09 1998
--- /tmp/bsd.port.mk Sun Mar 22 19:50:50 1998
***************
*** 221,226 ****
--- 221,228 ----
# on this architecture. Set to YES to insist on
# e.g. fetching all distfiles (for interactive use in
# ${PORTSDIR}, mostly.
+ # ALL_TARGET - The target to pass to make in the package when building.
+ # INSTALL_TARGET- The target to pass to make in the package when installing.
#
# Motif support:
#
>Audit-Trail:
>Unformatted: