Sync usage with man page.
[netbsd-mini2440.git] / external / bsd / top / bin / Makefile
blobc33308973135725584f444ccdab851b3e5cc668d
1 # $NetBSD: Makefile,v 1.3 2008/12/13 12:21:50 chris Exp $
3 .include <bsd.own.mk>
5 PROG= top
6 BINDIR= /usr/bin
8 TOPDIR=${.CURDIR}/../dist
9 .PATH: ${TOPDIR} ${TOPDIR}/machine
11 WARNS= 4
13 CPPFLAGS+=-I${.CURDIR} -I${TOPDIR} -I.
14 SRCS= color.c commands.c display.c hash.c screen.c \
15 top.c username.c utils.c version.c m_netbsd.c
16 DPSRCS+=sigdesc.h config.h
18 LDADD+= -ltermcap -lm -lkvm -lutil
19 DPADD+= ${LIBTERMCAP} ${LIBM} ${LIBKVM} ${LIBUTIL}
21 sigdesc.h: ${TOPDIR}/sigconv.awk ${DESTDIR}/usr/include/sys/signal.h
22 ${_MKTARGET_CREATE}
23 ${TOOL_AWK} -f ${TOPDIR}/sigconv.awk \
24 ${DESTDIR}/usr/include/sys/signal.h > ${.TARGET}
25 CLEANFILES+= sigdesc.h top.1 config.h
27 top.1: top.1.in
28 ${TOOL_SED} -e s/@DEFAULT_TOPN@/-1/ \
29 -e s/@DEFAULT_DELAY@/5/ \
30 -e s/@HAVE_GETOPT_LONG@/1/ \
31 -e s/@ENABLE_KILL@/1/ \
32 -e s/@MAN_SUPPLEMENT@// < $? > $@
34 commands.c: sigdesc.h
36 config.h: config.h.in
37 ${TOOL_SED} -e s/@MACHINE@/${MACHINE}/ < $? > $@
39 .include <bsd.prog.mk>