瀏覽代碼

correctly test to see if awk exists

Jack Humbert 9 年之前
父節點
當前提交
91b469d88f
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      tmk_core/rules.mk

+ 1 - 1
tmk_core/rules.mk

@@ -89,7 +89,7 @@ ifeq ($(COLOR),true)
 	BOLD=\033[1m
 	BOLD=\033[1m
 endif
 endif
 
 
-ifeq ("$(awk /dev/null 2>&1)", "")
+ifneq ($(shell awk --version 2>/dev/null),)
 	AWK=awk
 	AWK=awk
 else
 else
 	AWK=cat && test
 	AWK=cat && test