Date: Thu, 18 Dec 2003 20:13:16 -0500 From: "Dan Langille" <dan@langille.org> To: freebsd-hackers@freebsd.org Subject: Re: optionally include file within a Makefile Message-ID: <3FE20A5C.2872.92C92363@localhost> In-Reply-To: <3FE1F9CB.6075.928869EF@localhost>
next in thread | previous in thread | raw e-mail | index | archive | help
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? [dan@polo:~] $ cat Makefile A?="things" all: @echo A is $A if [ -r ${HOME}/.bacula-regress ] ; then \ echo loading tha file; \ .include "${HOME}/.bacula-regress" ; \ fi @echo A is $A [dan@polo:~] $ cat .bacula-regress BACULA_SOURCE="${HOME}/src/bacula-cvs" EMAIL=dan+bacula@langille.org AUTOCHANGER="/dev/null" A="stuff" echo yes, we have stuff here. [dan@polo:~] $ make A is things if [ -r /home/dan/.bacula-regress ] ; then echo loading tha file; .include "/home/dan/.bacula-regress" ; fi loading tha file .include: not found *** Error code 127 Stop in /usr/home/dan. [dan@polo:~] $ -- Dan Langille : http://www.langille.org/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3FE20A5C.2872.92C92363>