NetBSD-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: make-dependency with multiple targets
On Thu, Apr 03, 2008 at 12:58:08AM +0000, Johnny C. Lam wrote:
> On Wed, Apr 02, 2008 at 07:42:41PM +0200, Petar Bogdanovic wrote:
> >
> > I'm just doing my first steps with make(1). The following Makefile
> > should create some postfix maps upon invocation:
> >
> > MAPS = client sender
> >
> > ${MAPS:S/$/.db/g}: ${MAPS}
> > postmap ${.ALLSRC}
> >
> > This does work pretty well but if nothing has to be done, make confuses
> > me with an inconsistent message:
> >
> > `client.db' is up to date.
> >
>
> This is equivalent to this:
>
> client.db sender.db: client sender
> postmap client sender
>
> The default target is just the first named target -- in this case,
> ``client.db''.
Thank you, that makes sense -- I misread the man-page where it says:
``Dependency lines consist of one or more targets, an operator,
and zero or more sources'' ^^^^^^^
Home |
Main Index |
Thread Index |
Old Index