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.

Close

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

open
Josh Coalson
5
2007-12-02
2007-11-30
Tim Mooney
No

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.

Discussion

  • Tim Mooney
    Tim Mooney
    2007-11-30

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

     
  • Josh Coalson
    Josh Coalson
    2007-12-02

    • assigned_to: nobody --> jcoalson
     
  • Scott
    Scott
    2011-10-10

    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:

    --- Makefile.am 2007-09-16 19:14:01.000000000 +0000
    +++ Makefile.am.new 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)