From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 935 invoked from network); 10 Feb 2000 17:11:29 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 10 Feb 2000 17:11:29 -0000 Received: (qmail 6329 invoked by alias); 10 Feb 2000 17:11:24 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 9670 Received: (qmail 6322 invoked from network); 10 Feb 2000 17:11:24 -0000 Subject: Re: PATCH: Re: duplicate targets in Makefile rule In-Reply-To: <20000210170351.A19964@thelonious.new.ox.ac.uk> from Adam Spiers at "Feb 10, 2000 05:03:51 pm" To: Adam Spiers Date: Thu, 10 Feb 2000 17:11:21 +0000 (GMT) CC: zsh workers mailing list X-Mailer: ELM [version 2.4ME+ PL66 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Message-Id: From: Zefram 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