# @(#)Makefile 5.5 (Berkeley) %G%
mkhosts
: ${LIBC} mkhosts.c
@echo
"Mkhosts requires the dbm version of the hostent(3) routines."
@echo
"If gethosts(3) is not in libc, mkhosts will not be installed."
-${CC} -o
${.TARGET
} ${CFLAGS} ${.CURDIR
}/${.PREFIX
}.c || \
cd
${.CURDIR
} && ${MAKE} clean
rm -f core mkhosts mkhosts.o
rm -f
${MAN8} tags .depend
mkdep
-p
${CFLAGS} ${.ALLSRC
}
-if
[ -f mkhosts
]; then \
install ${STRIP} -o
${BINOWN} -g
${BINGRP} -m
${BINMODE} \
mkhosts
${DESTDIR}${BINDIR}; \
cd
${.CURDIR
}; lint
${CFLAGS} ${LINTFLAGS} ${SRCS}
cd
${.CURDIR
}; ctags
${SRCS}