~ubuntu-branches/ubuntu/vivid/brasero/vivid

« back to all changes in this revision

Viewing changes to gnome-doc-utils.make

  • Committer: Package Import Robot
  • Author(s): Robert Ancell
  • Date: 2012-03-27 10:34:57 UTC
  • mfrom: (1.1.53)
  • Revision ID: package-import@ubuntu.com-20120327103457-86qt4pti869xqdzz
Tags: 3.4.0-0ubuntu1
* New upstream release:
  - Translations updates

Show diffs side-by-side

added added

removed removed

Lines of Context:
149
149
 
150
150
 
151
151
################################################################################
152
 
## Support for automake silent-rules
153
 
GDU_V_XML2PO=$(GDU__v_XML2PO_$(V))
154
 
GDU__v_XML2PO_=$(GDU__v_XML2PO_$(AM_DEFAULT_VERBOSITY))
155
 
GDU__v_XML2PO_0=@echo "  XML2PO" $@;
156
 
 
157
 
GDU_V_MSGFMT=$(GDU__v_MSGFMT_$(V))
158
 
GDU__v_MSGFMT_=$(GDU__v_MSGFMT_$(AM_DEFAULT_VERBOSITY))
159
 
GDU__v_MSGFMT_0=@echo "  MSGFMT" $@;
160
 
 
161
 
GDU_V_DB2OMF=$(GDU__v_DB2OMF_$(V))
162
 
GDU__v_DB2OMF_=$(GDU__v_DB2OMF_$(AM_DEFAULT_VERBOSITY))
163
 
GDU__v_DB2OMF_0=@echo "  DB2OMF" $@;
164
 
 
165
 
GDU_V_DB2HTM=$(GDU__v_DB2HTM_$(V))
166
 
GDU__v_DB2HTM_=$(GDU__v_DB2HTM_$(AM_DEFAULT_VERBOSITY))
167
 
GDU__v_DB2HTM_0=@echo "  DB2HTM" $@;
168
 
 
169
 
################################################################################
170
152
## @@ Rules for OMF Files
171
153
 
172
154
db2omf_args =                                                                   \
198
180
          echo "The file '$(_skcontentslist)' does not exist." >&2;             \
199
181
          echo "Please check your ScrollKeeper installation." >&2;              \
200
182
          exit 1; }
201
 
        $(GDU_V_DB2OMF)xsltproc -o $@ $(call db2omf_args,$@,$<,'docbook') || { rm -f "$@"; exit 1; }
 
183
        xsltproc -o $@ $(call db2omf_args,$@,$<,'docbook') || { rm -f "$@"; exit 1; }
202
184
 
203
185
## @ _DOC_OMF_HTML
204
186
## The OMF files for HTML output
213
195
          echo "Please check your ScrollKeeper installation." >&2;              \
214
196
          exit 1; }
215
197
endif
216
 
        $(GDU_V_DB2OMF)xsltproc -o $@ $(call db2omf_args,$@,$<,'xhtml') || { rm -f "$@"; exit 1; }
 
198
        xsltproc -o $@ $(call db2omf_args,$@,$<,'xhtml') || { rm -f "$@"; exit 1; }
217
199
 
218
200
## @ _DOC_OMF_ALL
219
201
## All OMF output files to be built
358
340
        fi
359
341
 
360
342
$(_DOC_MOFILES): %.mo: %.po
361
 
        $(AM_V_at)if ! test -d $(dir $@); then mkdir "$(dir $@)"; fi
362
 
        $(GDU_V_MSGFMT)msgfmt -o $@ $<
 
343
        @if ! test -d $(dir $@); then \
 
344
          echo "mkdir $(dir $@)"; \
 
345
          mkdir "$(dir $@)"; \
 
346
        fi
 
347
        msgfmt -o $@ $<
363
348
 
364
349
# FIXME: fix the dependancy
365
350
# FIXME: hook xml2po up
366
351
$(_DOC_LC_DOCS) : $(_DOC_MOFILES)
367
352
$(_DOC_LC_DOCS) : $(_DOC_C_DOCS)
368
 
        $(AM_V_at)if ! test -d $(dir $@); then mkdir $(dir $@); fi
369
 
        $(GDU_V_XML2PO)if [ -f "C/$(notdir $@)" ]; then d="../"; else d="$(_DOC_ABS_SRCDIR)/"; fi; \
 
353
        if ! test -d $(dir $@); then mkdir $(dir $@); fi
 
354
        if [ -f "C/$(notdir $@)" ]; then d="../"; else d="$(_DOC_ABS_SRCDIR)/"; fi; \
370
355
        mo="$(dir $@)$(patsubst %/$(notdir $@),%,$@).mo"; \
371
356
        if [ -f "$${mo}" ]; then mo="../$${mo}"; else mo="$(_DOC_ABS_SRCDIR)/$${mo}"; fi; \
372
357
        (cd $(dir $@) && \
380
365
.PHONY: pot
381
366
pot: $(_DOC_POT)
382
367
$(_DOC_POT): $(_DOC_C_DOCS_NOENT)
383
 
        $(GDU_V_XML2PO)$(_xml2po) -m $(_xml2po_mode) -e -o $@ $^
 
368
        $(_xml2po) -m $(_xml2po_mode) -e -o $@ $^
384
369
 
385
370
 
386
371
################################################################################
394
379
_DOC_HTML_TOPS = $(foreach lc,C $(_DOC_REAL_LINGUAS),$(lc)/$(DOC_MODULE).xhtml)
395
380
 
396
381
$(_DOC_HTML_TOPS): $(_DOC_C_DOCS) $(_DOC_LC_DOCS)
397
 
        $(GDU_V_DB2HTM)xsltproc -o $@ --xinclude --param db.chunk.chunk_top "false()" --stringparam db.chunk.basename "$(DOC_MODULE)" --stringparam db.chunk.extension ".xhtml" $(_db2html) $(patsubst %.xhtml,%.xml,$@)
 
382
        xsltproc -o $@ --xinclude --param db.chunk.chunk_top "false()" --stringparam db.chunk.basename "$(DOC_MODULE)" --stringparam db.chunk.extension ".xhtml" $(_db2html) $(patsubst %.xhtml,%.xml,$@)
398
383
 
399
384
 
400
385
################################################################################