Mail Archives: cygwin-developers/2001/09/13/18:19:38
On Fri, Sep 14, 2001 at 01:25:57AM +1000, Robert Collins wrote:
>
>----- Original Message -----
>From: "Earnie Boyd" <earnie_boyd AT yahoo DOT com>
>>The current patch doesn't do this unless you `configure --prefix=/foo'
>>and `make install prefix=/usr'.
>>
>>As to why, I'm trying to accommodate the dist, srcdist and bindist
>>targets so that `make dist' when target = 'cygwin' packages for
>>/usr/include/w32api and /usr/lib/w32api while all other targets package
>>in /usr/include and /usr/lib.
>
>The standard way to do this is to install into $(INCLUDEDIR) where that
>is defined as $(prefix)/include/w32api vs $(prefix)/include
>
>no fancy magic required, and it won't break prefix's under any
>circumstances.
I defined inst_includedir for the w32api case because includedir
is overridden to '/usr/include' (or whatever) when you do a top-level
build. So, if you want to install somewhere besides /usr/include you
have to do something special.
I don't recall exactly, but it seems like installing to includedir
and libdir was not doing the right thing in a cross-build environment.
I notice that the dist target in lib/Makefile.in doesn't seem to use
inst_includedir or inst_libdir.
If this is to accomodate the use of dist in the top-level makefile, then
why not just add the /usr there by overriding tooldir, as appropriate.
I don't know exactly what these targets are supposed to be doing but I
don't think that bending the standard targets to accomodate them is the
way to go.
cgf
- Raw text -