Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.


#315 1.2.1 install-data-local fails for API documentation

Josh Coalson
Tim Mooney

When doing an install (I'm on x86_64-sun-solaris2.10, but that doesn't matter in this case) in the doc/html
directory, the install-data-local fails for the API documentation.

This happens because of the way that the install-data-local target is written. The target references $(INSTALL_DATA), which will likely be a relative path, but it tries to do so in a command that cd's into the api directory, so the relative path is off.

One possible fix is to not cd into the api directory for the install rule. The patch that I'll attach takes that approach.

The possible problem with that approach is that it adds to the length of the command line that gets invoked after the glob is expanded, so it may cause problems on some platforms.


  • Tim Mooney
    Tim Mooney

    patch: don't cd into api directory for install-data-local

  • Josh Coalson
    Josh Coalson

    • assigned_to: nobody --> jcoalson
  • Scott

    I had a similar problem installing docs when using a build directory that differs from the source directory.... I found the following fixed the install problem:

    --- 2007-09-16 19:14:01.000000000 +0000
    +++ 2011-10-10 22:51:33.401696000 +0000
    @@ -73,7 +73,7 @@
    - (cd api && $(INSTALL_DATA) * $(DESTDIR)$(docdir)/api)
    + (cd $(srcdir)/api && $(INSTALL_DATA) * $(DESTDIR)$(docdir)/api)