Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

Differences between OpenBSD and FreeBSD -V option in make

From: Daxbert <daxbert_news(at)dweebsoft.com>
Date: Sat Mar 01 2003 - 01:13:14 EST


While working on a portupgrade-like utility for OpenBSD, I've noticed that FreeBSD's make and OpenBSD's make treat the -V option differently.

FreeBSD-make recursively evaluates the variable(s) provided, while OpenBSD-make does not. This variable expansion is a feature I need for the portupgrade utility.

Example Makefile...

DISTNAME=       Atlas-C++-${VERSION}
PKGNAME=        ${DISTNAME:S/C++-//:L}

# make -V PKGNAME

FreeBSD-make returns 'atlas-0.4.3.1'
OpenBSD-make returns '${DISTNAME:S/C++//:L}'

I've created a patch for make which mimics the FreeBSD expansion with the same option (-X) to disable expansion.

Is this feature currently missing because it *should* be missing?

The patch may be found at either of the two following links. As I'm new to this, comments would be greatly appreciated.

Do you need help?X

http://ra.dweebsoft.com/make.patch (raw - no html)

or

http://ra.dweebsoft.com/make.patch.html

--daxbert Received on Sat Mar 1 01:18:08 2003

This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 13:48:30 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library