Commit | Line | Data |
---|---|---|
1cd47ec3 KB |
1 | # |
2 | # Copyright (c) 1988 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, advertising | |
8 | # materials, and other materials related to such redistribution and | |
9 | # use acknowledge that the software was developed by the University | |
10 | # of California, Berkeley. The name of the University may not be | |
11 | # used to endorse or promote products derived from this software | |
12 | # without specific prior written permission. THIS SOFTWARE IS PROVIDED | |
13 | # ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, | |
14 | # WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND | |
15 | # FITNESS FOR A PARTICULAR PURPOSE. | |
16 | # | |
7abf8d65 | 17 | # @(#)Makefile 5.3 (Berkeley) %G% |
1cd47ec3 KB |
18 | # |
19 | ||
20 | CFLAGS= -O | |
21 | LIBC= /lib/libc.a | |
22 | SRCS= mkhosts.c | |
23 | OBJS= | |
24 | MAN= mkhosts.0 | |
25 | ||
26 | all: mkhosts | |
27 | ||
28 | mkhosts: ${LIBC} | |
29 | @echo "Mkhosts only works with the dbm version of the hostent routines." | |
30 | @echo "If gethosts() is not in libc, mkhosts isn't installed." | |
31 | -${CC} -o $@ ${CFLAGS} $@.c || make clean | |
32 | ||
33 | clean: | |
34 | rm -f ${OBJS} core mkhosts | |
35 | ||
36 | cleandir: clean | |
37 | rm -f ${MAN} tags .depend | |
38 | ||
39 | depend: ${SRCS} | |
40 | mkdep -p ${CFLAGS} ${SRCS} | |
41 | ||
42 | install: ${MAN} | |
cf696539 KB |
43 | install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8; |
44 | -if [ -f mkhosts ]; then \ | |
7abf8d65 | 45 | install -s -o bin -g bin -m 755 mkhosts ${DESTDIR}/usr/sbin; fi |
1cd47ec3 KB |
46 | |
47 | lint: ${SRCS} | |
48 | lint ${CFLAGS} ${SRCS} | |
49 | ||
50 | tags: ${SRCS} | |
51 | ctags ${SRCS} |