xref: /original-bsd/old/mkhosts/Makefile (revision 68b04962)
1#	@(#)Makefile	5.5 (Berkeley) 05/24/90
2
3SRCS=	mkhosts.c
4MAN8=	mkhosts.0
5.PATH:	${.CURDIR}
6
7all: mkhosts ${MAN8}
8
9mkhosts: ${LIBC} mkhosts.c
10	@echo "Mkhosts requires the dbm version of the hostent(3) routines."
11	@echo "If gethosts(3) is not in libc, mkhosts will not be installed."
12	-${CC} -o ${.TARGET} ${CFLAGS} ${.CURDIR}/${.PREFIX}.c || \
13	    cd ${.CURDIR} && ${MAKE} clean
14
15clean:
16	rm -f core mkhosts mkhosts.o
17
18cleandir: clean
19	rm -f ${MAN8} tags .depend
20
21depend: ${SRCS}
22	mkdep -p ${CFLAGS} ${.ALLSRC}
23
24install: maninstall
25	-if [ -f mkhosts ]; then \
26	    install ${STRIP} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
27		mkhosts ${DESTDIR}${BINDIR}; \
28	else \
29		exit 0; \
30	fi
31
32lint: ${SRCS}
33	cd ${.CURDIR}; lint ${CFLAGS} ${LINTFLAGS} ${SRCS}
34
35tags: ${SRCS}
36	cd ${.CURDIR}; ctags ${SRCS}
37
38.include <bsd.prog.mk>
39