From 413b4edac32ab0397d0bd3c9f4fd60728a6b9866 Mon Sep 17 00:00:00 2001 From: paltherr Date: Sat, 15 Feb 2003 00:53:00 +0000 Subject: - Simplified example - Replaced REGEXP by REGEX --- support/make/grep.mk | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'support/make/grep.mk') diff --git a/support/make/grep.mk b/support/make/grep.mk index e6a78a61f5..b1a3bd621a 100644 --- a/support/make/grep.mk +++ b/support/make/grep.mk @@ -1,24 +1,24 @@ ############################################################-*-Makefile-*-#### -# GREP - search regular expressions +# GREP - Search Regular Expressions ############################################################################## # $Id$ ############################################################################## # Usage # -# make grep [FLAGS=] REGEXP= [FILES=]" +# make grep [FLAGS=] REGEX= [FILES=]" # ############################################################################## # Examples # # Search for "runtime" in all source files: # -# make grep REGEXP=runtime +# make grep REGEX=runtime # # # Search for "runtime" in the compiler source files: # -# make grep REGEXP=runtime FILES=\$\(COMPILER_SOURCES\) +# make grep REGEX=runtime FILES='$(COMPILER_SOURCES)' # ############################################################################## @@ -27,19 +27,19 @@ GREP_BINARY ?= $(GREP) GREP_FLAGS ?= $(FLAGS) -GREP_REGEXP ?= $(REGEXP) +GREP_REGEX ?= $(REGEX) GREP_FILES ?= $(if $(FILES),$(FILES),$(PROJECT_SOURCES)) ############################################################################## # Rules grep : - @if [ -z '$(GREP_REGEXP)' ]; then \ + @if [ -z '$(GREP_REGEX)' ]; then \ $(ECHO) "Usage:" \ - "$(MAKE) grep [FLAGS=] REGEXP= [FILES=]";\ + "$(MAKE) $@ [FLAGS=] REGEX= [FILES=]";\ exit 1; \ fi - @$(GREP_BINARY) $(GREP_FLAGS) '$(GREP_REGEXP)' $(GREP_FILES) + @$(GREP_BINARY) $(GREP_FLAGS) '$(GREP_REGEX)' $(GREP_FILES) .PHONY : grep -- cgit v1.2.3