Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: Re: duplicate targets in Makefile rule
- X-seq: zsh-workers 9670
- From: Zefram <zefram@xxxxxxxx>
- To: Adam Spiers <adam@xxxxxxxxxx>
- Subject: Re: PATCH: Re: duplicate targets in Makefile rule
- Date: Thu, 10 Feb 2000 17:11:21 +0000 (GMT)
- Cc: zsh workers mailing list <zsh-workers@xxxxxxxxxxxxxx>
- In-reply-to: <20000210170351.A19964@xxxxxxxxxxxxxxxxxxxxxxx> from Adam Spiers at "Feb 10, 2000 05:03:51 pm"
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
Adam Spiers wrote:
> zsh.dvi: $(sdir)/zsh.texi
>- $(TEXI2DVI) $(sdir)/zsh.texi
>+ $(TEXI2DVI) $<
Not portable: $< does not portably exist (and is not at all meaningful) in
an explicit rule. The original code here is the only safe way to do it.
The only magic make variables that can be portably relied on are $@
(the target, available in all rules) and $< (the source, in implicit
rules only).
-zefram
Messages sorted by:
Reverse Date,
Date,
Thread,
Author