automake
[Top][All Lists]
Advanced

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

Re: confused: $DISTDIR not recognized by distcheck


From: Ralf Corsepius
Subject: Re: confused: $DISTDIR not recognized by distcheck
Date: Mon, 17 May 2004 14:52:39 +0200

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






reply via email to

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