1 # $FreeBSD: src/gnu/usr.bin/grep/Makefile,v 1.23 2000/01/18 09:52:00 ru Exp $
2 # $DragonFly: src/gnu/usr.bin/grep/Makefile,v 1.2 2003/06/17 04:25:45 dillon Exp $
7 SRCS= dfa.c getopt.c getopt1.c grep.c kwset.c obstack.c savedir.c search.c \
10 CFLAGS+=-I${.CURDIR} -DHAVE_CONFIG_H
12 LINKS+= ${BINDIR}/grep ${BINDIR}/egrep \
13 ${BINDIR}/grep ${BINDIR}/fgrep
14 MLINKS= grep.1 egrep.1 grep.1 fgrep.1
16 DPADD+= ${LIBGNUREGEX}
19 .if defined(GREP_LIBZ) && !empty(GREP_LIBZ)
23 LINKS+= ${BINDIR}/grep ${BINDIR}/zgrep \
24 ${BINDIR}/grep ${BINDIR}/zegrep \
25 ${BINDIR}/grep ${BINDIR}/zfgrep
26 MLINKS+=grep.1 zgrep.1 grep.1 zegrep.1 grep.1 zfgrep.1
33 for tst in ${TESTS}; do \
34 total=$$(($$total+1)); \
35 if GREP=${.OBJDIR}/${PROG} srcdir=${.CURDIR}/tests \
36 ${.CURDIR}/tests/$$tst; then \
39 failed=$$(($$failed+1)); \
43 if [ "$$failed" -eq 0 ]; then \
44 echo "All $$total tests passed"; \
46 echo "$$failed of $$total tests failed"; \
49 TESTS= warning.sh khadafy.sh spencer1.sh bre.sh ere.sh status.sh empty.sh \
52 .include <bsd.prog.mk>