help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: A better way to perform substitution in make


From: Allan Wind
Subject: Re: A better way to perform substitution in make
Date: Mon, 20 Apr 2009 23:28:10 -0400
User-agent: Mutt/1.5.18 (2008-05-17)

On 2009-04-20T19:50:34, Randy Kao wrote:
> I was trying to implement a variable assignment to all files below the
> current directory where my Makefile resides currently.

Here is what I do:

rootdir = $(word 1,$(patsubst %/,%,$(dir $(MAKEFILE_LIST))))


/Allan
-- 
Allan Wind
Life Integrity, LLC
http://lifeintegrity.com





reply via email to

[Prev in Thread] Current Thread [Next in Thread]