Another newbie question, about makefile options
Doug Barton
dougb at FreeBSD.org
Mon Mar 12 20:48:38 UTC 2007
Roland Smith wrote:
> On Sat, Mar 10, 2007 at 08:28:45PM +0100, Daniel Mouritsen wrote:
>> So my question is, should i pass the makefile options only when running
>> "make" to compile the program (that would make sence wouldnt it?) or should
>> i use them everytime i run make as in both when doing "make" and "make
>> install clean".
>
> You can put the options in /etc/make.conf. That way you can't forget them
> when you're (re)building a port. For example, for apache22 you could put
> the following in /etc/make.conf:
>
> .if ${.CURDIR:M*/www/apache22}
> WITH_CATEGORY1_MODULES=yes
> WITH_CATEGORY2_MODULES=yes
> .endif
>
> This effectively sets the variables whenever make is invoked in a
> directory that ends with www/apache22. See make(1).
See also ports-mgmt/portconf
--
This .signature sanitized for your protection
More information about the freebsd-stable
mailing list