1995-02-21 03:46:48 +00:00
|
|
|
# From: @(#)Makefile 8.1 (Berkeley) 6/6/93
|
1999-08-28 01:08:13 +00:00
|
|
|
# $FreeBSD$
|
1999-09-03 22:31:21 +00:00
|
|
|
#
|
1994-05-27 12:33:43 +00:00
|
|
|
|
|
|
|
PROG= more
|
1999-09-03 22:31:21 +00:00
|
|
|
CFLAGS+=-I${.CURDIR} -I${.OBJDIR} -DTERMIOS
|
|
|
|
SRCS= ch.c command.c defrc.h help.c input.c line.c linenum.c macro.c main.c \
|
|
|
|
ncommand.c option.c os.c output.c position.c prim.c screen.c signal.c \
|
|
|
|
tags.c ttyin.c
|
1995-02-21 03:46:48 +00:00
|
|
|
DPADD= ${LIBTERMCAP}
|
|
|
|
LDADD= -ltermcap
|
1994-05-27 12:33:43 +00:00
|
|
|
|
1999-09-03 22:31:21 +00:00
|
|
|
CLEANFILES+= defrc.h
|
|
|
|
|
|
|
|
EXAMPDIR= /usr/share/examples/more
|
|
|
|
EXAMPLES= default.morerc less.morerc most.morerc
|
|
|
|
|
|
|
|
defrc.h: default.morerc
|
1999-09-10 07:39:25 +00:00
|
|
|
@echo '/* ${.TARGET:T} auto-generated from ${.ALLSRC:T} */' \
|
1999-09-03 22:31:21 +00:00
|
|
|
> ${.TARGET}
|
1999-09-10 07:39:25 +00:00
|
|
|
@echo '#define DEFRC "\' >> ${.TARGET}
|
1999-09-03 22:31:21 +00:00
|
|
|
sed -e 's/\\/\\\\/g' -e 's/\"/\\\"/g' -e 's/$$/\\n\\/' \
|
|
|
|
< ${.ALLSRC} >> ${.TARGET}
|
1999-09-10 07:39:25 +00:00
|
|
|
@echo \" >> ${.TARGET}
|
1999-09-03 22:31:21 +00:00
|
|
|
|
1994-05-27 12:33:43 +00:00
|
|
|
beforeinstall:
|
1999-09-03 22:31:21 +00:00
|
|
|
${INSTALL} ${COPY} -o ${SHAREOWN} -g ${SHAREGRP} -m ${SHAREMODE} \
|
|
|
|
${.CURDIR}/more.help ${DESTDIR}/usr/share/misc
|
|
|
|
.for xzamp in ${EXAMPLES}
|
|
|
|
${INSTALL} ${COPY} -o ${SHAREOWN} -g ${SHAREGRP} -m ${SHAREMODE} \
|
|
|
|
${.CURDIR}/${xzamp} ${DESTDIR}${EXAMPDIR}/${xzamp}
|
|
|
|
.endfor
|
1994-05-27 12:33:43 +00:00
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|