Bläddra i källkod

makefile: fix last commit

- workaround make not escaping a ')'.
Andrei Pelinescu-Onciul 16 år sedan
förälder
incheckning
ca492cdd50
1 ändrade filer med 3 tillägg och 2 borttagningar
  1. 3 2
      Makefile.defs

+ 3 - 2
Makefile.defs

@@ -284,10 +284,11 @@ MKTAGS=ctags -R .
 
 ifneq (,$(findstring gcc, $(CC_LONGVER)))
 	CC_NAME=gcc
+	RPAREN=)
 	CC_VER:=$(word 1,$(CC)) $(shell $(CC) - --version|head -n 1|\
-				|sed -e 's/([^)]*)//g' \
+				sed  -e 's/([^$(RPAREN)]*)//g' \
 					 -e 's/^.*\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*/\1/'\
-				 	 -e 's/^[^0-9].*\([0-9][0-9]*\.[0-9][0-9]*\).*/\1/')
+					 -e 's/^[^0-9].*\([0-9][0-9]*\.[0-9][0-9]*\).*/\1/')
 #	CC_VER:=$(word 1,$(CC)) $(shell $(CC) - --version|head -n 1|cut -d" " -f 3\
 #				|sed -e 's/^.*\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*/\1/'\
 #				 	 -e 's/^[^0-9].*\([0-9][0-9]*\.[0-9][0-9]*\).*/\1/')