xref: /original-bsd/usr.bin/man/Makefile (revision 1a56dd2c)
1#
2# Copyright (c) 1987 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 this notice is preserved and that due credit is given
7# to the University of California at Berkeley. The name of the University
8# may not be used to endorse or promote products derived from this
9# software without specific prior written permission. This software
10# is provided ``as is'' without express or implied warranty.
11#
12#	@(#)Makefile	5.4 (Berkeley) 01/15/88
13#
14CFLAGS=	-O
15LIBC=	/lib/libc.a
16ASRCS=	apropos.c
17MSRCS=	man.c
18
19all: man apropos
20
21apropos: ${LIBC}
22	${CC} -o $@ ${CFLAGS} ${ASRCS}
23
24man: ${LIBC}
25	${CC} -o $@ ${CFLAGS} ${MSRCS}
26
27clean: FRC
28	rm -f core apropos man
29
30depend: FRC
31	mkdep -p ${CFLAGS} ${ASRCS} ${MSRCS}
32
33install: FRC
34	rm -f ${DESTDIR}/usr/ucb/whatis ${DESTDIR}/usr/ucb/apropos
35	install -s -o bin -g bin -m 755 apropos ${DESTDIR}/usr/ucb/apropos
36	install -s -o bin -g bin -m 755 man ${DESTDIR}/usr/ucb/man
37	ln ${DESTDIR}/usr/ucb/apropos ${DESTDIR}/usr/ucb/whatis
38
39lint: FRC
40	lint ${CFLAGS} ${ASRCS}
41	lint ${CFLAGS} ${MSRCS}
42
43tags: FRC
44	ctags ${ASRCS}
45	ctags ${MSRCS}
46	sort -o tags tags
47
48FRC:
49
50# DO NOT DELETE THIS LINE -- mkdep uses it.
51# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
52
53apropos: apropos.c /usr/include/sys/param.h /usr/include/sys/types.h
54apropos: /usr/include/signal.h /usr/include/machine/trap.h
55apropos: /usr/include/machine/machparam.h /usr/include/machine/endian.h
56apropos: /usr/include/stdio.h /usr/include/ctype.h
57man: man.c /usr/include/sys/param.h /usr/include/sys/types.h
58man: /usr/include/signal.h /usr/include/machine/trap.h
59man: /usr/include/machine/machparam.h /usr/include/machine/endian.h
60man: /usr/include/sys/file.h /usr/include/stdio.h /usr/include/ctype.h
61
62# IF YOU PUT ANYTHING HERE IT WILL GO AWAY
63