Re: replacing $<

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

 



> > In a Makefile.in I have:
> > 
> > %.1: ../pod/%.pod
> >         pod2man --center="SWISH-E Documentation" --lax --release='$(VERSION)' $< > $@

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.

So I'm just asking if $< is not portable (but it's ok to use $@)?  
Or am I using $< incorrectly?

I guess the solution is to use $(top_srcdir)/pod/swish-e.pod in place of $<.

Thanks,


-- 
Bill Moseley
moseley@xxxxxxxx




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

  Powered by Linux