summaryrefslogtreecommitdiffstats
path: root/utils/MTP
diff options
context:
space:
mode:
authorNicolas Pennequin <nicolas.pennequin@free.fr>2009-02-18 14:50:46 +0000
committerNicolas Pennequin <nicolas.pennequin@free.fr>2009-02-18 14:50:46 +0000
commit6a3779b5431cccbd1af822e7362c7955ee90d4d7 (patch)
tree84b3322731bc835d49889ddb7cbfbf36f0aa33a7 /utils/MTP
parent29b1156d864d793c8ba7bc98d71496ad9de42452 (diff)
downloadrockbox-6a3779b5431cccbd1af822e7362c7955ee90d4d7.tar.gz
rockbox-6a3779b5431cccbd1af822e7362c7955ee90d4d7.tar.bz2
rockbox-6a3779b5431cccbd1af822e7362c7955ee90d4d7.zip
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
Diffstat (limited to 'utils/MTP')
-rw-r--r--utils/MTP/Makefile4
1 files changed, 2 insertions, 2 deletions
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 <libmtp.h>\nlibmtp version: LIBMTP_VERSION' | \
+EXTRA_CFLAGS = $(shell printf \
+ '\#include <libmtp.h>\nlibmtp version: LIBMTP_VERSION\n' | \
gcc -E -P - -o - | grep -q '^libmtp version: 0\.2' && echo '-DOLDMTP')
all: $(OUTPUT)