From owner-freebsd-questions@FreeBSD.ORG Fri May 2 11:58:27 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A512F37B401 for ; Fri, 2 May 2003 11:58:27 -0700 (PDT) Received: from mail.munk.nu (213-152-51-194.dsl.eclipse.net.uk [213.152.51.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id A37F943F85 for ; Fri, 2 May 2003 11:58:26 -0700 (PDT) (envelope-from munk@mail.munk.nu) Received: from munk by mail.munk.nu with local (Exim 4.14) id 19Bfkw-0005yW-Tu for freebsd-questions@freebsd.org; Fri, 02 May 2003 19:59:38 +0100 Date: Fri, 2 May 2003 19:59:38 +0100 From: Jez Hancock To: FreeBSD questions List Message-ID: <20030502185938.GA22693@users.munk.nu> Mail-Followup-To: FreeBSD questions List References: <3EB2B0E4.5000309@netscape.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3EB2B0E4.5000309@netscape.net> User-Agent: Mutt/1.4.1i Sender: User Munk Subject: Re: How to find out available "make" arguments X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 May 2003 18:58:28 -0000 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. which describes what targets the ports make command can build.