automake
[Top][All Lists]
Advanced

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

Re: Getting web content past distcheck


From: John Kodis
Subject: Re: Getting web content past distcheck
Date: Sat, 16 Oct 2004 14:54:23 -0400

On 10/14/2004 12:26:20 AM, Ralf Corsepius wrote:

install-data-local:
        $(mkinstalldirs) $(DESTDIR)$(htmldir)

I just tried this approach -- writing a custom install rule to get web pages and cgi scripts installed in the web server directory tree -- and the distcheck still fails in the same manner. It seems that DESTDIR doesn't get set when the distcheck target rules are executed.

My Makefile.am has a local install rule of:

   install-exec-local:
        $(mkinstalldirs) $(DESTDIR)$(cgidir)

but when this rule is run, the make distcheck rules still trie to write to $(cgidir) rather than to $(DESTDIR)$(cgidir), like so:

   mkdir -p -- . /var/www/cgi-bin/webgoo
mkdir: cannot create directory `/var/www/cgi-bin/webgoo': Permission denied

At this point, I'm going to try hijacking one of the predefined directories such as sharedstatedir, defaulting this to /var/www, and perpetrating an ugly hack that will install the html and cgi files in $(sharedstatedir)/html/$(PACKAGE) and $(sharedstatedir)/cgi-bin/ $(PACKAGE). That sure doesn't seem like the cleanest approach, but nothing else that I've tried works under all circumstances.

Thanks all the same to Ralf and everyone else who has offered suggestions for solving this problem.

-- John Kodis.



reply via email to

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