From 48fbc42f93ea0913634f94d815a8937248317012 Mon Sep 17 00:00:00 2001 From: Ying Wang Date: Wed, 26 Feb 2014 11:55:38 -0800 Subject: [PATCH] Conditionally include the 'samplecode' rules. Not sure goal 'samplecode' is still used by anybody these days. Change-Id: I808a021a6e4be6a97c4b5c256b94374c1b3dae47 --- core/main.mk | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/main.mk b/core/main.mk index d568f8a3b..2399d2e7c 100644 --- a/core/main.mk +++ b/core/main.mk @@ -1004,6 +1004,7 @@ target-native-tests : native-target-tests .PHONY: lintall +ifneq (,$(filter samplecode, $(MAKECMDGOALS))) .PHONY: samplecode sample_MODULES := $(sort $(call get-tagged-modules,samples)) sample_APKS_DEST_PATH := $(TARGET_COMMON_OUT_ROOT)/samples @@ -1017,6 +1018,7 @@ samplecode: $(sample_APKS_COLLECTION) @echo "Collect sample code apks: $^" # remove apks that are not intended to be installed. rm -f $(sample_ADDITIONAL_INSTALLED) +endif # samplecode in $(MAKECMDGOALS) .PHONY: findbugs findbugs: $(INTERNAL_FINDBUGS_HTML_TARGET) $(INTERNAL_FINDBUGS_XML_TARGET)