Date: Thu, 18 Dec 2003 18:21:50 -0700 From: Drew Eckhardt <drew@PoohSticks.ORG> To: "Dan Langille" <dan@langille.org> Cc: freebsd-hackers@freebsd.org Subject: Re: optionally include file within a Makefile Message-ID: <200312190121.hBJ1Lof03044@revolt.poohsticks.org> In-Reply-To: Your message of "Thu, 18 Dec 2003 20:13:16 EST." <3FE20A5C.2872.92C92363@localhost>
next in thread | previous in thread | raw e-mail | index | archive | help
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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200312190121.hBJ1Lof03044>