ports/103161: Add 'make version' to bsd.port.mk

Kirill Ponomarew krion at voodoo.bawue.com
Thu Sep 21 08:38:59 UTC 2006


On Wed, Sep 20, 2006 at 07:10:18AM +0000, Lars Engels wrote:
>  > On Mon, Sep 11, 2006 at 10:45:56PM +0200, Lars Engels wrote:
>  >
>  >> When run in a port's directory, 'make version' shows the the port's  
>  >>  name and version (${PKGNAME}), so no more searching in the  
>  >> Makefile  is needed.
>  >> While I'm in ports.7, I added the description for 'make maintainer', too.
>  >
>  > What's wrong with 'make -V PKGNAME'?
>  >
>  > Kris
>  
>  Hi Kris,
>  
>  in my opinion, 'make -V PKGNAME' is not very user friendly and  
>  intuitive. And because there is also a 'make maintainer' target, I  
>  thought it was a good idea to add the 'version' target.

If submitter doesn't object, I'd like to close this PR.  We have:

.if !target(package-name)
package-name:
    @${ECHO_CMD} ${PKGNAME}
.endif

which does exactly what submitter needs.

-Kirill



More information about the freebsd-ports-bugs mailing list