From 80ad173e8928f1f6659bb5065334567703065896 Mon Sep 17 00:00:00 2001 From: Matt Madia Date: Sat, 23 Oct 2010 20:26:08 +0000 Subject: [PATCH] Introduced a pseudo-target "catkeys", for building all of the localized applications. The eventual goal is to have jam package a catkeys.zip, which can be provided to the application translation websites. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39090 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- Jamfile | 4 ++++ build/jam/LocaleRules | 4 ++++ 2 files changed, 8 insertions(+) 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) ;