Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 2 May 2003 19:59:38 +0100
From:      Jez Hancock <jez.hancock@munk.nu>
To:        FreeBSD questions List <freebsd-questions@freebsd.org>
Subject:   Re: How to find out available "make" arguments
Message-ID:  <20030502185938.GA22693@users.munk.nu>
In-Reply-To: <3EB2B0E4.5000309@netscape.net>
References:  <3EB2B0E4.5000309@netscape.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, May 02, 2003 at 01:54:44PM -0400, E. J. Cerejo wrote:
> How do I find which arguments are available for a particular port using 
> the make command?
In general read through the Makefile for the port and look for lines
that have 'if .defined' in them.

For example taking /usr/ports/www/apache13/Makefile:
===================================================================
.if defined(WITH_APACHE_SUEXEC) && ${WITH_APACHE_SUEXEC} == yes
.if defined(APACHE_SUEXEC_UMASK)
.if defined(APACHE_HARD_SERVER_LIMIT)
===================================================================

the defined() arguments here indicate that you could issue:

make -DWITH_APAPCHE_SUEXEC

to make apache with the suexec functionality (maybe a bad example
here I think there's more needed to actually include suexec support in
apache!).  Generally though this is how it works.

For information regarding targets to 'make' read:

/usr/ports/Mk/bsd.ports.mk

in there you'll find:
# Default targets and their behaviors:
#
# fetch			- Retrieves ${DISTFILES} (and ${PATCHFILES} if defined)
#				  into ${DISTDIR} as necessary.
<snip>

which describes what targets the ports make command can build.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030502185938.GA22693>