* BSD make and '$<'
@ 1996-07-30 20:24 kunihiro
1996-07-31 2:46 ` Zefram
0 siblings, 1 reply; 2+ messages in thread
From: kunihiro @ 1996-07-30 20:24 UTC (permalink / raw)
To: Zsh hackers list; +Cc: mio
Using BSD make (I use one coming with FreeBSD), there is problem
around '$<' in Doc/Makefile.in. But there is no problem making with
GNU make.
Dose anybody know BSD make thinking '$<' should be used always with
implicit rule? I'm not sure...
% cd zsh-3.0-pre4/Doc
% make -n
makeinfo -I.
% gmake -n
makeinfo -I. zsh.texi
Hmm. I fixed it like this.
*** Doc/Makefile.in.bak Wed Jul 31 05:10:00 1996
--- Doc/Makefile.in Wed Jul 31 05:10:07 1996
***************
*** 93,111 ****
everything: all zsh_us.ps zsh_a4.ps zsh_toc.html
zsh.info: zsh.texi
! -$(MAKEINFO) -I$(srcdir) $<
zsh.dvi: zsh.texi
! $(TEXI2DVI) $<
zsh_us.ps: zsh.dvi
! $(DVIPS) -t letter -o $@ $<
zsh_a4.ps: zsh.dvi
! $(DVIPS) -t a4 -o $@ $<
zsh_toc.html: zsh.texi
! $(TEXI2HTML) $<
# ========== DEPENDENCIES FOR INSTALLING ==========
--- 93,111 ----
everything: all zsh_us.ps zsh_a4.ps zsh_toc.html
zsh.info: zsh.texi
! -$(MAKEINFO) -I$(srcdir) $?
zsh.dvi: zsh.texi
! $(TEXI2DVI) $?
zsh_us.ps: zsh.dvi
! $(DVIPS) -t letter -o $@ $?
zsh_a4.ps: zsh.dvi
! $(DVIPS) -t a4 -o $@ $?
zsh_toc.html: zsh.texi
! $(TEXI2HTML) $?
# ========== DEPENDENCIES FOR INSTALLING ==========
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: BSD make and '$<'
1996-07-30 20:24 BSD make and '$<' kunihiro
@ 1996-07-31 2:46 ` Zefram
0 siblings, 0 replies; 2+ messages in thread
From: Zefram @ 1996-07-31 2:46 UTC (permalink / raw)
To: kunihiro; +Cc: zsh-workers, mio
>Dose anybody know BSD make thinking '$<' should be used always with
>implicit rule? I'm not sure...
What I know about portable Makefile writing suggests that $< can only
be relied upon in an implicit rule (consider: it could refer to more
than one file, or none, in an explicit rule). $@ is the only special
variable that is always available in all rules.
> zsh.info: zsh.texi
>! -$(MAKEINFO) -I$(srcdir) $<
So I'm not surprised at the above failing with some makes.
> zsh.info: zsh.texi
>! -$(MAKEINFO) -I$(srcdir) $?
But that's not the best way to fix it -- better to use the actual
filename.
-zefram
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1996-07-31 2:48 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-07-30 20:24 BSD make and '$<' kunihiro
1996-07-31 2:46 ` Zefram
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).