This is the mail archive of the automake@gnu.org mailing list for the automake project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: How can I install files to specific location?


>>>>> "David" == David Kirkby <drkirkby@ntlworld.com> writes:

David> 	I've an application (atlc) that has documentation in the form
David> of html pages and some jpgs. When the packaged files are
David> extracted prior to compiling, the files in question are in
David> atlc-version/docs/html-docs and
David> atlc-version/docs/html-docs/jpgs.

David> How can get those installed into
David> /usr/local/atlc-version/html-docs and
David> /usr/local/atlc-version/html-docs/jpgs by default, with the
David> /usr/local being changed if someone alters the program-prefix?

It depends on your build setup, but basically:

    htmldir = $(prefix)/atlc-version/html-docs
    html_DATA = list your .html files here

Ordinarily I would recommend against doing this though.
Adding a new subdirectory directly under $(prefix) is usually not what
you want to do.  See the GNU Coding Standards for some suggestions on
where to install things.

Tom


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]