Merge "Remove the APP-* goal"
This commit is contained in:
commit
6f8e3da035
|
@ -7,7 +7,7 @@ endif
|
||||||
KATI_OUTPUT_PATTERNS := $(OUT_DIR)/build%.ninja $(OUT_DIR)/ninja%.sh
|
KATI_OUTPUT_PATTERNS := $(OUT_DIR)/build%.ninja $(OUT_DIR)/ninja%.sh
|
||||||
|
|
||||||
# Modifier goals we don't need to pass to Ninja.
|
# Modifier goals we don't need to pass to Ninja.
|
||||||
NINJA_EXCLUDE_GOALS := all APP-% PRODUCT-%
|
NINJA_EXCLUDE_GOALS := all PRODUCT-%
|
||||||
|
|
||||||
# A list of goals which affect parsing of makefiles and we need to pass to Kati.
|
# A list of goals which affect parsing of makefiles and we need to pass to Kati.
|
||||||
PARSE_TIME_MAKE_GOALS := \
|
PARSE_TIME_MAKE_GOALS := \
|
||||||
|
|
|
@ -139,15 +139,7 @@ endif # CALLED_FROM_SETUP
|
||||||
ifeq ($(CALLED_FROM_SETUP),true)
|
ifeq ($(CALLED_FROM_SETUP),true)
|
||||||
unbundled_goals := $(strip $(filter APP-%,$(MAKECMDGOALS)))
|
unbundled_goals := $(strip $(filter APP-%,$(MAKECMDGOALS)))
|
||||||
ifdef unbundled_goals
|
ifdef unbundled_goals
|
||||||
ifneq ($(words $(unbundled_goals)),1)
|
$(error The APP-* goal is no longer supported. Use `TARGET_BUILD_APPS="<app>" m droid` instead)
|
||||||
$(error Only one APP-* goal may be specified; saw "$(unbundled_goals)")
|
|
||||||
endif
|
|
||||||
TARGET_BUILD_APPS := $(strip $(subst -, ,$(patsubst APP-%,%,$(unbundled_goals))))
|
|
||||||
ifneq ($(filter droid,$(MAKECMDGOALS)),)
|
|
||||||
override MAKECMDGOALS := $(patsubst $(unbundled_goals),,$(MAKECMDGOALS))
|
|
||||||
else
|
|
||||||
override MAKECMDGOALS := $(patsubst $(unbundled_goals),droid,$(MAKECMDGOALS))
|
|
||||||
endif
|
|
||||||
endif # unbundled_goals
|
endif # unbundled_goals
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue