How to find out available "make" arguments

Jez Hancock jez.hancock at munk.nu
Fri May 2 11:58:28 PDT 2003


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.


More information about the freebsd-questions mailing list