From: H. Peter Anvin Date: Mon, 29 Sep 2008 20:50:21 +0000 (-0700) Subject: [makefile] Quote argument to sed containing [] X-Git-Tag: v0.9.5~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e899f100ca15ce0cbc35f74a5daefda290747147;p=thirdparty%2Fipxe.git [makefile] Quote argument to sed containing [] [] are shell metacharacters, and they can get confused by files in the local directory. Signed-off-by: H. Peter Anvin --- diff --git a/src/Makefile b/src/Makefile index 40906a8e2..6c42da6aa 100644 --- a/src/Makefile +++ b/src/Makefile @@ -71,7 +71,7 @@ noargs : blib $(BIN)/NIC $(BIN)/gpxe.dsk $(BIN)/gpxe.iso $(BIN)/gpxe.usb $(BIN)/ # If no architecture is specified in Config or on the command-line, # use that of the build machine. # -ARCH := $(shell uname -m | sed -e s,i[3456789]86,i386,) +ARCH := $(shell uname -m | sed -e 's,i[3456789]86,i386,') # handle x86_64 like i386, but set -m32 option for 32bit code only ifeq ($(ARCH),x86_64)