Date: Thu, 18 Dec 2003 17:20:30 -0800 From: Tim Kientzle <kientzle@acm.org> To: Dan Langille <dan@langille.org> Cc: freebsd-hackers@freebsd.org Subject: Re: optionally include file within a Makefile Message-ID: <3FE2525E.6000105@acm.org> In-Reply-To: <3FE20A5C.2872.92C92363@localhost> References: <3FE20A5C.2872.92C92363@localhost>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3FE2525E.6000105>