1 # $FreeBSD: src/gnu/usr.bin/grep/Makefile,v 1.23 2000/01/18 09:52:00 ru Exp $
6 SRCS= dfa.c getopt.c getopt1.c grep.c kwset.c obstack.c savedir.c search.c \
9 CFLAGS+=-I${.CURDIR} -DHAVE_CONFIG_H
11 LINKS+= ${BINDIR}/grep ${BINDIR}/egrep \
12 ${BINDIR}/grep ${BINDIR}/fgrep
13 MLINKS= grep.1 egrep.1 grep.1 fgrep.1
15 DPADD+= ${LIBGNUREGEX}
18 .if defined(GREP_LIBZ) && !empty(GREP_LIBZ)
22 LINKS+= ${BINDIR}/grep ${BINDIR}/zgrep \
23 ${BINDIR}/grep ${BINDIR}/zegrep \
24 ${BINDIR}/grep ${BINDIR}/zfgrep
25 MLINKS+=grep.1 zgrep.1 grep.1 zegrep.1 grep.1 zfgrep.1
32 for tst in ${TESTS}; do \
33 total=$$(($$total+1)); \
34 if GREP=${.OBJDIR}/${PROG} srcdir=${.CURDIR}/tests \
35 ${.CURDIR}/tests/$$tst; then \
38 failed=$$(($$failed+1)); \
42 if [ "$$failed" -eq 0 ]; then \
43 echo "All $$total tests passed"; \
45 echo "$$failed of $$total tests failed"; \
48 TESTS= warning.sh khadafy.sh spencer1.sh bre.sh ere.sh status.sh empty.sh \
51 .include <bsd.prog.mk>