bug-make
[Top][All Lists]
Advanced

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

CURDIR for cur-dir in example in manual


From: Marty Leisner
Subject: CURDIR for cur-dir in example in manual
Date: Thu, 19 Jan 2006 16:04:35 -0500

Just looked at the most recent CVS copy of the manual on savannah...

the technique for recursive makefiles of

ifeq (0,address@hidden@})
cur-dir   := $(shell pwd)

is discussed, and passing pwd down with
        ${MAKE} cur-dir=${cur-dir}/$@ -C $@ all

Isn't it a better idea to just use ${CURDIR}?

Maybe the example should also mention this?

(I just discovered ${CURDIR} recently, I've been doing 
what the example does for years...)



marty           address@hidden   
Don't  confuse education with schooling.
        Milton Friedman to Yogi Berra




reply via email to

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