From owner-freebsd-hackers@FreeBSD.ORG Thu Dec 18 17:20:33 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1131216A4CE for ; Thu, 18 Dec 2003 17:20:33 -0800 (PST) Received: from kientzle.com (h-66-166-149-50.SNVACAID.covad.net [66.166.149.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id C783443D45 for ; Thu, 18 Dec 2003 17:20:31 -0800 (PST) (envelope-from kientzle@acm.org) Received: from acm.org ([66.166.149.54]) by kientzle.com (8.12.9/8.12.9) with ESMTP id hBJ1KVkX063784; Thu, 18 Dec 2003 17:20:31 -0800 (PST) (envelope-from kientzle@acm.org) Message-ID: <3FE2525E.6000105@acm.org> Date: Thu, 18 Dec 2003 17:20:30 -0800 From: Tim Kientzle User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.4) Gecko/20031006 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Dan Langille References: <3FE20A5C.2872.92C92363@localhost> In-Reply-To: <3FE20A5C.2872.92C92363@localhost> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-hackers@freebsd.org Subject: Re: optionally include file within a Makefile X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: kientzle@acm.org List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Dec 2003 01:20:33 -0000 Dan Langille wrote: > On 18 Dec 2003 at 19:02, Dan Langille wrote: >>My goal is provide a way to override values in a Makefile with values >>from a local config file. > > I'm getting further. What's the proper way to do an include? The best reference I've found for advanced make usage is the FreeBSD source tree. Here's an excerpt from /usr/src/lib/libc/Makefile: # # If there is a machine dependent makefile, use it: # .if exists(${.CURDIR}/${MACHINE_ARCH}/Makefile.inc) .include "${.CURDIR}/${MACHINE_ARCH}/Makefile.inc" .endif