New Norwegian Translation
[supertux.git] / Jamfile
diff --git a/Jamfile b/Jamfile
index 9509324..4227a37 100644 (file)
--- a/Jamfile
+++ b/Jamfile
@@ -1,5 +1,24 @@
 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 ;
@@ -7,11 +26,8 @@ SubInclude TOP data ;
 
 UseAutoconf ;
 
-# for now...
-Package [ Wildcard po : *.po *.in Changelog ] ;
-Package [ Wildcard intl : *.c *.h ChangeLog VERSION Makefile.in ] ;
-Package INSTALL NEWS README COPYING AUTHORS ChangeLog ABOUT-NLS depcomp 
-        install-sh mkinstalldirs missing ;
+# add some additional files to package
+Package INSTALL NEWS README COPYING AUTHORS ChangeLog ;
 
-Package Makefile.am src/Makefile.am lib/Makefile.am data/Makefile.am 
-            po/Makefile.in.in intl/Makefile.in ;
+MakePot data/locale/messages.pot : $(TRANSLATABLE_SOURCES) ;
+XGETTEXT_FLAGS on data/locale/messages.pot += --language=C++ ;