Date: Tue, 24 May 2011 12:48:58 -0700 From: Chuck Swiger <cswiger@mac.com> To: Helmut Schneider <jumper99@gmx.de> Cc: freebsd-ports@freebsd.org Subject: Re: ${CD} Message-ID: <2EC28BD7-13EA-441B-B5DB-C4341AB467DF@mac.com> In-Reply-To: <xn0hei8dh9tlbj000@news.gmane.org> References: <xn0hei8dh9tlbj000@news.gmane.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On May 24, 2011, at 12:39 PM, Helmut Schneider wrote: > I need 'cd' in my Makefile. It seems that the variable ${CD} is not > defined and people are using 'cd' instead. > > Is there a certain reason for that? make isn't the same as a shell; while you can do shell one-liners starting with a 'cd' if you have to, they won't have any effect on subsequent Makefile statements. Consider using VPATH to find sources instead. Regards, -- -Chuck
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2EC28BD7-13EA-441B-B5DB-C4341AB467DF>