X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=Jamfile;h=15413e1651c0467c9d5044b8bc0f2c46100fa889;hb=8e02ba38e2a98f9ea7f092e333f8085520e6c22a;hp=49f762ae5062e9ad58a91be32b5c6a4b17c39f08;hpb=d65a31dff52f2b6f3d6f0d79e5ba4c9f15a319a4;p=supertux.git diff --git a/Jamfile b/Jamfile index 49f762ae5..15413e165 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/supertux.pot : $(TRANSLATABLE_SOURCES) ; +XGETTEXT_FLAGS on data/locale/supertux.pot += --language=C++ ;