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

Re: how to manage symbolic links ?



Thanks a lot for your help.

I manage to do what I want now :)

Indeed, it's better whith some coffee... I didn't removed $(DESTDIR)
from the links path...

Everything is fine now thanks a lot !

On Wed, 2003-08-13 at 15:23, Colin Watson wrote:
> On Wed, Aug 13, 2003 at 02:53:28PM +0200, Alexis Sukrieh wrote:
> > The first software I try to debianize needs to be placed in
> > /usr/share/appname and then to link the binary to /usr/bin which makes
> > something like this :
> > 
> > ln -s /usr/share/appname/appname /sur/bin/appname
> > 
> > The problem I've got is that $(DESTDIR) is not replaced in the final
> > link.
> > 
> > For instance, my Makefile.am looks like :
> > $(LN_S) -f $(DESTDIR)${coredir}/appname $(DESTDIR)$(bindir)/appname;
> > 
> > and the link appname-x/debian/tmp/usr/bin/appname points to
> > /home/me/debian_devel/appname-x/debian/tmp/usr/share/appname/appname
> 
> Symbolic links are textual; imagine that 'ln -s' creates a file
> containing exactly what you give as the target and you'll be fairly
> close, except that of course it's not a regular file. Therefore, you
> must not use $(DESTDIR) in the target.
> 
> Cheers,
> 
> -- 
> Colin Watson                                  [cjwatson@flatline.org.uk]
> 



Reply to: