X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;ds=sidebyside;f=Jamfile;h=4227a37a805871ed197cbaf80008086ea4c75871;hb=133d94d5b145f325c38c8c15c9ea561bfffb092d;hp=49fb49739ff4201621c3fa190dda02d5e3ea4856;hpb=6fe1f3519eecbbb75eca97c45a6697eee36b2442;p=supertux.git diff --git a/Jamfile b/Jamfile index 49fb49739..4227a37a8 100644 --- a/Jamfile +++ b/Jamfile @@ -1,7 +1,33 @@ 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 ; SubInclude TOP data ; +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++ ;