Instead of rolling our own "install" target, use FILES/FILESDIR and

LINKS to that things like "make install UPDATE=" work properly.
This commit is contained in:
simonb 1999-04-03 16:39:31 +00:00
parent 38ca0e64c8
commit 45c86b888b

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.inc,v 1.2 1999/04/02 12:09:44 tsubai Exp $ # $NetBSD: Makefile.inc,v 1.3 1999/04/03 16:39:31 simonb Exp $
.if !defined(ELFSIZE) .if !defined(ELFSIZE)
ELFSIZE=32 ELFSIZE=32
@ -41,11 +41,10 @@ crtend.o: crtend.c
@${LD} -x -r -o ${.TARGET} ${.TARGET}.o @${LD} -x -r -o ${.TARGET} ${.TARGET}.o
@rm -f ${.TARGET}.o @rm -f ${.TARGET}.o
install: FILES=${OBJS}
${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 444 ${OBJS} \ FILESDIR=/usr/lib
${DESTDIR}/usr/lib
rm -f ${DESTDIR}/usr/lib/crtbeginS.o ${DESTDIR}/usr/lib/crtendS.o LINKS= ${LIBDIR}/crtbegin.o ${LIBDIR}/crtbeginS.o \
ln ${DESTDIR}/usr/lib/crtbegin.o ${DESTDIR}/usr/lib/crtbeginS.o ${LIBDIR}/crtend.o ${LIBDIR}/crtendS.o
ln ${DESTDIR}/usr/lib/crtend.o ${DESTDIR}/usr/lib/crtendS.o
.include <bsd.prog.mk> .include <bsd.prog.mk>