automake
[Top][All Lists]
Advanced

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

Re: Where to do post installation?


From: Steven Woody
Subject: Re: Where to do post installation?
Date: Mon, 7 Jul 2008 15:17:47 +0800

On Mon, Jul 7, 2008 at 1:32 PM, Ralf Wildenhues <address@hidden> wrote:
> Hello Steven,
>
> * Steven Woody wrote on Mon, Jul 07, 2008 at 07:20:44AM CEST:
>>
>> After 'make install',  I want to do some post-install things such as
>> creating some directories, run a script etc. What is valid method in
>> Makefile.am to do this? Thank you.
>
> Write rules for install-exec-hook and/or install-data-hook.
>
> Cheers,
> Ralf
>

Thank you, understood. But, when I copy samples from automake manual
and do the following:

install-data-hook:
    mkdir -p $(DESTDIR)/var/run

and I expect that var/run will be created under my $PREFIX.  The
result is not, the var/run was created under my current working
directory.  See the following 'make install' outputs:

....
make[3]: Entering directory `/home/woody/lmt/trunk'
mkdir -p var/run
....

Here, /home/woody/lmt/trunk is my working directory, not my $PREFIX.

Did I missed something?  Thanks.




reply via email to

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