Annotation of src/usr.bin/strip/Makefile, Revision 1.4
1.4 ! deraadt 1: # $OpenBSD: Makefile,v 1.3 1996/12/08 14:32:35 downsj Exp $
1.1 deraadt 2:
3: PROG= strip
1.4 ! deraadt 4: .if ${HOSTCC} != ${CC}
! 5: STRIP=./hoststrip
! 6:
! 7: realinstall:: hoststrip
! 8:
! 9: hoststrip: strip.c
! 10: ${HOSTCC} strip.c -o hoststrip
! 11: .else
! 12: STRIP=./strip
! 13: .endif
1.1 deraadt 14:
15: realinstall:
1.3 downsj 16: ${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 600 strip \
1.1 deraadt 17: ${DESTDIR}${BINDIR}
1.4 ! deraadt 18: ${STRIP} ${DESTDIR}${BINDIR}/strip
1.1 deraadt 19: chmod ${BINMODE} ${DESTDIR}${BINDIR}/strip
1.4 ! deraadt 20: -if [ "${COPY}" = "" ]; then rm -f ${STRIP}; fi
1.1 deraadt 21:
22: .include <bsd.prog.mk>