summaryrefslogtreecommitdiff
path: root/usr.bin/infocmp/Makefile
blob: bda61701d75c42205f0ea76b3871dae7dfdb5e7c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#	$OpenBSD: Makefile,v 1.5 2019/12/21 21:40:01 espie Exp $

PROG=	infocmp
SRCS=	infocmp.c dump_entry.c
DPADD=	${LIBCURSES}
LDADD=	-lcurses
CURSES= ${.CURDIR}/../../lib/libcurses
TIC= ${.CURDIR}/../tic
CFLAGS+= -I${CURSES} -I${TIC} -I${.CURDIR} -I.
CLEANFILES+= termsort.c infocmp.1
.PATH:  ${TIC}

dump_entry.o: termsort.c

termsort.c: ${TIC}/MKtermsort.sh
	sh ${TIC}/MKtermsort.sh awk ${CURSES}/Caps > ${.TARGET}

infocmp.1: infocmp.1tbl
	cp ${.ALLSRC} ${.TARGET}

.include <bsd.prog.mk>