[Top][All Lists]
[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 22:49:34 +0800 |
On Mon, Jul 7, 2008 at 3:17 PM, Steven Woody <address@hidden> wrote:
> 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.
>
any idea?