automake
[Top][All Lists]
Advanced

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

Re: Installing (everything in) a generated directory


From: Braden McDaniel
Subject: Re: Installing (everything in) a generated directory
Date: Thu, 25 Nov 2004 13:46:46 -0500

On Thu, 2004-11-25 at 09:37 +0100, Ralf Wildenhues wrote:
> * Braden McDaniel wrote on Thu, Nov 25, 2004 at 01:00:23AM CET:
> > I have the following Makefile.am:
> > 
> >   docdir = $(datadir)/doc/@address@hidden@PACKAGE_VERSION@
> > 
> >   EXTRA_DIST = manual
> > 
> >   MAINTAINERCLEANFILES = manual/*
> > 
> >   html: manual
> > 
> >   installdirs-local:
> >     $(mkinstalldirs) $(DESTDIR)$(docdir)/manual
> > 
> >   install-data-local: manual installdirs-local
> >     $(INSTALL_DATA) ./manual/* $(DESTDIR)$(docdir)/manual
> > 
> >   uninstall-local:
> >     rm -rf $(DESTDIR)$(docdir)/manual
> > 
> >   manual:
> >     $(DOXYGEN)
> > 
> > When "make distcheck" runs "make install", I get this:
> *snip*
> >   Making install in doc
> >   make[2]: Entering directory 
> > `/home/bmcdaniel/src/openvrml/openvrml/BUILD/openvrml-0.14.99/_build/doc'
> >   make[3]: Entering directory 
> > `/home/bmcdaniel/src/openvrml/openvrml/BUILD/openvrml-0.14.99/_build/doc'
> >   make[3]: Nothing to be done for `install-exec-am'.
> >   /bin/sh ../../mkinstalldirs 
> > /home/bmcdaniel/src/openvrml/openvrml/BUILD/openvrml-0.14.99/_inst/share/doc/openvrml-0.14.99/manual
> >   mkdir -p -- 
> > /home/bmcdaniel/src/openvrml/openvrml/BUILD/openvrml-0.14.99/_inst/share/doc/openvrml-0.14.99/manual
> >   /usr/bin/install -c -m 644 ./manual/* 
> 
> Where did the last argument go?
> 
> > /home/bmcdaniel/src/openvrml/openvrml/BUILD/openvrml-0.14.99/_inst/share/doc/openvrml-0.14.99/manual

It's right there; the line below your comment.

> >   /usr/bin/install: cannot stat `./manual/*': No such file or directory
> 
> Where are the contents created?  $top_srcdir/manual or
> $top_builddir/manual?

$builddir/manual, which is the same as $top_builddir/doc/manual.

>   You need to adapt the install-data-local rule if
> you put docs in the source tree.
> 
> *snip*
> > Since install-data-local depends on manual, I don't understand why 
> > doxygen doesn't get called at that point. Any suggestions?
> 
> Yes, you probably also want
> 
> .PHONY: manual
> 
> so that `make' does not think `manual' is up-to-date already.

When I add that, the docs are rebuilt and installed again after "make
uninstall" (again, as part of "make distcheck"). This fails when the
attempt is made to copy the files, as apparently _build is no longer
writable at this point.

-- 
Braden McDaniel                           e-mail: <address@hidden>
<http://endoframe.com>                    Jabber: <address@hidden>





reply via email to

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