blob: 9ea0d471644fa82803937f1ff5484d7d6468e09b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
# $OpenBSD: Makefile,v 1.12 2015/11/15 07:12:50 deraadt Exp $
PROG= more
CFLAGS+= -I. -I${.CURDIR}/
SRCS= more.c tputs.c termcap.c tgoto.c
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>
|