gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] /srv/bzr/gnash/trunk r9911: Don't distribute .gmo files,


From: Sandro Santilli
Subject: [Gnash-commit] /srv/bzr/gnash/trunk r9911: Don't distribute .gmo files, you'll need gettext for an internationalized
Date: Fri, 03 Oct 2008 14:27:00 +0200
User-agent: Bazaar (1.5)

------------------------------------------------------------
revno: 9911
committer: Sandro Santilli <address@hidden>
branch nick: trunk
timestamp: Fri 2008-10-03 14:27:00 +0200
message:
  Don't distribute .gmo files, you'll need gettext for an internationalized
  gnash.
modified:
  po/Makefile.am
=== modified file 'po/Makefile.am'
--- a/po/Makefile.am    2008-07-22 21:24:49 +0000
+++ b/po/Makefile.am    2008-10-03 12:27:00 +0000
@@ -20,12 +20,6 @@
 POFILES = AUTO
 
 
-MAINTAINERCLEANFILES = \
-       *.gmo \
-       gnash.pot \
-       POTFILES \
-       update-po
-
 translations = cs de es fi fr it ja sv
 
 # This is GNU make specific, so if you are building Gnash on a BSD
@@ -34,6 +28,13 @@
 pofiles := $(patsubst %,%.po,$(translations))
 gmofiles := $(patsubst %,%.gmo,$(translations))
 
+MAINTAINERCLEANFILES = \
+       gnash.pot 
+
+CLEANFILES = \
+       $(gmofiles) \
+       POTFILES 
+
 dirs =  $(top_srcdir)/libbase \
        $(top_srcdir)/backend \
        $(top_srcdir)/libamf \
@@ -59,12 +60,10 @@
        
 srcfiles := $(foreach dir,$(dirs),$(wildcard $(dir)/*.cpp))
 
-EXTRA_DIST = $(gmofiles) $(pofiles) gnash.pot POTFILES update-po
+EXTRA_DIST = $(pofiles) gnash.pot 
 
 all: $(gmofiles)
 
-if HAS_GETTEXT
-
 POTFILES: $(srcfiles)
        @echo "Building POTFILES..."
        @rm -f POTFILES
@@ -72,8 +71,10 @@
          echo "$$i" >> POTFILES;\
        done
 
+if HAS_GETTEXT
+
 gnash.pot: POTFILES
-       $(XGETTEXT) --language=C++ --files-from=POTFILES -o gnash.pot \
+       $(XGETTEXT) --language=C++ --files-from=POTFILES -o $(srcdir)/gnash.pot 
\
          --default-domain=gnash --force \
          --flag=_:1:pass-c-format --keyword=_ \
          --copyright-holder='Free Software Foundation, Inc.'
@@ -81,9 +82,8 @@
 update-po: gnash.pot
        @for i in $(pofiles); do \
          echo "Merging $$i..." ; \
-         $(MSGMERGE) --update $(srcdir)/$$i gnash.pot; \
+         $(MSGMERGE) --update $(srcdir)/$$i $(srcdir)/gnash.pot; \
        done
-       touch update-po
 
 $(gmofiles): #update-po
 
@@ -94,17 +94,10 @@
 else # not HAS_GETTEXT
 
 $(gmofiles): force
-       @for i in $(gmofiles); do \
-         ln -fs $(srcdir)/$$i $$i; \
-       done
-
-$(pofiles): force
-       @for i in $(pofiles); do \
-         ln -fs $(srcdir)/$$i $$i; \
-       done
-
-POTFILES gnash.pot update-po: force
-       ln -fs $(srcdir)/$@ $@
+       @echo "WARNING: can't compile $@ translations w/out gettext"
+
+update-po: force
+       @echo "WARNING: can't update translation files (.po) w/out gettext"
 
 endif # not HAS_GETTEXT
 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]