Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: BSD make and '$<'
- X-seq: zsh-workers 1843
- From: Zefram <A.Main@xxxxxxxxxxxxxxxxx>
- To: kunihiro@xxxxxxxxx
- Subject: Re: BSD make and '$<'
- Date: Wed, 31 Jul 1996 03:46:49 +0100 (BST)
- Cc: zsh-workers@xxxxxxxxxxxxxxx, mio@xxxxxxxxx
- In-reply-to: <199607302024.FAA09607@xxxxxxxxxxxxxxxxx> from "kunihiro@xxxxxxxxx" at Jul 31, 96 05:24:17 am
>Dose anybody know BSD make thinking '$<' should be used always with
>implicit rule? I'm not sure...
What I know about portable Makefile writing suggests that $< can only
be relied upon in an implicit rule (consider: it could refer to more
than one file, or none, in an explicit rule). $@ is the only special
variable that is always available in all rules.
> zsh.info: zsh.texi
>! -$(MAKEINFO) -I$(srcdir) $<
So I'm not surprised at the above failing with some makes.
> zsh.info: zsh.texi
>! -$(MAKEINFO) -I$(srcdir) $?
But that's not the best way to fix it -- better to use the actual
filename.
-zefram
Messages sorted by:
Reverse Date,
Date,
Thread,
Author