automake
[Top][All Lists]
Advanced

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

Re: Creating a link with automake


From: Thomas Jahns
Subject: Re: Creating a link with automake
Date: Mon, 23 Jan 2017 11:59:23 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.6.0

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}/croco.php ${bindir}/croco

To do this I've added to the Makefile.ac the following:

install-exec-local:
    mkdir -p ${bindir}
    ln -s ${pkgdatadir}/croco.php ${bindir}/croco

When using "make install" this works. But when I run "make distcheck" I get an
error, telling that I'm not allowed to create the ${bindir}. I've allready
tried to replace the mkdir command with

    ${srcdir}/../install-sh -d ${bindir}

which is probably architecture-independend, but I still get a similar error.

Does anyone know, how to do this?

I think the SCRIPTS primary is what you're searching for:

https://www.gnu.org/software/automake/manual/automake.html#Scripts

Regards, Thomas


Attachment: smime.p7s
Description: S/MIME Cryptographic Signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]