aboutsummaryrefslogtreecommitdiffstats
path: root/testcase/var_with_space.mk
diff options
context:
space:
mode:
Diffstat (limited to 'testcase/var_with_space.mk')
-rw-r--r--testcase/var_with_space.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/testcase/var_with_space.mk b/testcase/var_with_space.mk
index 6f74816..1bfb782 100644
--- a/testcase/var_with_space.mk
+++ b/testcase/var_with_space.mk
@@ -1,4 +1,4 @@
-MAKEVER:=$(shell make --version | ruby -n0e 'puts $$_[/Make (\d)/,1]')
+MAKEVER:=$(shell make --version | grep "Make [0-9]" | sed -E 's/.*Make ([0-9]).*/\1/')
ifeq ($(MAKEVER),4)
# A variable name with space is invalid on GNU make 4.