~ubuntu-branches/ubuntu/lucid/rhythmbox/lucid

« back to all changes in this revision

Viewing changes to gnome-doc-utils.make

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2010-03-29 10:12:48 UTC
  • mfrom: (1.1.45 upstream)
  • Revision ID: james.westby@ubuntu.com-20100329101248-fu29j0q1s2dx8k99
Tags: 0.12.8-0ubuntu1
* New upstream version
* debian/patches/90_autoreconf.patch:
  - new version update

Show diffs side-by-side

added added

removed removed

Lines of Context:
266
266
.PHONY: po
267
267
po: $(_DOC_POFILES)
268
268
 
269
 
## @ _DOC_MOFILES
270
 
## The .mo files used for translating the document
271
 
_DOC_MOFILES = $(patsubst %.po,%.mo,$(_DOC_POFILES))
272
 
 
273
 
.PHONY: mo
274
 
mo: $(_DOC_MOFILES)
275
 
 
276
269
## @ _DOC_LC_MODULES
277
270
## The top-level documentation files in all other locales
278
271
_DOC_LC_MODULES = $(if $(DOC_MODULE),                                           \
339
332
            $(_xml2po) -m $(_xml2po_mode) -e -u $(notdir $@) $$docs); \
340
333
        fi
341
334
 
342
 
$(_DOC_MOFILES): %.mo: %.po
343
 
        @if ! test -d $(dir $@); then \
344
 
          echo "mkdir $(dir $@)"; \
345
 
          mkdir "$(dir $@)"; \
346
 
        fi
347
 
        msgfmt -o $@ $<
348
 
 
349
335
# FIXME: fix the dependancy
350
336
# FIXME: hook xml2po up
351
 
$(_DOC_LC_DOCS) : $(_DOC_MOFILES)
 
337
$(_DOC_LC_DOCS) : $(_DOC_POFILES)
352
338
$(_DOC_LC_DOCS) : $(_DOC_C_DOCS)
353
339
        if ! test -d $(dir $@); then mkdir $(dir $@); fi
354
340
        if [ -f "C/$(notdir $@)" ]; then d="../"; else d="$(_DOC_ABS_SRCDIR)/"; fi; \
355
 
        mo="$(dir $@)$(patsubst %/$(notdir $@),%,$@).mo"; \
356
 
        if [ -f "$${mo}" ]; then mo="../$${mo}"; else mo="$(_DOC_ABS_SRCDIR)/$${mo}"; fi; \
 
341
        po="$(dir $@)$(patsubst %/$(notdir $@),%,$@).po"; \
 
342
        if [ -f "$${po}" ]; then po="../$${po}"; else po="$(_DOC_ABS_SRCDIR)/$${po}"; fi; \
357
343
        (cd $(dir $@) && \
358
 
          $(_xml2po) -m $(_xml2po_mode) -e -t "$${mo}" \
 
344
          $(_xml2po) -m $(_xml2po_mode) -e -p "$${po}" \
359
345
            "$${d}C/$(notdir $@)" > $(notdir $@).tmp && \
360
346
            cp $(notdir $@).tmp $(notdir $@) && rm -f $(notdir $@).tmp)
361
347
 
400
386
clean-doc-dsk: ; rm -f $(_DOC_DSK_DB) $(_DOC_DSK_HTML)
401
387
clean-doc-lc:
402
388
        rm -f $(_DOC_LC_DOCS)
403
 
        rm -f $(_DOC_MOFILES)
404
389
        @list='$(_DOC_POFILES)'; for po in $$list; do \
405
390
          if ! test "$$po" -ef "$(srcdir)/$$po"; then \
406
391
            echo "rm -f $$po"; \
407
392
            rm -f "$$po"; \
408
393
          fi; \
409
394
        done
410
 
#       .xml2.po.mo cleaning is obsolete as of 0.18.1 and could be removed in 0.20.x
411
395
        @for lc in C $(_DOC_REAL_LINGUAS); do \
412
396
          if test -f "$$lc/.xml2po.mo"; then \
413
397
            echo "rm -f $$lc/.xml2po.mo"; \