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

Re: how to manage symbolic links ?

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.


Colin Watson                                  [cjwatson@flatline.org.uk]

Reply to: