monotone-devel
[Top][All Lists]
Advanced

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

Re: [Monotone-devel] The everlasting release, compiling on Win32


From: Richard Levitte
Subject: Re: [Monotone-devel] The everlasting release, compiling on Win32
Date: Sun, 02 Jan 2011 20:49:04 +0100 (CET)

In message <address@hidden> on Sun, 02 Jan 2011 10:51:19 -0500, Stephen Leake 
<address@hidden> said:

stephen_leake> The relevant Makefile fragments: from main:
stephen_leake> 
stephen_leake> %.merged.po: $(srcdir)/po/%.po $(PACKAGE).pot
stephen_leake>  $(V_msgmerge)$(MSGMERGE) $^ -q -o $@
stephen_leake> 
stephen_leake> from source-tree-cleanup:
stephen_leake> 
stephen_leake> po/%.merged.po: $(srcdir)/po/%.po po/$(PACKAGE).pot
stephen_leake>  $(V_msgmerge)$(MSGMERGE) $^ -q -o $@
stephen_leake> 
stephen_leake> 
stephen_leake> So the po files are moved into a po subdir, but there is no rule 
to make
stephen_leake> the po subdir. I'm not clear the best way to add it.

Add a mkdir command in the following rule:

$(PACKAGE).pot: $(POTFILES)
        $(V_xgettext)$(XGETTEXT) -o$@ -D. -D$(top_srcdir) -cTRANSLATORS: \
          --copyright-holder='$(COPYRIGHT_HOLDER)' \
          --msgid-bugs-address='$(MSGID_BUGS_ADDRESS)' \
          $(XGETTEXT_PKG_OPTS) $(XGETTEXT_OPTS) \
          $(POTFILES)

Becomes this:

po/$(PACKAGE).pot: $(POTFILES)
        [ -d po ] || mkdir -p po
        $(V_xgettext)$(XGETTEXT) -o$@ -D. -D$(top_srcdir) -cTRANSLATORS: \
          --copyright-holder='$(COPYRIGHT_HOLDER)' \
          --msgid-bugs-address='$(MSGID_BUGS_ADDRESS)' \
          $(XGETTEXT_PKG_OPTS) $(XGETTEXT_OPTS) \
          $(POTFILES)

Cheers,
Richard

-- 
Richard Levitte                         address@hidden
                                        http://richard.levitte.org/

"Life is a tremendous celebration - and I'm invited!"
-- from a friend's blog, translated from Swedish



reply via email to

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