better error messages when user's editor doesn't exist
[unix-history] / usr / src / usr.bin / chpass / Makefile
CommitLineData
8333ddd8
KB
1#
2# Copyright (c) 1988 The Regents of the University of California.
3# All rights reserved.
4#
5# Redistribution and use in source and binary forms are permitted
6# provided that the above copyright notice and this paragraph are
7# duplicated in all such forms and that any documentation,
8# advertising materials, and other materials related to such
9# distribution and use acknowledge that the software was developed
10# by the University of California, Berkeley. The name of the
11# University may not be used to endorse or promote products derived
12# from this software without specific prior written permission.
13# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
14# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
15# WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
16#
435e8dff 17# @(#)Makefile 5.2 (Berkeley) %G%
8333ddd8 18#
435e8dff 19CFLAGS= -O
8333ddd8
KB
20LIBC= /lib/libc.a
21SRCS= chpass.c field.c util.c
22OBJS= chpass.o field.o util.o
23MAN= chpass.0
24
25all: chpass
26
27chpass: ${LIBC} ${OBJS}
28 ${CC} ${CFLAGS} -o $@ ${OBJS}
29
30clean:
31 rm -f ${OBJS} core chpass
32
33cleandir: clean
34 rm -f ${MAN} tags .depend
35
36depend: ${SRCS}
37 mkdep ${CFLAGS} ${SRCS}
38
39install: ${MAN}
435e8dff 40 install -s -o root -g bin -m 4755 chpass ${DESTDIR}/usr/bin
8333ddd8 41 install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1
435e8dff
KB
42 rm -f ${DESTDIR}/usr/bin/chfn; ln ${DESTDIR}/usr/bin/chpass \
43 ${DESTDIR}/usr/bin/chfn
44 rm -f ${DESTDIR}/usr/bin/chsh; ln ${DESTDIR}/usr/bin/chpass \
45 ${DESTDIR}/usr/bin/chsh
8333ddd8
KB
46 rm -f ${DESTDIR}/usr/man/cat1/chfn.0
47 rm -f ${DESTDIR}/usr/man/cat1/chsh.0
48 ln ${DESTDIR}/usr/man/cat1/chpass.0 ${DESTDIR}/usr/man/cat1/chfn.0
49 ln ${DESTDIR}/usr/man/cat1/chpass.0 ${DESTDIR}/usr/man/cat1/chsh.0
50
51lint: ${SRCS}
52 lint ${CFLAGS} ${SRCS}
53
54tags: ${SRCS}
55 ctags ${SRCS}