[haiku-development] using jam's "Depends"

  • From: Matt Madia <mattmadia@xxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Sat, 23 Oct 2010 19:51:55 -0400

On Sat, Oct 23, 2010 at 16:26,  <mattmadia@xxxxxxxxx> wrote:
> Author: mmadia
> Date: 2010-10-23 22:26:08 +0200 (Sat, 23 Oct 2010)
> New Revision: 39090
> Changeset: http://dev.haiku-os.org/changeset/39090
>
> Modified:
>   haiku/trunk/Jamfile
>   haiku/trunk/build/jam/LocaleRules
> Log:
> 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.

Following up on this ....

Basically, for some reason `jam -q AboutSystem` will only build the
application.  It's catkey+catalog file won't be created.
So, is it wrong to make a jam target depend on it's catalog file?

Index: build/jam/LocaleRules
===================================================================
--- build/jam/LocaleRules       (revision 39090)
+++ build/jam/LocaleRules       (working copy)
@@ -152,4 +152,5 @@

        HAIKU_CATALOG_FILES on $(target) = $(catkeysFiles:S=.catalog) ;
        HAIKU_CATALOG_SIGNATURE on $(target) = $(signature) ;
+       Depends $(target) : $(catkeysFiles:S=.catalog) ;
 }

===================================

This will allow jam -q AboutSystem  (or jam -q catkeys or ...) to
build both the application and its respective locale data files.

--mmadia

Other related posts: