This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [plugins] language makefiles and installing cp/ headers
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: Taras Glek <tglek at mozilla dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Fri, 19 Jun 2009 22:00:44 +0000 (UTC)
- Subject: Re: [plugins] language makefiles and installing cp/ headers
- References: <4A3C08F5.3000104@mozilla.com>
On Fri, 19 Jun 2009, Taras Glek wrote:
> Hi,
> I tried to make my plugin compile using only installed headers and turned out
> that I needed more gcc headers to be installed. Unfortunately, I needed C++
> headers which currently aren't installed. I modified the cp/Make-lang.in with
> logic copied from gcc/Makefile.in to add a c++.install-plugin target.
>
> Now I'm stuck, it's not clear to me how to call my new target from Makefile.in
> properly. In the attachment, I call it as a dependency on install-plugin, but
> that's obviously hack. Can someone suggest a proper way to do this?
See the discussion of Make-lang.in hooks in sourcebuild.texi.
configure.ac has a list of the hooks (target_list); you'll need to update
sourcebuild.texi as well and add dummy hook definitions to all the other
languages.
--
Joseph S. Myers
joseph@codesourcery.com