summaryrefslogtreecommitdiffstats
path: root/core/package.mk
diff options
context:
space:
mode:
authorYing Wang <wangying@google.com>2012-06-19 09:23:38 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-06-19 09:23:38 -0700
commit3caa951610c8d34f418d740c92efe56df1caceba (patch)
tree133d9571df471bed7dec2826be90359ea132200e /core/package.mk
parent9d87a4b9c3d73cb0b51c68c13c8886017dca3446 (diff)
parent0d570a71630d70a80e838f068d413f1c1a5f55af (diff)
downloadbuild-3caa951610c8d34f418d740c92efe56df1caceba.zip
build-3caa951610c8d34f418d740c92efe56df1caceba.tar.gz
build-3caa951610c8d34f418d740c92efe56df1caceba.tar.bz2
Merge "lint support."
Diffstat (limited to 'core/package.mk')
-rw-r--r--core/package.mk10
1 files changed, 10 insertions, 0 deletions
diff --git a/core/package.mk b/core/package.mk
index c689031..3f911fb 100644
--- a/core/package.mk
+++ b/core/package.mk
@@ -407,4 +407,14 @@ endif
PACKAGES := $(PACKAGES) $(LOCAL_PACKAGE_NAME)
+# Lint phony targets
+.PHONY: lint-$(LOCAL_PACKAGE_NAME)
+lint-$(LOCAL_PACKAGE_NAME): PRIVATE_PATH := $(LOCAL_PATH)
+lint-$(LOCAL_PACKAGE_NAME): PRIVATE_LINT_FLAGS := $(LOCAL_LINT_FLAGS)
+lint-$(LOCAL_PACKAGE_NAME) :
+ @echo lint $(PRIVATE_PATH)
+ $(LINT) $(PRIVATE_LINT_FLAGS) $(PRIVATE_PATH)
+
+lintall : lint-$(LOCAL_PACKAGE_NAME)
+
endif # skip_definition