Improved upon r39090.
* removed the catkeys pseudo-target * created catalogs pseudo-target, which builds all catalogs & en.catkeys(.pre) * created LocalizedTargets pseudo-target, which builds all targets that have been localized. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39114 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -198,5 +198,8 @@ if $(packageError) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Pseudo-target to build all targets that are localized.
|
# Pseudo-target to build all targets that are localized.
|
||||||
NotFile catkeys ;
|
NotFile catalogs ;
|
||||||
Depends catkeys : $(HAIKU_LOCALIZED_TARGETS) ;
|
Depends catalogs : $(HAIKU_LOCALIZED_CATALOGS) ;
|
||||||
|
|
||||||
|
NotFile LocalizedTargets ;
|
||||||
|
Depends LocalizedTargets : $(HAIKU_LOCALIZED_TARGETS) ;
|
||||||
|
|||||||
@@ -119,10 +119,6 @@ rule DoCatalogs target : signature : sources : sourceLanguage : regexp
|
|||||||
# regexp The regular expression used to parse the files.
|
# regexp The regular expression used to parse the files.
|
||||||
# Optional: default is matching be_catalog->GetString
|
# Optional: default is matching be_catalog->GetString
|
||||||
|
|
||||||
# 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 ;
|
local subdir ;
|
||||||
if [ on $(SUBDIR) return $(HAIKU_MULTIPLE_LOCALIZED_TARGETS) ] {
|
if [ on $(SUBDIR) return $(HAIKU_MULTIPLE_LOCALIZED_TARGETS) ] {
|
||||||
subdir = $(SUBDIR_TOKENS[2-]) $(target) ;
|
subdir = $(SUBDIR_TOKENS[2-]) $(target) ;
|
||||||
@@ -157,4 +153,10 @@ rule DoCatalogs target : signature : sources : sourceLanguage : regexp
|
|||||||
|
|
||||||
HAIKU_CATALOG_FILES on $(target) = $(catkeysFiles:S=.catalog) ;
|
HAIKU_CATALOG_FILES on $(target) = $(catkeysFiles:S=.catalog) ;
|
||||||
HAIKU_CATALOG_SIGNATURE on $(target) = $(signature) ;
|
HAIKU_CATALOG_SIGNATURE on $(target) = $(signature) ;
|
||||||
|
|
||||||
|
# For the pseudo-target LocalizedTargets
|
||||||
|
HAIKU_LOCALIZED_TARGETS += $(target) ;
|
||||||
|
|
||||||
|
# For the pseudo-target catalogs
|
||||||
|
HAIKU_LOCALIZED_CATALOGS += $(catkeysFiles:S=.catalog) ;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user