From eb86e8c1e8428cfcca9b8b8779e9600fe62dd047 Mon Sep 17 00:00:00 2001 From: wpaul Date: Tue, 14 Feb 1995 15:38:13 +0000 Subject: Changed passwd's Makefile to use the built-in LINKS mechanism to create the symlinks for yppasswd & friends (we still can't use hard links because passwd is installed immutable). This would have been simpler if the LN_FLAGS variable hadn't chosen to wait until now before leaping out of the /usr/share/mk directory and biting me in the ass. (And thus, I was enlightened.) --- usr.bin/passwd/Makefile | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/usr.bin/passwd/Makefile b/usr.bin/passwd/Makefile index f9d929a..3b2bba2 100644 --- a/usr.bin/passwd/Makefile +++ b/usr.bin/passwd/Makefile @@ -1,5 +1,5 @@ # From: @(#)Makefile 8.3 (Berkeley) 4/2/94 -# $Id: Makefile,v 1.9 1995/02/01 23:46:20 wpaul Exp $ +# $Id: Makefile,v 1.10 1995/02/11 18:20:06 ache Exp $ PROG= passwd SRCS= local_passwd.c yp_passwd.c yppasswd_xdr.c passwd.c pw_copy.c pw_util.c @@ -16,6 +16,9 @@ BINMODE=4555 INSTALLFLAGS=-fschg MAN1=passwd.1 yppasswd.1 MLINKS=yppasswd.1 ypchsh.1 yppasswd.1 ypchpass.1 yppasswd.1 ypchfn.1 +LINKS= ${BINDIR}/passwd ${BINDIR}/yppasswd ${BINDIR}/passwd ${BINDIR}/ypchsh \ + ${BINDIR}/passwd ${BINDIR}/ypchfn ${BINDIR}/passwd ${BINDIR}/ypchpass +LN_FLAGS= -s .if exists(${DESTDIR}/usr/lib/libkrb.a) && (defined(MAKE_EBONES)) SRCS+= kpasswd.c @@ -29,12 +32,4 @@ CFLAGS+= -DKERBEROS \ LDADD= -lkadm -lkrb -ldes -lcrypt -lcom_err .endif -afterinstall: symlinks - -symlinks: passwd - ln -sf ${BINDIR}/passwd ${BINDIR}/yppasswd - ln -sf ${BINDIR}/passwd ${BINDIR}/ypchsh - ln -sf ${BINDIR}/passwd ${BINDIR}/ypchfn - ln -sf ${BINDIR}/passwd ${BINDIR}/ypchpass - .include -- cgit v1.1