X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=Jamfile;h=4227a37a805871ed197cbaf80008086ea4c75871;hb=7ff84b1d4361d909fb091f471f3f23ed913a016c;hp=877ee449c3c6bd777cdde9982b305a2bcc5c3dd9;hpb=742f64dff3466f2b3ebab1851ee2993b4ac3072e;p=supertux.git diff --git a/Jamfile b/Jamfile index 877ee449c..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,12 +29,5 @@ UseAutoconf ; # add some additional files to package Package INSTALL NEWS README COPYING AUTHORS ChangeLog ; - -actions MakePot -{ - xgettext --keyword='_:1' --c++ -o $(<) $(>) -} -MakePot supertux.pot : $(TRANSLATABLE_SOURCES) ; -Depends supertux.pot : $(TRANSLATABLE_SOURCES) ; -MakeLocate supertux.pot : data/locale ; -Depends all : supertux.pot ; +MakePot data/locale/messages.pot : $(TRANSLATABLE_SOURCES) ; +XGETTEXT_FLAGS on data/locale/messages.pot += --language=C++ ;