On Wed, Jun 04, 2008 at 02:24:55PM -0400, Russ Nelson wrote:
> rc2 builds on these platforms:

I attach a patch that could solve the missing po file issue. I assumed
that the maintainer has gettext installed. All the files should be there
such that the gmo files don't have to be regenerated if the user don't
have gettex installed. I also changed what is done when gettext is
not installed, it was referring to non-existent files.

I have not tested that it works without gettext installed. I am not sure
that the rules do what they should do since the links will be done even
if they are not useful for the 'all' target, but they are useful for the
'dist' target.

--
Pat
Index: Makefile.am
===================================================================
RCS file: /sources/gnash/gnash/po/Makefile.am,v
retrieving revision 1.20
diff -u -3 -p -r1.20 Makefile.am
--- Makefile.am 19 May 2008 14:37:03 -0000      1.20
+++ Makefile.am 5 Jun 2008 23:20:15 -0000
@@ -20,7 +20,7 @@ AUTOMAKE_OPTIONS = -Wno-portability
 POFILES = AUTO
 
 
-CLEANFILES = \
+MAINTAINERCLEANFILES = \
        *.gmo \
        gnash.pot \
        POTFILES \
@@ -60,7 +60,7 @@ dirs =  $(top_srcdir)/libbase \
        
 srcfiles := $(foreach dir,$(dirs),$(wildcard $(dir)/*.cpp))
 
-EXTRA_DIST = $(gmofiles)
+EXTRA_DIST = $(gmofiles) $(pofiles) gnash.pot POTFILES update-po
 
 all: $(gmofiles)
 
@@ -96,9 +96,17 @@ else # not HAS_GETTEXT
 
 $(gmofiles): force
        @for i in $(gmofiles); do \
-         ln -fs $(srcdir)/$$i.in $$i; \
+         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)/$@ $@
+
 endif # not HAS_GETTEXT
 
 force:
_______________________________________________
Gnash-dev mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/gnash-dev

Reply via email to