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

duplicate targets in Makefile rule



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'



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