rationalized handling of child processes, cleaned up mail1 some more
[unix-history] / usr / src / usr.bin / man / Makefile
CommitLineData
6e4ebe64
KB
1#
2# Copyright (c) 1987 Regents of the University of California.
ea9afd82 3# All rights reserved.
6e4ebe64 4#
ea9afd82 5# Redistribution and use in source and binary forms are permitted
b36fc510
KB
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.
ea9afd82 16#
b36fc510 17# @(#)Makefile 5.5 (Berkeley) %G%
6e4ebe64
KB
18#
19CFLAGS= -O
20LIBC= /lib/libc.a
21ASRCS= apropos.c
6e4ebe64 22MSRCS= man.c
6e4ebe64
KB
23
24all: man apropos
25
52683ed6
KB
26apropos: ${LIBC}
27 ${CC} -o $@ ${CFLAGS} ${ASRCS}
6e4ebe64 28
52683ed6
KB
29man: ${LIBC}
30 ${CC} -o $@ ${CFLAGS} ${MSRCS}
6e4ebe64
KB
31
32clean: FRC
52683ed6 33 rm -f core apropos man
6e4ebe64
KB
34
35depend: FRC
52683ed6 36 mkdep -p ${CFLAGS} ${ASRCS} ${MSRCS}
6e4ebe64
KB
37
38install: FRC
c8eb06d4 39 rm -f ${DESTDIR}/usr/ucb/whatis ${DESTDIR}/usr/ucb/apropos
6e4ebe64
KB
40 install -s -o bin -g bin -m 755 apropos ${DESTDIR}/usr/ucb/apropos
41 install -s -o bin -g bin -m 755 man ${DESTDIR}/usr/ucb/man
c8eb06d4 42 ln ${DESTDIR}/usr/ucb/apropos ${DESTDIR}/usr/ucb/whatis
6e4ebe64
KB
43
44lint: FRC
45 lint ${CFLAGS} ${ASRCS}
46 lint ${CFLAGS} ${MSRCS}
47
48tags: FRC
49 ctags ${ASRCS}
50 ctags ${MSRCS}
51 sort -o tags tags
52
53FRC:
54
55# DO NOT DELETE THIS LINE -- mkdep uses it.
56# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
57
52683ed6
KB
58apropos: apropos.c /usr/include/sys/param.h /usr/include/sys/types.h
59apropos: /usr/include/signal.h /usr/include/machine/trap.h
60apropos: /usr/include/machine/machparam.h /usr/include/machine/endian.h
61apropos: /usr/include/stdio.h /usr/include/ctype.h
62man: man.c /usr/include/sys/param.h /usr/include/sys/types.h
63man: /usr/include/signal.h /usr/include/machine/trap.h
64man: /usr/include/machine/machparam.h /usr/include/machine/endian.h
65man: /usr/include/sys/file.h /usr/include/stdio.h /usr/include/ctype.h
6e4ebe64
KB
66
67# IF YOU PUT ANYTHING HERE IT WILL GO AWAY