X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;ds=sidebyside;f=Jamrules;h=b07ecd4b9ca36a7df8c81597fce3c1c1ddc2ea1e;hb=908a780ca974cc9d8bf6c2815d9eec6e8ec25fbb;hp=abdd715b714e35868e3ecd3c543e7ab7abd3f119;hpb=6fe1f3519eecbbb75eca97c45a6697eee36b2442;p=supertux.git diff --git a/Jamrules b/Jamrules index abdd715b7..b07ecd4b9 100644 --- a/Jamrules +++ b/Jamrules @@ -38,3 +38,23 @@ include $(TOP)/mk/jam/build.jam ; # Include Dirs IncludeDir $(top_builddir) ; # for config.h IncludeDir lib src ; + +if $(XGETTEXT) != "" +{ + actions XGetText + { + $(XGETTEXT) $(XGETTEXT_FLAGS) --keyword='_:1' -o $(<) $(>) + } + rule MakePot + { + if $(>) { + XGetText $(<) : $(>) ; + Depends $(<) : $(>) ; + Depends all : $(<) ; + } + } +} else { + rule MakePot + { } +} +