Re: 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
Simon L. Nielsen <simon@FreeBSD.org>
Date
18 Dec 2003 17:22:26
Subject
Re: optionally include file within a Makefile
Message-ID
20031219012217.GA670@arthur.nitro.dk

In reply to
References to

[ Hide this part ]
On 2003.12.18 20:13:16 -0500, 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?

Perhaps (not tested, so there may be typos):

.if exists(${HOME}/.bacula-regress)
.include "${HOME}/.bacula-regress"
.endif

or something along those lines. The make(1) manual page contains a lot
of useful information.

--
Simon L. Nielsen
FreeBSD Documentation Team


[ Show this part (application/pgp-signature) ]

Elapsed time: 0.119 seconds