diff options
author | rillig <rillig@pkgsrc.org> | 2006-11-10 20:48:41 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2006-11-10 20:48:41 +0000 |
commit | 76810d60ee4af311d610afbc0210b3bbc1e6ef61 (patch) | |
tree | fdf5b5fb3c9b4d61cce34b6af2daeda649d2def8 /mk/alternatives.mk | |
parent | 331ea6cf14a550c29f0b247e5da6dd5862c92862 (diff) | |
download | pkgsrc-76810d60ee4af311d610afbc0210b3bbc1e6ef61.tar.gz |
Provided the usual header comment.
Diffstat (limited to 'mk/alternatives.mk')
-rw-r--r-- | mk/alternatives.mk | 30 |
1 files changed, 20 insertions, 10 deletions
diff --git a/mk/alternatives.mk b/mk/alternatives.mk index e3217357570..6287a398651 100644 --- a/mk/alternatives.mk +++ b/mk/alternatives.mk @@ -1,24 +1,34 @@ -# $NetBSD: alternatives.mk,v 1.7 2006/06/15 22:13:59 jlam Exp $ +# $NetBSD: alternatives.mk,v 1.8 2006/11/10 20:48:41 rillig Exp $ # # This Makefile fragment handles the alternatives system, registering a # package in the database. # -# The ALTERNATIVES_SRC variable contains the path to a file listing the -# alternatives provided by the package. It defaults to the ALTERNATIVES -# file in the current directory if found. If this variable is empty, no -# actions are taken by this file. +# User-settable variables: +# +# (none) +# +# Package-settable variables: +# +# ALTERNATIVES_SRC +# A _single_ file that contains the alternatives provided by the +# package. +# +# Default value: The name of the ALTERNATIVES file in the package +# directory, if it exists. Otherwise, nothing. +# +# Variables defined by this file: +# +# PKG_ALTERNATIVES +# The path to the pkg_alternatives command. # .if !defined(ALTERNATIVES_MK) ALTERNATIVES_MK= # defined -.if !defined(ALTERNATIVES_SRC) -. if exists(${.CURDIR}/ALTERNATIVES) +.if exists(${.CURDIR}/ALTERNATIVES) ALTERNATIVES_SRC?= ${.CURDIR}/ALTERNATIVES -. else -ALTERNATIVES_SRC?= -. endif .endif +ALTERNATIVES_SRC?= # none .if !empty(ALTERNATIVES_SRC) |