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: Ralf Wildenhues
Subject: Re: Installing (everything in) a generated directory
Date: Thu, 25 Nov 2004 09:37:25 +0100
User-agent: Mutt/1.4.1i

* 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
>   /usr/bin/install: cannot stat `./manual/*': No such file or directory

Where are the contents created?  $top_srcdir/manual or
$top_builddir/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.

Regards,
Ralf




reply via email to

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