Change TARGET_BUILD_APPS_WITH_BUILD_NUMBER to a product variable

This change allows unbundled app builds to embed the build number in the
version name by defining PRODUCT_BUILD_APPS_WITH_BUILD_NUMBER, so that
APK files from a build can be easily identified.

Ignore-AOSP-First: changes in topics with internal-only projects
Test: manual build
Bug: 340311907
Change-Id: If7feda5eec2bc1e54a90b4adae1bd6da19e3ea45
diff --git a/core/config.mk b/core/config.mk
index 949ea54..4bb9a42 100644
--- a/core/config.mk
+++ b/core/config.mk
@@ -1193,8 +1193,8 @@
 
 APPS_DEFAULT_VERSION_NAME := $(PLATFORM_VERSION)
 
-# Add BUILD_NUMBER to apps if TARGET_BUILD_APPS_WITH_BUILD_NUMBER is defined.
-ifeq ($(TARGET_BUILD_APPS_WITH_BUILD_NUMBER),true)
+# Add BUILD_NUMBER to apps if PRODUCT_BUILD_APPS_WITH_BUILD_NUMBER is defined.
+ifeq ($(PRODUCT_BUILD_APPS_WITH_BUILD_NUMBER),true)
   APPS_DEFAULT_VERSION_NAME := $(PLATFORM_VERSION)-$(BUILD_NUMBER_FROM_FILE)
 endif