Subject: Re: DESTDIR vs. beforeinstall - Battle of the Titans
To: None <mike.long@analog.com>
From: Greg Earle <earle@isolar.Tujunga.CA.US>
List: current-users
Date: 05/22/1996 20:45:52
> [kerberos build disagrees with use of DESTDIR]
> 
>> This is because /usr/src/domestic/lib/{libkadm,libkrb,libss}/Makefile all
>> contain essentially
>>
>> beforeinstall:
>>       -cd ${.OBJDIR}; cmp -s {kadm,krb,ss}_err.h \
>>           ${DESTDIR}/usr/include/kerberosIV/{kadm,krb,ss}_err.h || \
>>           install -c -o ${BINOWN} -g ${BINGRP} -m 444 {kadm,krb,ss}_err.h \
>>           ${DESTDIR}/usr/include/kerberosIV
>> 
>> Is there some way of changing things so that these 3 include files
>> are installed into ${DESTDIR}/usr/include/kerberosIV first, ...
>
> Replace the beforeinstall: targets with the new includes: target.
> This change should be made for all Makefiles under src/domestic that
> install headers into $DESTDIR/usr/include.

Ah, so you're saying merely replace "beforeinstall:" with "includes:"?
Interesting.  OK, I'll try that.

I just noticed another bug in the above, thinking about this:

>> 	-cd ${.OBJDIR}; cmp -s {kadm,krb,ss}_err.h \

Why the "-cd ${.OBJDIR}"?  There's no *_err.h file in the OBJDIR (especially
if it's .../obj, using "${MAKE} obj"), so why isn't it "-cd ${.CURDIR}"
instead?

	- Greg