Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: PATCH: Re: duplicate targets in Makefile rule



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