From owner-freebsd-ports@FreeBSD.ORG Tue May 24 20:49:11 2011 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6BB781065747 for ; Tue, 24 May 2011 20:49:11 +0000 (UTC) (envelope-from cswiger@mac.com) Received: from asmtpout021.mac.com (asmtpout021.mac.com [17.148.16.96]) by mx1.freebsd.org (Postfix) with ESMTP id 550C18FC15 for ; Tue, 24 May 2011 20:49:11 +0000 (UTC) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; CHARSET=US-ASCII Received: from cswiger1.apple.com ([17.209.4.71]) by asmtp021.mac.com (Oracle Communications Messaging Exchange Server 7u4-20.01 64bit (built Nov 21 2010)) with ESMTPSA id <0LLP0051HTPMK050@asmtp021.mac.com> for freebsd-ports@freebsd.org; Tue, 24 May 2011 12:48:59 -0700 (PDT) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.4.6813,1.0.148,0.0.0000 definitions=2011-05-24_06:2011-05-24, 2011-05-24, 1970-01-01 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 ipscore=0 suspectscore=0 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx engine=6.0.2-1012030000 definitions=main-1105240133 From: Chuck Swiger In-reply-to: Date: Tue, 24 May 2011 12:48:58 -0700 Message-id: <2EC28BD7-13EA-441B-B5DB-C4341AB467DF@mac.com> References: To: Helmut Schneider X-Mailer: Apple Mail (2.1084) Cc: freebsd-ports@freebsd.org Subject: Re: ${CD} X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 May 2011 20:49:11 -0000 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