offscreen.patch by Klaus Denker: correct some calculations
[supertux.git] / Jamrules
index 524a8c5..4dfca55 100644 (file)
--- 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
     { }
 }
-