From owner-freebsd-hackers@FreeBSD.ORG Thu Dec 18 17:22:04 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 2672616A4CE for ; Thu, 18 Dec 2003 17:22:04 -0800 (PST) Received: from revolt.poohsticks.org (ns.poohsticks.org [63.227.60.73]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8100A43D67 for ; Thu, 18 Dec 2003 17:21:56 -0800 (PST) (envelope-from drew@revolt.poohsticks.org) Received: from revolt.poohsticks.org (localhost [127.0.0.1]) by revolt.poohsticks.org (8.11.3/8.11.3) with ESMTP id hBJ1Lof03044; Thu, 18 Dec 2003 18:21:50 -0700 (MST) (envelope-from drew@revolt.poohsticks.org) Message-Id: <200312190121.hBJ1Lof03044@revolt.poohsticks.org> To: "Dan Langille" In-reply-to: Your message of "Thu, 18 Dec 2003 20:13:16 EST." <3FE20A5C.2872.92C92363@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3041.1071796909.1@revolt.poohsticks.org> Date: Thu, 18 Dec 2003 18:21:50 -0700 From: Drew Eckhardt 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 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:22:04 -0000 In message <3FE20A5C.2872.92C92363@localhost>, dan@langille.org writes: >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 commands associated with a Make command are passed to the shell. You need to do your conditional within the make environment, outside of a rule .if exists foo .include foo .endif all: