From 6a3779b5431cccbd1af822e7362c7955ee90d4d7 Mon Sep 17 00:00:00 2001 From: Nicolas Pennequin Date: Wed, 18 Feb 2009 14:50:46 +0000 Subject: Fix old libmtp detection on Ubuntu systems that don't support echo -e. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20039 a1c6a512-1295-4272-9138-f99709370657 --- utils/MTP/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'utils/MTP') diff --git a/utils/MTP/Makefile b/utils/MTP/Makefile index 8439f8b72a..9566a19f56 100644 --- a/utils/MTP/Makefile +++ b/utils/MTP/Makefile @@ -1,8 +1,8 @@ CFLAGS = -Wall LIBS = -lmtp OUTPUT = sendfirm -EXTRA_CFLAGS = $(shell echo -e \ - '\#include \nlibmtp version: LIBMTP_VERSION' | \ +EXTRA_CFLAGS = $(shell printf \ + '\#include \nlibmtp version: LIBMTP_VERSION\n' | \ gcc -E -P - -o - | grep -q '^libmtp version: 0\.2' && echo '-DOLDMTP') all: $(OUTPUT) -- cgit v1.2.3