X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=Jamrules;h=4dfca553b469efc8c0d9183111ebd8a608a42eac;hb=fdf828cfc36053dff84e29c07f37457c48293d83;hp=524a8c59ab9681ee20547d4dc9fc51238dcc7c16;hpb=8cecc7815e5ab5fe2b646dbe6aaa8e95cf08e71f;p=supertux.git diff --git a/Jamrules b/Jamrules index 524a8c59a..4dfca553b 100644 --- a/Jamrules +++ b/Jamrules @@ -46,19 +46,35 @@ include $(TOP)/mk/jam/build.jam ; # Include Dirs IncludeDir $(top_builddir) ; # for config.h -IncludeDir lib src ; +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 { } } -