X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=Jamfile;h=4227a37a805871ed197cbaf80008086ea4c75871;hb=cac60d242d6bf1708e02e391d01bf14977d1e1ae;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++ ;