~ubuntu-branches/ubuntu/trusty/brasero/trusty-proposed

« back to all changes in this revision

Viewing changes to gnome-doc-utils.make

  • Committer: Package Import Robot
  • Author(s): Robert Ancell
  • Date: 2012-04-17 14:41:53 UTC
  • mfrom: (1.1.54)
  • Revision ID: package-import@ubuntu.com-20120417144153-tuyvgt9jp2fr738k
Tags: 3.4.1-0ubuntu1
* New upstream release:
  - Translation 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
################################################################################
152
170
## @@ Rules for OMF Files
153
171
 
154
172
db2omf_args =                                                                   \
180
198
          echo "The file '$(_skcontentslist)' does not exist." >&2;             \
181
199
          echo "Please check your ScrollKeeper installation." >&2;              \
182
200
          exit 1; }
183
 
        xsltproc -o $@ $(call db2omf_args,$@,$<,'docbook') || { rm -f "$@"; exit 1; }
 
201
        $(GDU_V_DB2OMF)xsltproc -o $@ $(call db2omf_args,$@,$<,'docbook') || { rm -f "$@"; exit 1; }
184
202
 
185
203
## @ _DOC_OMF_HTML
186
204
## The OMF files for HTML output
195
213
          echo "Please check your ScrollKeeper installation." >&2;              \
196
214
          exit 1; }
197
215
endif
198
 
        xsltproc -o $@ $(call db2omf_args,$@,$<,'xhtml') || { rm -f "$@"; exit 1; }
 
216
        $(GDU_V_DB2OMF)xsltproc -o $@ $(call db2omf_args,$@,$<,'xhtml') || { rm -f "$@"; exit 1; }
199
217
 
200
218
## @ _DOC_OMF_ALL
201
219
## All OMF output files to be built
340
358
        fi
341
359
 
342
360
$(_DOC_MOFILES): %.mo: %.po
343
 
        @if ! test -d $(dir $@); then \
344
 
          echo "mkdir $(dir $@)"; \
345
 
          mkdir "$(dir $@)"; \
346
 
        fi
347
 
        msgfmt -o $@ $<
 
361
        $(AM_V_at)if ! test -d $(dir $@); then mkdir "$(dir $@)"; fi
 
362
        $(GDU_V_MSGFMT)msgfmt -o $@ $<
348
363
 
349
364
# FIXME: fix the dependancy
350
365
# FIXME: hook xml2po up
351
366
$(_DOC_LC_DOCS) : $(_DOC_MOFILES)
352
367
$(_DOC_LC_DOCS) : $(_DOC_C_DOCS)
353
 
        if ! test -d $(dir $@); then mkdir $(dir $@); fi
354
 
        if [ -f "C/$(notdir $@)" ]; then d="../"; else d="$(_DOC_ABS_SRCDIR)/"; fi; \
 
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; \
355
370
        mo="$(dir $@)$(patsubst %/$(notdir $@),%,$@).mo"; \
356
371
        if [ -f "$${mo}" ]; then mo="../$${mo}"; else mo="$(_DOC_ABS_SRCDIR)/$${mo}"; fi; \
357
372
        (cd $(dir $@) && \
365
380
.PHONY: pot
366
381
pot: $(_DOC_POT)
367
382
$(_DOC_POT): $(_DOC_C_DOCS_NOENT)
368
 
        $(_xml2po) -m $(_xml2po_mode) -e -o $@ $^
 
383
        $(GDU_V_XML2PO)$(_xml2po) -m $(_xml2po_mode) -e -o $@ $^
369
384
 
370
385
 
371
386
################################################################################
379
394
_DOC_HTML_TOPS = $(foreach lc,C $(_DOC_REAL_LINGUAS),$(lc)/$(DOC_MODULE).xhtml)
380
395
 
381
396
$(_DOC_HTML_TOPS): $(_DOC_C_DOCS) $(_DOC_LC_DOCS)
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,$@)
 
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,$@)
383
398
 
384
399
 
385
400
################################################################################