Re: replacing $<

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

 



Bill Moseley <moseley@xxxxxxxx> 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 (rra@xxxxxxxxxxxx)             <http://www.eyrie.org/~eagle/>



[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux