On Mon, Jul 7, 2008 at 3:17 PM, Steven Woody <[EMAIL PROTECTED]> wrote: > On Mon, Jul 7, 2008 at 1:32 PM, Ralf Wildenhues <[EMAIL PROTECTED]> 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?