This is the mail archive of the automake@gnu.org mailing list for the automake project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: confused: $DISTDIR not recognized by distcheck


On Mon, 2004-05-17 at 11:17, Richard Bos wrote:
> Hello list,
> 
> I'm confused how to use DESTDIR in an install hook in combination with target 
> distcheck.
> 
> When using $(prefix) in Makefile.am 'make distcheck' is succesfull,
> but make DESTDIR=$PWD/blah fails:
> (below is my result with DESTDIR in the Makefile.am instead of prefix)

> install-data-hook:
>         echo DEBUG DEBUG  DEBUG DEBUG DEBUG DEBUG DEBUG DEBUG
>         echo prefix $(prefix)
>         echo $(webserver_document_root)
>         for i in cgi-bin icons; do \
>           install -d -m 0755 $(prefix)/srv/server/www/cgi-bin/$$i; \
>         done
>         for i in freebusy locks; do \
>           install -d -m 0777 $(prefix)/srv/server/www/cgi-bin/$$i; \
>         done
>         echo DEBUG DEBUG  DEBUG DEBUG DEBUG DEBUG DEBUG DEBUG
>
> 
> If I change $(prefix) into $(DESTDIR) in the generated Makefile,
You need to change your install rules to using
$(DESTDIR)$(prefix)
instead of
$(prefix)

Ralf





Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]