From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15148 invoked from network); 9 Feb 2000 23:58:14 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 9 Feb 2000 23:58:14 -0000 Received: (qmail 16107 invoked by alias); 9 Feb 2000 23:58:07 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 9643 Received: (qmail 16100 invoked from network); 9 Feb 2000 23:58:07 -0000 Date: Wed, 9 Feb 2000 23:58:05 +0000 From: Adam Spiers To: zsh workers mailing list Subject: duplicate targets in Makefile rule Message-ID: <20000209235805.A24294@thelonious.new.ox.ac.uk> Reply-To: Adam Spiers Mail-Followup-To: zsh workers mailing list Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre3i X-Home-Page: http://www.new.ox.ac.uk/~adam/ X-OS: Linux 2.2.12 i686 I'm puzzled by the following on line 85 of Doc/Makefile.in: zsh.texi $(sdir)/zsh.texi: case $@ in \ */*) target=$@ ;; \ *) target=$(sdir)/$@ ;; \ esac; \ $(YODL) -o $$target -I$(sdir) -w ztexi.yo version.yo zsh.yo; \ test -f $$target When is sdir not `.'? And when it is, make barfs with things like: make[1]: Entering directory `/mnt/hda7/usr_src/redhat/BUILD/zsh-3.1.6/Doc' Makefile:217: target `zsh.texi' given more than once in the same rule. make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/mnt/hda7/usr_src/redhat/BUILD/zsh-3.1.6/Doc'