Changed sbin to ${BINDIR} so the right things would happen if ../Makefile.inc
authorRod Grimes <rgrimes@FreeBSD.org>
Tue, 3 Aug 1993 08:32:50 +0000 (08:32 +0000)
committerRod Grimes <rgrimes@FreeBSD.org>
Tue, 3 Aug 1993 08:32:50 +0000 (08:32 +0000)
was ever changed.  Added - to ln command so that if $BINDIR/init does not
exist the error is ignored (Happens during a cd src/etc; make distribution,
when building new releases)

sbin/init/Makefile

index a0d55f2..4e85ee8 100644 (file)
@@ -7,7 +7,7 @@ NOMAN=noman
 LDFLAGS=
 
 beforeinstall:
 LDFLAGS=
 
 beforeinstall:
-       rm -f ${DESTDIR}/sbin/init.old
-       ln ${DESTDIR}/sbin/init ${DESTDIR}/sbin/init.old
+       rm -f ${DESTDIR}${BINDIR}/init.old
+       - ln ${DESTDIR}${BINDIR}/init ${DESTDIR}${BINDIR}/init.old
 
 .include <bsd.prog.mk>
 
 .include <bsd.prog.mk>