Commit | Line | Data |
---|---|---|
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 | # |
19 | CFLAGS= -O | |
20 | LIBC= /lib/libc.a | |
21 | ASRCS= apropos.c | |
6e4ebe64 | 22 | MSRCS= man.c |
6e4ebe64 KB |
23 | |
24 | all: man apropos | |
25 | ||
52683ed6 KB |
26 | apropos: ${LIBC} |
27 | ${CC} -o $@ ${CFLAGS} ${ASRCS} | |
6e4ebe64 | 28 | |
52683ed6 KB |
29 | man: ${LIBC} |
30 | ${CC} -o $@ ${CFLAGS} ${MSRCS} | |
6e4ebe64 KB |
31 | |
32 | clean: FRC | |
52683ed6 | 33 | rm -f core apropos man |
6e4ebe64 KB |
34 | |
35 | depend: FRC | |
52683ed6 | 36 | mkdep -p ${CFLAGS} ${ASRCS} ${MSRCS} |
6e4ebe64 KB |
37 | |
38 | install: 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 | |
44 | lint: FRC | |
45 | lint ${CFLAGS} ${ASRCS} | |
46 | lint ${CFLAGS} ${MSRCS} | |
47 | ||
48 | tags: FRC | |
49 | ctags ${ASRCS} | |
50 | ctags ${MSRCS} | |
51 | sort -o tags tags | |
52 | ||
53 | FRC: | |
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 |
58 | apropos: apropos.c /usr/include/sys/param.h /usr/include/sys/types.h |
59 | apropos: /usr/include/signal.h /usr/include/machine/trap.h | |
60 | apropos: /usr/include/machine/machparam.h /usr/include/machine/endian.h | |
61 | apropos: /usr/include/stdio.h /usr/include/ctype.h | |
62 | man: man.c /usr/include/sys/param.h /usr/include/sys/types.h | |
63 | man: /usr/include/signal.h /usr/include/machine/trap.h | |
64 | man: /usr/include/machine/machparam.h /usr/include/machine/endian.h | |
65 | man: /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 |