Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
RE: Makefile target given more than once (Re: 3.1.6-dev-17)
- X-seq: zsh-workers 9598
- From: "Andrej Borsenkow" <Andrej.Borsenkow@xxxxxxxxxxxxxx>
- To: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxxxxxxxxx>, "Zsh hackers list" <zsh-workers@xxxxxxxxxxxxxx>
- Subject: RE: Makefile target given more than once (Re: 3.1.6-dev-17)
- Date: Mon, 7 Feb 2000 12:56:13 +0300
- Importance: Normal
- In-reply-to: <1000207080634.ZM8445@xxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
> } > Hrm. This would appear to be gmake cleverly discovering that
> when $(sdir)
> } > is ".", zsh.texi and $(sdir)/zsh.texi are the same target.
> }
> } So far it is just noise. But why we need two targets? One is obviously
> } redundant.
>
> No, that's not true.
>
> The $(sdir)/zsh.texi target is used in dependencies elsewhere in the
> Makefile.
>
> The zsh.texi target is for (cd Doc; make zsh.texi) which is executed by
> the top-level Makefile and also may be typed by a user.
>
Here I'm confused. Top-level Makefile never does (cd Doc; make zsh.texi); it
does all, install, clean ... but never subdir-specific targets.
So, we need zsh.texi in source dir to include it with distribution (for
users without yodl). Right?
I suggest to use placeholder like texi, dvi, html etc as main targets and
make them depend on actual files. Like
all: man texi
man: $(MAN)
texi: $(sdir)/zsh.texi
That is what e.g. bash does.
/andrej
Messages sorted by:
Reverse Date,
Date,
Thread,
Author