freebsd-dev/usr.bin/passwd/Makefile
Bill Paul 7506dfc15e Changed passwd/yppasswd's Makefile to create all symbolic links instead
of hard links: since passwd is installed immutable, an attempt to make
a hard link to it during a 'make install' would fail. I didn't notice
this conflict because my /usr directory is an NFS filesystem mounted from a
SunOS server, so the special file mode flags had no effecti when I tested
everything on my machine. Live and learn.
1995-02-01 05:55:18 +00:00

28 lines
792 B
Makefile

# From: @(#)Makefile 8.3 (Berkeley) 4/2/94
# $Id: Makefile,v 1.6 1995/01/19 21:03:48 wollman Exp $
PROG= passwd
SRCS= local_passwd.c yp_passwd.c yppasswd_xdr.c passwd.c pw_copy.c pw_util.c
LDADD= -lcrypt
.PATH: ${.CURDIR}/../../usr.bin/chpass ${.CURDIR}/../../usr.sbin/vipw \
${.CURDIR}/../rlogin ${.CURDIR}/../../gnu/usr.sbin/yppasswdd
CFLAGS+=-DCRYPT -DYP -I${.CURDIR} -I${.CURDIR}/../../usr.sbin/vipw \
-I${.CURDIR}/../../usr.bin/chpass \
-I${.CURDIR}/../../gnu/usr.sbin/yppasswdd
BINOWN= root
BINMODE=4555
BINDIR= /usr/bin
INSTALLFLAGS=-fschg
afterinstall: symlinks
symlinks: passwd
ln -sf ${BINDIR}/passwd ${BINDIR}/yppasswd
ln -sf ${BINDIR}/passwd ${BINDIR}/ypchsh
ln -sf ${BINDIR}/passwd ${BINDIR}/ypshfn
ln -sf ${BINDIR}/passwd ${BINDIR}/ypchpass
.include <bsd.prog.mk>