From owner-freebsd-ports Sat Sep 18 18: 7:20 1999 Delivered-To: freebsd-ports@freebsd.org Received: from saturn.psn.net (saturn.psn.net [207.211.58.15]) by hub.freebsd.org (Postfix) with ESMTP id 9B9B815038 for ; Sat, 18 Sep 1999 18:07:16 -0700 (PDT) (envelope-from will@blackdawn.com) Received: from shadow.blackdawn.com (5042-243.008.popsite.net [209.224.140.243]) by saturn.psn.net (8.9.3/8.9.3) with ESMTP id SAA20172 for ; Sat, 18 Sep 1999 18:13:37 -0700 (MST) Received: (from will@localhost) by shadow.blackdawn.com (8.9.3/8.9.3) id VAA66066 for ports@freebsd.org; Sat, 18 Sep 1999 21:05:49 -0400 (EDT) (envelope-from will) Message-ID: X-Mailer: XFMail 1.3 [p0] on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 Date: Sat, 18 Sep 1999 21:05:49 -0400 (EDT) Reply-To: Will Andrews From: Will Andrews To: ports@freebsd.org Subject: bsd.port.mk Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi porters.. I've looked at some ports I'm making and noticed another thing bsd.port.mk could possibly have. For example, some distributions have a compiled binary (i.e., author forgot to remove them for the distribution). Thus, perhaps something like this is in order: CLEAN_FIRST= YES where it will add to post-extract (or pre-build): .if defined(CLEAN_FIRST) @$(cd ${WRKSRC} && ${MAKE} clean) .endif Could possibly have a CLEAN_TARGET variable as well and change "clean" to ${CLEAN_TARGET}. I'm assuming ${MAKE} takes into account USE_GMAKE. Also, we won't need to check that ${WRKSRC} variable, as we're building in ${WRKSRC} anyway.. so if there's no binaries compiled there (or objfiles), then no need to clean anywhere else. My bet is, however, that PW will think this is additional cruft that is not necessary. But I thought I'd mention it anyway. ;-) -- Will Andrews GCS/E/S @d- s+:+>+:- a--->+++ C++ UB++++ P+ L- E--- W+++ !N !o ?K w--- ?O M+ V-- PS+ PE++ Y+ PGP+>+++ t++ 5 X++ R+ tv+ b++>++++ DI+++ D+ G++>+++ e->++++ h! r-->+++ y? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message