optionally include file within a Makefile

Dan Langille dan at langille.org
Thu Dec 18 16:02:39 PST 2003


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/



More information about the freebsd-hackers mailing list