Allow ``make BINDIR=/foo/games'' to work.

This commit is contained in:
David E. O'Brien 1998-10-18 09:35:17 +00:00
parent f62b74a04f
commit 7b81086b13
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=40505

View File

@ -1,5 +1,5 @@
# from: @(#)bsd.prog.mk 5.26 (Berkeley) 6/25/91
# $Id: bsd.prog.mk,v 1.77 1998/08/30 20:33:27 jb Exp $
# $Id: bsd.prog.mk,v 1.78 1998/09/07 05:55:02 jb Exp $
.if !target(__initialized__)
__initialized__:
@ -95,7 +95,7 @@ realinstall: beforeinstall
${INSTALLFLAGS} ${PROG} ${DESTDIR}${BINDIR}
.endif
.if defined(HIDEGAME)
(cd ${DESTDIR}/usr/games; rm -f ${PROG}; ln -s dm ${PROG}; \
(cd ${DESTDIR}/${GBINDIR}; rm -f ${PROG}; ln -s dm ${PROG}; \
chown games:bin ${PROG})
.endif
.if defined(LINKS) && !empty(LINKS)