[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Getting web content past distcheck
From: |
Ralf Corsepius |
Subject: |
Re: Getting web content past distcheck |
Date: |
Thu, 14 Oct 2004 06:26:20 +0200 |
On Thu, 2004-10-14 at 01:49, John Kodis wrote:
> On 10/13/2004 02:27:00 PM, Richard Bos wrote:
>
> > If I remember well you need to combine those:
> > htmldir = $(DESTDIR)/$(WEBDIR)/html/$(PACKAGE)
No.
> That's one of the things that I tried, but without success.
No surprize, that's not how things are supposed to work.
You only need to apply DESTDIR if you are using custom installation
rules, i.e.
1. Using standard installation rules:
htmldir = $(WEBDIR)/html
html_DATA = xxx.html
2. Using custom installation rules:
htmldir = $(WEBDIR)/html
html_FILES = xxx.html
install-data-local:
$(mkinstalldirs) $(DESTDIR)$(htmldir)
for $$i in $(html_FILES); do \
$(INSTALL_DATA) $$i $(DESTDIR)$(htmldir)/$$i; \
done
However, the cause of your issue is lurking elsewhere. One of the
checks, "make distcheck" executes, basically is
make prefix=<somewhere>/_inst install
This requires you to let $(WEBDIR) default to a directory containing
$(prefix) in its root. For example you could use something similar to
this in your configure.ac:
WEBDIR=${WEBDIR-\$(pkgdatadir)}
AC_SUBST(WEBDIR,$WEBDIR)
Ralf