This is the mail archive of the
automake@gnu.org
mailing list for the automake project.
Re: confused: $DISTDIR not recognized by distcheck
- From: Ralf Corsepius <corsepiu at faw dot uni-ulm dot de>
- To: richard dot bos at xs4all dot nl
- Cc: Automake List <automake at gnu dot org>
- Date: Mon, 17 May 2004 14:52:39 +0200
- Subject: Re: confused: $DISTDIR not recognized by distcheck
- References: <200405171117.51427.radoeka@xs4all.nl>
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