From owner-freebsd-ports Fri Mar 30 4:39:40 2001 Delivered-To: freebsd-ports@freebsd.org Received: from csmd2.cs.uni-magdeburg.de (prinz.CS.Uni-Magdeburg.De [141.44.21.2]) by hub.freebsd.org (Postfix) with ESMTP id 00AA537B719 for ; Fri, 30 Mar 2001 04:39:37 -0800 (PST) (envelope-from jesse@mail.CS.Uni-Magdeburg.De) Received: from knecht.cs.uni-magdeburg.de (jesse@knecht [141.44.21.3]) by csmd2.cs.uni-magdeburg.de (8.9.3/8.9.3) with ESMTP id OAA10753 for ; Fri, 30 Mar 2001 14:39:35 +0200 (MET DST) Received: (from jesse@localhost) by knecht.cs.uni-magdeburg.de (8.9.3+Sun/8.9.3) id OAA00305 for freebsd-ports@freebsd.org; Fri, 30 Mar 2001 14:39:35 +0200 (MEST) Date: Fri, 30 Mar 2001 14:39:35 +0200 From: Roland Jesse To: freebsd-ports@freebsd.org Subject: Specify a working directory for the build target Message-ID: <20010330143935.B272@knecht.cs.uni-magdeburg.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi, while creating the port lang/squeak3 I stumbled about the following: The build should be done in a separate directory which is created during the configure step. The part of the Makefile looks currently as follows: --------------------------- snip ------------------------------ pre-configure: echo "wrksrc = ${WRKSRC}" # temporary! @${MKDIR} ${WRKSRC}/build @cd ${WRKSRC}/build pre-build: cd ${WRKSRC}/build --------------------------- snip ------------------------------ That does not ensure that the "make build" is done in ${WRKSRC}/build. A "make" inside my ports directory results in: --------------------------- snip ------------------------------ ===> Building for squeak-3.0pre2 cd /usr/ports/lang/squeak3/work/Squeak-3.0/build gmake: Makefile: No such file or directory gmake: *** No rule to make target `Makefile'. Stop. *** Error code 2 Stop in /usr/ports/lang/squeak3. *** Error code 1 --------------------------- snip ------------------------------ I can successfully cd to ${WRKSRC}/build and do a "gmake" there. How do I tell the port's Makefile to do so, too? Thanks in advance Roland To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message