]> git.donarmstrong.com Git - qmk_firmware.git/commitdiff
correctly test to see if awk exists
authorJack Humbert <jack.humb@gmail.com>
Thu, 16 Jun 2016 19:48:54 +0000 (15:48 -0400)
committerJack Humbert <jack.humb@gmail.com>
Thu, 16 Jun 2016 19:48:54 +0000 (15:48 -0400)
tmk_core/rules.mk

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