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 ;
# add some additional files to package
Package INSTALL NEWS README COPYING AUTHORS ChangeLog ;
-
-actions MakePot
-{
- xgettext --keyword='_:1' --c++ -o $(<) $(>)
-}
-MakePot supertux.pot : $(TRANSLATABLE_SOURCES) ;
-Depends supertux.pot : $(TRANSLATABLE_SOURCES) ;
-MakeLocate supertux.pot : data/locale ;
-Depends all : supertux.pot ;
+MakePot data/locale/messages.pot : $(TRANSLATABLE_SOURCES) ;
+XGETTEXT_FLAGS on data/locale/messages.pot += --language=C++ ;