Date: Sat, 10 Mar 2007 22:39:29 +0100 From: Roland Smith <rsmith@xs4all.nl> To: Daniel Mouritsen <daniel.mouritsen@gmail.com> Cc: freebsd-stable@freebsd.org Subject: Re: Another newbie question, about makefile options Message-ID: <20070310213929.GA50901@slackbox.xs4all.nl> In-Reply-To: <bae323940703101128s74c81133uc85f3aaa7ca12d33@mail.gmail.com> References: <bae323940703101128s74c81133uc85f3aaa7ca12d33@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
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).
Roland
--
R.F.Smith http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.3 (FreeBSD)
iD8DBQFF8yWREnfvsMMhpyURAthHAJ4grptxFVgxuvPmZH+ukJgyEjgG6wCfaNye
TlXw68QFtK2pzZCrzuHm4QQ=
=SxOK
-----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070310213929.GA50901>
