diff --git a/Jamfile b/Jamfile index adcf271f35..64e8812273 100644 --- a/Jamfile +++ b/Jamfile @@ -196,3 +196,7 @@ for package in $(HAIKU_ADDED_OPTIONAL_PACKAGES) { if $(packageError) { Exit ; } + +# Pseudo-target to build all targets that are localized. +NotFile catkeys ; +Depends catkeys : $(HAIKU_LOCALIZED_TARGETS) ; diff --git a/build/jam/LocaleRules b/build/jam/LocaleRules index 38ddccbd3d..68a310598f 100644 --- a/build/jam/LocaleRules +++ b/build/jam/LocaleRules @@ -120,6 +120,10 @@ rule DoCatalogs target : signature : sources : sourceLanguage : regexp : folder # Optional: default is matching be_catalog->GetString # folder Optional: the subdirectory containing *.catkeys + # Make a note of all targets that call this rule. + # This will be used for the pseudo-target catkeys + HAIKU_LOCALIZED_TARGETS += $(target) ; + local subdir = $(SUBDIR_TOKENS[2-]) $(folder) ; HAIKU_CATALOGS_SUBDIR on $(signature) = $(subdir) ;