On 2013-03-31 11:01 +0100, Bastien ROUCARIES wrote: > On Sat, Mar 30, 2013 at 5:01 PM, Bastien ROUCARIES > <roucaries.bast...@gmail.com> wrote: [...] > > >No we have a automake rules that do: > > >$(PERLMAGICK)/quantum/@MAGICK_ABI_SUFFIX@.pm: > > >$(PERLMAGICK)/quantum/quantum.pm > > > $(AM_V_GEN) $(LN_S) $(notdir $^) $@ > > > > > >And it is surelly not portable ... > > Any idea to get portable basename shell command ?
Note also that $^ is not portable as it is also GNU make feature, along with $(notdir ...). But in this case it doesn't look like you need $^, or even basename. I think you can just replace the string (unfortunately, you'd need to see the rest of the Makefile to be sure): $(notdir $^) with: quantum.pm and it will work just as well, and be portable. Cheers, -- Nick Bowler, Elliptic Technologies (http://www.elliptictech.com/)