gbuild: Executable.mk: don't build unregistered exes
This commit is contained in:
parent
7608feeb7b
commit
5a0ab1a458
2 changed files with 5 additions and 0 deletions
|
@ -43,6 +43,10 @@ $(call gb_Executable_get_target,%) :
|
|||
$(foreach target,$(AUXTARGETS), && $(call gb_Deliver_deliver,$(dir $<)/$(notdir $(target)),$(target))))
|
||||
|
||||
define gb_Executable_Executable
|
||||
ifeq (,$$(findstring $(1),$$(gb_Executable_KNOWN)))
|
||||
$$(eval $$(call gb_Output_info,Currently known executables: $(sort $(gb_Executable_KNOWN)),ALL))
|
||||
$$(eval $$(call gb_Output_error,Executable $(1) must be registered in Repository.mk))
|
||||
endif
|
||||
$(call gb_Executable__Executable_impl,$(1),Executable/$(1)$(gb_Executable_EXT))
|
||||
|
||||
endef
|
||||
|
|
|
@ -116,6 +116,7 @@ endef
|
|||
define gb_Helper_collect_knownlibs
|
||||
gb_Library_KNOWNLIBS := $$(foreach group,$$(gb_Library_VALIDGROUPS),$$(gb_Library_$$(group)))
|
||||
gb_StaticLibrary_KNOWNLIBS := $$(foreach group,$$(gb_StaticLibrary_VALIDGROUPS),$$(gb_StaticLibrary_$$(group)))
|
||||
gb_Executable_KNOWN := $$(foreach group,$$(gb_Executable_VALIDGROUPS),$$(gb_Executable_$$(group)))
|
||||
|
||||
endef
|
||||
|
||||
|
|
Loading…
Reference in a new issue