OSDN Git Service

Fix for SDK repository.
authorRaphael <raphael@google.com>
Thu, 24 Feb 2011 00:45:57 +0000 (16:45 -0800)
committerRaphael <raphael@google.com>
Thu, 24 Feb 2011 06:34:16 +0000 (22:34 -0800)
Change-Id: Ia1245226c451ed4539a0a0cd51022a3325f4b33b

core/tasks/sdk-addon.mk

index e21fedc..afcda23 100644 (file)
@@ -94,11 +94,16 @@ $(full_target): $(sdk_addon_deps) | $(ACP)
 .PHONY: sdk_addon
 sdk_addon: $(full_target)
 
-# Keep the name of the addon final zip around for sdk_repo.
-# This is used by development/build/tools/sdk_repo.mk.
+ifneq ($(sdk_repo_goal),)
+# If we're building the sdk_repo, keep the name of the addon zip
+# around so that development/build/tools/sdk_repo.mk can dist it
+# at the appropriate location.
 ADDON_SDK_ZIP := $(full_target)
-
+else
+# When not building an sdk_repo, just dist the addon zip file
+# as-is.
 $(call dist-for-goals, sdk_addon, $(full_target))
+endif
 
 else # addon_name
 ifneq ($(filter sdk_addon,$(MAKECMDGOALS)),)