X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;ds=sidebyside;f=Jamfile;h=4227a37a805871ed197cbaf80008086ea4c75871;hb=32c639e36abc3b7bd99380c8b5da768a127fafd6;hp=49f762ae5062e9ad58a91be32b5c6a4b17c39f08;hpb=d65a31dff52f2b6f3d6f0d79e5ba4c9f15a319a4;p=supertux.git diff --git a/Jamfile b/Jamfile index 49f762ae5..4227a37a8 100644 --- a/Jamfile +++ b/Jamfile @@ -1,5 +1,24 @@ SubDir TOP ; +if $(XGETTEXT) != "" +{ + actions XGetText + { + $(XGETTEXT) $(XGETTEXT_FLAGS) --keyword='_:1' -o $(<) $(>) + } + rule MakePot + { + if $(>) { + XGetText $(<) : $(>) ; + Depends $(<) : $(>) ; + Depends all : $(<) ; + } + } +} else { + rule MakePot + { } +} + # Decend into subdirs SubInclude TOP lib ; SubInclude TOP src ; @@ -10,3 +29,5 @@ UseAutoconf ; # add some additional files to package Package INSTALL NEWS README COPYING AUTHORS ChangeLog ; +MakePot data/locale/messages.pot : $(TRANSLATABLE_SOURCES) ; +XGETTEXT_FLAGS on data/locale/messages.pot += --language=C++ ;