[PATCH 2/2] Makefile export libraries headers

Mike Frysinger vapier.adi at gmail.com
Fri Dec 19 14:46:13 EST 2008


On Fri, Dec 19, 2008 at 14:42, Corentin Chary wrote:
> On Fri, Dec 19, 2008 at 7:21 PM, Mike Frysinger wrote:
>> On Fri, Dec 19, 2008 at 04:29, Corentin Chary wrote:
>>>>> +       for i in $(addsuffix .h, $(LIBS)); do \
>>>>> +               [ -f include/$$i ] &&  install -m 0755 include/$$i  ${DESTDIR}/${LIBDIR}/; \
>>>>> +       done
>>>>
>>>> you're installing headers into /usr/lib/ ?  that doesnt make any sense ...
>>>
>>> /LIBDIR/INCLUDEDIR/s
>>
>> well that change doesnt make sense either as you changed INCLUDEDIR to
>> "/include" ... i'm guessing you'll want to revert that too :)
>
> with DESTDIR=/usr/local -> /usr/local/include
> with DESTDIR=/usr -> /usr/include
>
> So it seems ok to me.

that isnt how DESTDIR works.  DESTDIR is the root directory, not the
prefix.  so the normal behavior would be:
make DESTDIR=/some/place/temp/ install
cp -r /some/place/temp/* /
and now you have headers in /include/
-mike



More information about the linux-mtd mailing list