Re: Creating a link with automake

2017-01-23 Thread Thomas Jahns
On 01/20/2017 11:21 AM, Bernhard Seckinger wrote: I've got a program, that contains some php-script frontend (cli not web) (and other stuff, which is irrelevant here). I've put the php-scripts into $pkgdatadir. Now I'd like to have a link from $bindir to the main script i.e. ln -s ${pkgdatadir}/

Re: Creating a link with automake

2017-01-23 Thread Simon Richter
Hi, On Fri, Jan 20, 2017 at 12:44:53PM -0600, Bob Friesenhahn wrote: > install-exec-local: > mkdir -p ${DESTDIR}${bindir} > ln -s ${DESTDIR}${pkgdatadir}/croco.php ${DESTDIR}${bindir}/croco With automake, this could also be written as install-exec-local: $(MKDIR_P) $(DESTDIR

Re: Creating a link with automake

2017-01-20 Thread Bernhard Seckinger
Hi Bob, > You need to add support for the DESTDIR environment variable, which > specifies an alternate directory path to install into. Perhaps this > will work: That's it. :-) I read about DESTDIR but unfortunately forgot it... Thanks, Berni -- -- Meine Rätselwebseite: www.croco-puzzle.com

Re: Creating a link with automake

2017-01-20 Thread Bob Friesenhahn
On Fri, 20 Jan 2017, Bernhard Seckinger wrote: I've got a program, that contains some php-script frontend (cli not web) (and other stuff, which is irrelevant here). I've put the php-scripts into $pkgdatadir. Now I'd like to have a link from $bindir to the main script i.e. ln -s ${pkgdatadir}/cr