Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Mar 2002 12:13:45 +0900 (JST)
From:      Masao Uebayashi <uebayasi@soum.co.jp>
To:        freebsd-ports@FreeBSD.ORG
Subject:   Re: make's default actions while installing ports
Message-ID:  <20020315.121345.37814969.uebayasi@soum.co.jp>
In-Reply-To: <20020315030044.GA1840@wwweasel.geeksrus.net>
References:  <20020315.110950.89361717.uebayasi@soum.co.jp> <20020315022220.12194.qmail@web14704.mail.yahoo.com> <20020315030044.GA1840@wwweasel.geeksrus.net>

next in thread | previous in thread | raw e-mail | index | archive | help
I wonder it's nice if each targe's definitions are assembled in one
place, which much helps us to survey the makefiles.  I imagine this is
possible by prepending a special target (e.g. `is-ignored') before all
public targets to know if the execution should go ahead or not.  Not
tested though.

is-ignored:
.if defined(IGNORE)
	{ commands; }
        exit 1
.endif

(...)

build: is-ignored
	{ commands; }

Masao

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




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