From owner-freebsd-ports Sun Sep 1 16:45:38 2002 Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 98D1D37B401 for ; Sun, 1 Sep 2002 16:45:33 -0700 (PDT) Received: from bast.unixathome.org (bast.unixathome.org [216.187.105.150]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1EC9543E77 for ; Sun, 1 Sep 2002 16:45:33 -0700 (PDT) (envelope-from dan@langille.org) Received: from wocker (wocker.unixathome.org [192.168.0.99]) by bast.unixathome.org (Postfix) with ESMTP id 193CD3F28; Sun, 1 Sep 2002 19:45:27 -0400 (EDT) From: "Dan Langille" To: ports@freebsd.org Date: Sun, 01 Sep 2002 19:43:54 -0400 MIME-Version: 1.0 Subject: invoking make from within the Makefile Cc: dan@langille.org Message-ID: <3D726DFA.25601.9F7756FF@localhost> X-mailer: Pegasus Mail for Windows (v4.02) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Content-description: Mail message body Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org I've discovered a few ports recently which have been obtaining PORTVERSION by doing this: PORTVERSION= ${MAKE} -V PORTVERSION -f ${MAINDIR}/${MAKEFILE} This will not work when using the -f option. One way to make it work with the -f option is the following: PORTVERSION= ${MAKE} -V PORTVERSION -f ${MAINDIR}/${MKFILE} MKFILE!= /usr/bin/basename ${MAKEFILE} This was discussed in this thread: http://www.freebsd.org/cgi/getmsg.cgi?fetch=1106003+0+/usr/local/www/d b/text/2002/cvs-all/20020901.cvs-all A fix was posted here: http://www.freebsd.org/cgi/cvsweb.cgi/ports/www/mozilla- embedded/Makefile.diff?r1=1.15&r2=1.16&f=h A quick check of the ports tree reveals that there are only three such ports, all of which have been dealt with over the past week: [dan@nezlok:/usr/ports/audio/lame-devel] $ find /usr/ports -name Makefile -exec grep -l '\${MAKE}.*-V.*-f' {} \; /usr/ports/misc/cheatah/Makefile /usr/ports/www/mozilla-embedded/Makefile /usr/ports/www/mozilla-headers/Makefile [dan@nezlok:/usr/ports/audio/lame-devel] $ -- Dan Langille I'm looking for a computer job: http://www.freebsddiary.org/dan_langille.php To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message