diff --git a/make/PreInit.gmk b/make/PreInit.gmk index b70e15a3b8c..a01971e845d 100644 --- a/make/PreInit.gmk +++ b/make/PreInit.gmk @@ -48,6 +48,10 @@ include $(TOPDIR)/make/common/LogUtils.gmk # a configuration. This will define ALL_GLOBAL_TARGETS. include $(TOPDIR)/make/Global.gmk +# Targets provided by Init.gmk. +ALL_INIT_TARGETS := print-modules print-targets print-configuration \ + print-tests reconfigure pre-compare-build post-compare-build + # CALLED_TARGETS is the list of targets that the user provided, # or "default" if unspecified. CALLED_TARGETS := $(if $(MAKECMDGOALS), $(MAKECMDGOALS), default) @@ -93,10 +97,6 @@ ifneq ($(SKIP_SPEC), true) # This will setup ALL_MAIN_TARGETS. $(eval $(call DefineMainTargets, FORCE, $(firstword $(SPECS)))) - # Targets provided by Init.gmk. - ALL_INIT_TARGETS := print-modules print-targets print-configuration \ - print-tests reconfigure pre-compare-build post-compare-build - # Separate called targets depending on type. INIT_TARGETS := $(filter $(ALL_INIT_TARGETS), $(CALLED_SPEC_TARGETS)) MAIN_TARGETS := $(filter $(ALL_MAIN_TARGETS), $(CALLED_SPEC_TARGETS))