optionally include file within a Makefile

[ Available lists | Index of freebsd-hackers | Month of Dec 2003 | Week of 18 Dec 2003 | Raw email | View thread | Wrap long lines | Reply | Tag ]
From
Dan Langille <dan@langille.org>
Date
18 Dec 2003 16:02:39
Subject
optionally include file within a Makefile
Message-ID
3FE1F9CB.6075.928869EF@localhost

Replies
Referenced by

[ Hide this part ]
My goal is provide a way to override values in a Makefile with values
from a local config file.

My attempt is this:

if test -r ~/.local-values \
then \
. ~/.local-values \
fi
#
# Where to get the source to be tested
BACULA_SOURCE?="${HOME}/src/bacula-cvs"

But I'm getting this error:

$ make setup
"Makefile", line 8: Need an operator

where line 8 is the fi.

Ideas?
--
Dan Langille : http://www.langille.org/


Elapsed time: 0.072 seconds