On Friday, June 16, 2000, F Labrosse <[EMAIL PROTECTED]> wrote:
> Pete Willemsen writes:
> > Hello.
> >
> > I'm struggling with figuring out a way to maintain my directory
> > structure for my header files. I have the following structure
> >
> > file1.c ... fileN.c PackageName/ Makefile.am configure.in ...
> > |
> > file1.h ... fileN.h
> >
>
> I create a Makefile.am in PackageName containing:
>
> includedir=@includedir@/PackageName
>
> include_HEADERS = file1.h ... fileN.h
>
> It is working. Is there something wrong with that?
It's probably a little better to create your own foodir. The solution
above works for a single target directory, but what if you have two
directories you want to install header files into?...
mypackage1dir=$(includedir)/pkg1
mypackage1_HEADERS = pkg1.h otherstuff.h
mypackage2dir=$(includedir)/pkg2
mypackage2_HEADERS = pkg2.h
If $(prefix) is /usr/local, this would install the following files:
/usr/local/include/pkg1/pkg1.h
/usr/local/include/pkg1/otherstuff.h
/usr/local/include/pkg2/pkg2.h
You should probably also use $(includedir) instead of @includedir@.
John
--
[EMAIL PROTECTED] http://www.gnome.org
[EMAIL PROTECTED] http://www.worldforge.org
http://advogato.org/person/jsheets