autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: replacing $<


From: Russ Allbery
Subject: Re: replacing $<
Date: Tue, 21 Oct 2003 13:45:12 -0700
User-agent: Gnus/5.1002 (Gnus v5.10.2) XEmacs/21.4 (Common Lisp, linux)

Bill Moseley <address@hidden> writes:

> I'm sorry, I cut from the wrong makefile.  I have this in a
> Makefile.am, not the above:

> $(srcdir)/swish-e.1 : $(top_srcdir)/pod/swish-e.pod
>         -rm -f $@
>         -pod2man --center="SWISH-E Documentation" --lax 
> --release='$(VERSION)'  $<  > $@

> And on Solaris 2.6 $< is not getting set.

Ah!  Now it makes sense.  $< is only guaranteed to be set for pattern
rules; many make implementations, including Solaris's, do not set it for
regular rules.  You need to just repeat the name of the POD file in the
build rule, unfortunately.  (Or use a pattern rule, but that can be harder
to do for things like this.)

-- 
Russ Allbery (address@hidden)             <http://www.eyrie.org/~eagle/>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]