Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 01 Sep 2002 19:43:54 -0400
From:      "Dan Langille" <dan@langille.org>
To:        ports@freebsd.org
Cc:        dan@langille.org
Subject:   invoking make from within the Makefile
Message-ID:  <3D726DFA.25601.9F7756FF@localhost>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3D726DFA.25601.9F7756FF>