X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=Jamrules;h=4dfca553b469efc8c0d9183111ebd8a608a42eac;hb=665b4a4a6b0edae82fb830528f16d2176da44aa4;hp=920185f5a106755f58dea3044403f3e8d2c0b16e;hpb=e4cd5a1ab252a7cfed8b6dc5cefb5f6c20d3a5ab;p=supertux.git diff --git a/Jamrules b/Jamrules index 920185f5a..4dfca553b 100644 --- a/Jamrules +++ b/Jamrules @@ -48,17 +48,33 @@ include $(TOP)/mk/jam/build.jam ; IncludeDir $(top_builddir) ; # for config.h IncludeDir $(top_srcdir)/src ; +actions quietly Append +{ + echo $(>) >> $(<) ; +} + +rule DumpVar +{ + for FILE in $(>) + { + Append $(<) : $(FILE) ; + } + Depends $(<) : $(>) ; +} + if $(XGETTEXT) != "" { actions XGetText { - $(XGETTEXT) $(XGETTEXT_FLAGS) --keyword='_:1' -o $(<) "$(>)" + $(XGETTEXT) $(XGETTEXT_FLAGS) -o $(<) -f $(>) } rule MakePot { if $(>) { - XGetText $(<) : $(>) ; - Depends $(<) : $(>) ; + DumpVar $(<).in : $(>) ; + XGetText $(<) : $(<).in ; + RmTemps $(<) : $(<).in ; + Depends $(<) : $(<).in ; Depends all : $(<) ; } } @@ -66,4 +82,3 @@ if $(XGETTEXT) != "" rule MakePot { } } -