New Norwegian Translation
[supertux.git] / Jamfile
diff --git a/Jamfile b/Jamfile
index 49fb497..4227a37 100644 (file)
--- 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++ ;