~ubuntu-branches/ubuntu/oneiric/gnome-doc-utils/oneiric-201107060459

« back to all changes in this revision

Viewing changes to doc/xslt/Makefile.in

  • Committer: Bazaar Package Importer
  • Author(s): Robert Ancell
  • Date: 2009-08-28 14:28:54 UTC
  • mfrom: (1.2.5 upstream)
  • mto: (2.3.1 sid) (1.4.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 38.
  • Revision ID: james.westby@ubuntu.com-20090828142854-aosckqlztf5d6doe
Tags: upstream-0.17.4
ImportĀ upstreamĀ versionĀ 0.17.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
230
230
        $(DOC_LINGUAS))
231
231
 
232
232
_DOC_ABS_SRCDIR = @abs_srcdir@
 
233
_xml2po_mode = $(if $(DOC_ID),mallard,docbook)
233
234
@ENABLE_SK_TRUE@_ENABLE_SK = true
234
235
 
235
236
################################################################################
331
332
_clean_lc = $(if $(_DOC_REAL_LINGUAS),clean-doc-lc)
332
333
_clean_dir = $(if $(DOC_MODULE)$(DOC_ID),clean-doc-dir)
333
334
_doc_install_dir = $(if $(DOC_ID),$(DOC_ID),$(DOC_MODULE))
334
 
_xml2po = PYTHONPATH="$(shell pwd)/$(top_srcdir)/xml2po/modes:$(shell pwd)/$(top_builddir)/xml2po/modes" "$(shell pwd)/$(top_builddir)/xml2po/xml2po"
 
335
_xml2po = PYTHONPATH="$(shell pwd)/$(top_builddir)/xml2po:$(shell pwd)/$(top_srcdir)/xml2po:$(PYTHONPATH)" "$(shell pwd)/$(top_builddir)/xml2po/xml2po/xml2po"
335
336
_db2html = $(top_srcdir)/xslt/docbook/html/db2html.xsl
336
337
_db2omf = $(top_srcdir)/xslt/docbook/omf/db2omf.xsl
337
338
_rngdoc = $(top_srcdir)/xslt/rngdoc/rngdoc.xsl
661
662
        done; \
662
663
        if ! test -f $@; then \
663
664
          echo "(cd $(dir $@) && \
664
 
            $(_xml2po) -e $$docs > $(notdir $@).tmp && \
 
665
            $(_xml2po) -m $(_xml2po_mode) -e $$docs > $(notdir $@).tmp && \
665
666
            cp $(notdir $@).tmp $(notdir $@) && rm -f $(notdir $@).tmp)"; \
666
667
          (cd $(dir $@) && \
667
 
            $(_xml2po) -e $$docs > $(notdir $@).tmp && \
 
668
            $(_xml2po) -m $(_xml2po_mode) -e $$docs > $(notdir $@).tmp && \
668
669
            cp $(notdir $@).tmp $(notdir $@) && rm -f $(notdir $@).tmp); \
669
670
        else \
670
671
          echo "(cd $(dir $@) && \
671
 
            $(_xml2po) -e -u $(notdir $@) $$docs)"; \
 
672
            $(_xml2po) -m $(_xml2po_mode) -e -u $(notdir $@) $$docs)"; \
672
673
          (cd $(dir $@) && \
673
 
            $(_xml2po) -e -u $(notdir $@) $$docs); \
 
674
            $(_xml2po) -m $(_xml2po_mode) -e -u $(notdir $@) $$docs); \
674
675
        fi
675
676
 
676
677
# FIXME: fix the dependancy
682
683
        po="$(dir $@)$(patsubst %/$(notdir $@),%,$@).po"; \
683
684
        if [ -f "$${po}" ]; then po="../$${po}"; else po="$(_DOC_ABS_SRCDIR)/$${po}"; fi; \
684
685
        (cd $(dir $@) && \
685
 
          $(_xml2po) -e -p "$${po}" \
 
686
          $(_xml2po) -m $(_xml2po_mode) -e -p "$${po}" \
686
687
            "$${d}C/$(notdir $@)" > $(notdir $@).tmp && \
687
688
            cp $(notdir $@).tmp $(notdir $@) && rm -f $(notdir $@).tmp)
688
689
.PHONY: pot
689
690
pot: $(_DOC_POT)
690
691
$(_DOC_POT): $(_DOC_C_DOCS_NOENT)
691
 
        $(_xml2po) -e -o $@ $^
 
692
        $(_xml2po) -m $(_xml2po_mode) -e -o $@ $^
692
693
 
693
694
$(_DOC_HTML_TOPS): $(_DOC_C_DOCS) $(_DOC_LC_DOCS)
694
695
        xsltproc -o $@ --xinclude --param db.chunk.chunk_top "false()" --stringparam db.chunk.basename "$(DOC_MODULE)" --stringparam db.chunk.extension ".xhtml" $(_db2html) $(patsubst %.xhtml,%.xml,$@)