diff options
author | Bill Paul <wpaul@FreeBSD.org> | 1995-02-14 15:38:13 +0000 |
---|---|---|
committer | Bill Paul <wpaul@FreeBSD.org> | 1995-02-14 15:38:13 +0000 |
commit | 01ed1859590746fd0af164e40e9b49f7e7ef61b1 (patch) | |
tree | bb9f38e3b3bbd93df6a6729fdfddd5d4ae4f9981 /usr.bin/passwd | |
parent | e316b1a9de9048ada7f03782c26bb50c0ee33544 (diff) | |
download | src-01ed1859590746fd0af164e40e9b49f7e7ef61b1.tar.gz src-01ed1859590746fd0af164e40e9b49f7e7ef61b1.zip |
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.)
Notes
Notes:
svn path=/head/; revision=6376
Diffstat (limited to 'usr.bin/passwd')
-rw-r--r-- | usr.bin/passwd/Makefile | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/usr.bin/passwd/Makefile b/usr.bin/passwd/Makefile index f9d929abf136..3b2bba282f20 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 <bsd.prog.mk> |