]> git.cameronkatri.com Git - pw-darwin.git/blob - chpass/Makefile
Typo fix.
[pw-darwin.git] / chpass / Makefile
1 # @(#)Makefile 8.2 (Berkeley) 4/2/94
2 # $FreeBSD$
3
4 .PATH: ${.CURDIR}/../../usr.sbin/pwd_mkdb ${.CURDIR}/../../lib/libc/gen
5
6 PROG= chpass
7 SRCS= chpass.c edit.c field.c pw_scan.c table.c util.c
8 BINOWN= root
9 BINMODE=4555
10 WARNS?= 5
11 CFLAGS+=-DYP
12 #Some people need this, uncomment to activate
13 #CFLAGS+=-DRESTRICT_FULLNAME_CHANGE
14 CFLAGS+=-I${.CURDIR}/../../usr.sbin/pwd_mkdb -I${.CURDIR}/../../lib/libc/gen -I.
15
16 DPADD= ${LIBCRYPT} ${LIBUTIL} ${LIBYPCLNT}
17 LDADD= -lcrypt -lutil -lypclnt
18
19 LINKS= ${BINDIR}/chpass ${BINDIR}/chfn
20 LINKS+= ${BINDIR}/chpass ${BINDIR}/chsh
21 LINKS+= ${BINDIR}/chpass ${BINDIR}/ypchpass
22 LINKS+= ${BINDIR}/chpass ${BINDIR}/ypchfn
23 LINKS+= ${BINDIR}/chpass ${BINDIR}/ypchsh
24
25 MLINKS= chpass.1 chfn.1 chpass.1 chsh.1
26 MLINKS+= chpass.1 ypchpass.1 chpass.1 ypchfn.1 chpass.1 ypchsh.1
27
28 beforeinstall:
29 .for i in chpass chfn chsh ypchpass ypchfn ypchsh
30 [ ! -e ${DESTDIR}${BINDIR}/$i ] || \
31 chflags noschg ${DESTDIR}${BINDIR}/$i || true
32 .endfor
33
34 afterinstall:
35 -chflags schg ${DESTDIR}${BINDIR}/chpass
36
37 .include <bsd.prog.mk>