# From: @(#)Makefile 8.1 (Berkeley) 6/6/93
# $FreeBSD: src/usr.bin/more/Makefile,v 1.10 2000/05/12 03:52:03 hoek Exp $
#
PROG= more
CFLAGS+=-I${.CURDIR} -I${.OBJDIR} -DTERMIOS
SRCS= ch.c command.c help.c input.c line.c linenum.c macro.c main.c marks.c \
ncommand.c option.c os.c output.c position.c prim.c screen.c search.c \
signal.c tags.c ttyin.c defrc.h
DPADD= ${LIBTERMCAP}
LDADD= -ltermcap
CLEANFILES+= defrc.h
EXAMPDIR= /usr/share/examples/more
EXAMPLES= default.morerc less.morerc most.morerc
defrc.h: default.morerc
@echo '/* ${.TARGET:T} auto-generated from ${.ALLSRC:T} */' \
> ${.TARGET}
@echo '#define DEFRC "\' >> ${.TARGET}
sed -e 's/\\/\\\\/g' -e 's/\"/\\\"/g' -e 's/$$/\\n\\/' \
< ${.ALLSRC} >> ${.TARGET}
@echo \" >> ${.TARGET}
beforeinstall:
${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
.include <bsd.prog.mk>
syntax highlighted by Code2HTML, v. 0.9.1