aboutsummaryrefslogtreecommitdiff
path: root/gnu/usr.bin/grep/Makefile
diff options
context:
space:
mode:
authorKyle Evans <kevans@FreeBSD.org>2020-12-22 21:38:09 +0000
committerKyle Evans <kevans@FreeBSD.org>2020-12-25 21:16:33 +0000
commit47d1ad2413da619b3b435f6f181483fb66d5fa8d (patch)
tree02b92e968ae1a3d0ea4755fdd2e934883b1f5500 /gnu/usr.bin/grep/Makefile
parentd1c965f1436aae22127485370332555ec01b3a23 (diff)
gnu: remove gnugrep and libgnuregex
Differential Revision: https://reviews.freebsd.org/D27732
Diffstat (limited to 'gnu/usr.bin/grep/Makefile')
-rw-r--r--gnu/usr.bin/grep/Makefile58
1 files changed, 0 insertions, 58 deletions
diff --git a/gnu/usr.bin/grep/Makefile b/gnu/usr.bin/grep/Makefile
deleted file mode 100644
index 98c8cec401f0..000000000000
--- a/gnu/usr.bin/grep/Makefile
+++ /dev/null
@@ -1,58 +0,0 @@
-# $FreeBSD$
-
-.include <src.opts.mk>
-
-GREP_LIBZ=YES
-
-.if ${MK_BSD_GREP} != "yes"
-PROG= grep
-.else
-PROG= gnugrep
-.endif
-SRCS= closeout.c dfa.c error.c exclude.c grep.c grepmat.c hard-locale.c \
- isdir.c kwset.c obstack.c quotearg.c savedir.c search.c xmalloc.c \
- xstrtoumax.c
-CLEANFILES+= gnugrep.1
-
-WARNS?= 0
-
-CFLAGS+=-I${.CURDIR} -I${SYSROOT:U${DESTDIR}}/usr/include/gnu -DHAVE_CONFIG_H
-
-.if ${MK_BSD_GREP} != "yes"
-LINKS+= ${BINDIR}/grep ${BINDIR}/egrep \
- ${BINDIR}/grep ${BINDIR}/fgrep
-MLINKS= grep.1 egrep.1 grep.1 fgrep.1
-.endif
-
-LIBADD= gnuregex bz2
-
-.if defined(GREP_LIBZ) && !empty(GREP_LIBZ)
-LIBADD+= z
-CFLAGS+=-DHAVE_LIBZ=1
-.endif
-
-gnugrep.1: grep.1
- ${CP} ${.ALLSRC} ${.TARGET}
-
-check: all
- @failed=0; total=0; \
- for tst in ${TESTS}; do \
- total=$$(($$total+1)); \
- if GREP=${.OBJDIR}/${PROG} srcdir=${.CURDIR}/tests \
- ${.CURDIR}/tests/$$tst; then \
- echo "PASS: $$tst"; \
- else \
- failed=$$(($$failed+1)); \
- echo "FAIL: $$tst"; \
- fi; \
- done; \
- if [ "$$failed" -eq 0 ]; then \
- echo "All $$total tests passed"; \
- else \
- echo "$$failed of $$total tests failed"; \
- fi
-
-TESTS= warning.sh khadafy.sh spencer1.sh bre.sh ere.sh status.sh empty.sh \
- options.sh backref.sh file.sh
-
-.include <bsd.prog.mk>