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

Re: duplicate targets in Makefile rule



Zefram (zefram@xxxxxxxx) wrote:
> Adam Spiers wrote:
> >When is sdir not `.'?
> 
> When you're compiling in a build tree separate from the source tree.

I see ... so how can we stop make from complaining when sdir is `.' ?
If we're compiling in a separate build tree then presumably we don't
need a rule for the source tree version of zsh.texi, so can we just
get rid of the zsh.texi target and leave the $(dir)/zsh.texi one?  If
we can, the patch is below.  However noone else seems to have
encountered a problem with this (and neither did I before Christmas),
so it's more likely I've done something wrong.  Any ideas what?

Index: Doc/Makefile.in
===================================================================
RCS file: /projects/zsh/zsh/Doc/Makefile.in,v
retrieving revision 1.1.1.60
diff -u -r1.1.1.60 Makefile.in
--- Doc/Makefile.in	2000/02/07 01:59:21	1.1.1.60
+++ Doc/Makefile.in	2000/02/10 13:33:29
@@ -82,7 +82,7 @@
 zsh.dvi: $(sdir)/zsh.texi
 	$(TEXI2DVI) $(sdir)/zsh.texi
 
-zsh.texi $(sdir)/zsh.texi:
+$(sdir)/zsh.texi:
 	case $@ in \
 	  */*) target=$@ ;; \
 	  *) target=$(sdir)/$@ ;; \



Messages sorted by: Reverse Date, Date, Thread, Author