Fix the external/strace update-ioctls target.
Change-Id: I508307982b06f50ebe64131524dce712e0805cff
diff --git a/Android.mk b/Android.mk
index 5a86fd5..c7dbce9 100644
--- a/Android.mk
+++ b/Android.mk
@@ -209,7 +209,7 @@
# We don't build ioctlsort unless really necessary, because we don't check
# in the temporary files needed to build it. This tool is only necessary
# when updating strace's list of ioctls.
-ifneq (,$(filter ioctlsort,$(MAKECMDGOALS)))
+ifneq (,$(filter $(TARGET_OUT_EXECUTABLES)/ioctlsort,$(MAKECMDGOALS)))
include $(CLEAR_VARS)
LOCAL_SRC_FILES := linux/ioctlsort.c
LOCAL_CFLAGS += -include asm/types.h -include linux/ashmem.h