summaryrefslogtreecommitdiff
path: root/distrib/special/more/Makefile
blob: 644900b2c9faaad26ba6cf7970cf95c6195dfa58 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#	$OpenBSD: Makefile,v 1.9 2009/04/19 17:07:04 martynas Exp $

PROG=	more
MAN=
CFLAGS+= -D_USE_OLD_CURSES_ -I. -Os
DPADD=	${LIBOCURSES}
LDADD=	-locurses
CLEANFILES+=morehelp.h

beforedepend: morehelp.h

morehelp.h: ${.CURDIR}/more.help
	echo -n 'const char *more_help = "' > morehelp.h
	sed -e 's/[\\"]/\\&/g' -e 's/$$/\\n\\/' ${.CURDIR}/more.help >> morehelp.h
	echo '";' >> morehelp.h

more.o: morehelp.h

.include <bsd.prog.mk>