Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 255479
Collapse All | Expand All

(-)gnome-user-docs-2.24.2/gnome-doc-utils.make (-3 / +13 lines)
Lines 251-256 _DOC_POFILES = $(if $(DOC_MODULE), Link Here
251
.PHONY: po
251
.PHONY: po
252
po: $(_DOC_POFILES)
252
po: $(_DOC_POFILES)
253
253
254
## @ _DOC_MOFILES
255
## The .mo files used for translating the document
256
_DOC_MOFILES = $(patsubst %.po,%.mo,$(_DOC_POFILES))
257
258
.PHONY: mo
259
mo: $(_DOC_MOFILES)
260
254
## @ _DOC_LC_MODULES
261
## @ _DOC_LC_MODULES
255
## The top-level documentation files in all other locales
262
## The top-level documentation files in all other locales
256
_DOC_LC_MODULES = $(if $(DOC_MODULE),						\
263
_DOC_LC_MODULES = $(if $(DOC_MODULE),						\
Lines 311-325 $(_DOC_POFILES): Link Here
311
	    $(_xml2po) -e -u $(notdir $@) $$docs); \
318
	    $(_xml2po) -e -u $(notdir $@) $$docs); \
312
	fi
319
	fi
313
320
321
$(_DOC_MOFILES): %.mo: %.po
322
	msgfmt -o $@ $<
323
314
# FIXME: fix the dependancy
324
# FIXME: fix the dependancy
315
# FIXME: hook xml2po up
325
# FIXME: hook xml2po up
316
$(_DOC_LC_DOCS) : $(_DOC_POFILES)
326
$(_DOC_LC_DOCS) : $(_DOC_MOFILES)
317
$(_DOC_LC_DOCS) : $(_DOC_C_DOCS)
327
$(_DOC_LC_DOCS) : $(_DOC_C_DOCS)
318
	if ! test -d $(dir $@); then mkdir $(dir $@); fi
328
	if ! test -d $(dir $@); then mkdir $(dir $@); fi
319
	if [ -f "C/$(notdir $@)" ]; then d="../"; else d="$(_DOC_ABS_SRCDIR)/"; fi; \
329
	if [ -f "C/$(notdir $@)" ]; then d="../"; else d="$(_DOC_ABS_SRCDIR)/"; fi; \
320
	(cd $(dir $@) && \
330
	(cd $(dir $@) && \
321
	  $(_xml2po) -e -p \
331
	  $(_xml2po) -e -t \
322
	    "$${d}$(dir $@)$(patsubst %/$(notdir $@),%,$@).po" \
332
	    "$${d}$(dir $@)$(patsubst %/$(notdir $@),%,$@).mo" \
323
	    "$${d}C/$(notdir $@)" > $(notdir $@).tmp && \
333
	    "$${d}C/$(notdir $@)" > $(notdir $@).tmp && \
324
	    cp $(notdir $@).tmp $(notdir $@) && rm -f $(notdir $@).tmp)
334
	    cp $(notdir $@).tmp $(notdir $@) && rm -f $(notdir $@).tmp)
325
335

Return to bug 255479