1
# Makefile.in generated by automake 1.11.1 from Makefile.am.
4
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5
# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
7
# This Makefile.in is free software; the Free Software Foundation
8
# gives unlimited permission to copy and/or distribute it,
9
# with or without modifications, as long as this notice is preserved.
11
# This program is distributed in the hope that it will be useful,
12
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
13
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
18
# gnome-doc-utils.make - make magic for building documentation
19
# Copyright (C) 2004-2005 Shaun McCance <shaunm@gnome.org>
21
# This program is free software; you can redistribute it and/or modify
22
# it under the terms of the GNU General Public License as published by
23
# the Free Software Foundation; either version 2 of the License, or
24
# (at your option) any later version.
26
# This program is distributed in the hope that it will be useful,
27
# but WITHOUT ANY WARRANTY; without even the implied warranty of
28
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
29
# GNU General Public License for more details.
31
# You should have received a copy of the GNU General Public License
32
# along with this program; if not, write to the Free Software Foundation,
33
# Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
35
# As a special exception to the GNU General Public License, if you
36
# distribute this file as part of a program that contains a
37
# configuration script generated by Autoconf, you may include it under
38
# the same distribution terms that you use for the rest of that program.
40
################################################################################
42
pkgdatadir = $(datadir)/@PACKAGE@
43
pkgincludedir = $(includedir)/@PACKAGE@
44
pkglibdir = $(libdir)/@PACKAGE@
45
pkglibexecdir = $(libexecdir)/@PACKAGE@
46
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
47
install_sh_DATA = $(install_sh) -c -m 644
48
install_sh_PROGRAM = $(install_sh) -c
49
install_sh_SCRIPT = $(install_sh) -c
50
INSTALL_HEADER = $(INSTALL_DATA)
51
transform = $(program_transform_name)
58
DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
59
$(top_srcdir)/gnome-doc-utils.make
61
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
62
am__aclocal_m4_deps = $(top_srcdir)/common/m4/as-ac-expand.m4 \
63
$(top_srcdir)/common/m4/as-python.m4 \
64
$(top_srcdir)/common/m4/as-version.m4 \
65
$(top_srcdir)/common/m4/glib-gettext.m4 \
66
$(top_srcdir)/common/m4/pkg.m4 $(top_srcdir)/configure.ac
67
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
69
mkinstalldirs = $(install_sh) -d
71
CONFIG_CLEAN_VPATH_FILES =
74
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
76
ACLOCAL_AMFLAGS = @ACLOCAL_AMFLAGS@
77
ALL_LINGUAS = @ALL_LINGUAS@
80
AUTOHEADER = @AUTOHEADER@
84
CATOBJEXT = @CATOBJEXT@
86
CCDEPMODE = @CCDEPMODE@
88
CONFIGURED_GST_PLUGIN_PATH = @CONFIGURED_GST_PLUGIN_PATH@
89
CONFIGURED_LD_LIBRARY_PATH = @CONFIGURED_LD_LIBRARY_PATH@
90
CONFIGURED_PYTHONPATH = @CONFIGURED_PYTHONPATH@
93
CYGPATH_W = @CYGPATH_W@
95
DATADIRNAME = @DATADIRNAME@
98
DISTCHECK_CONFIGURE_FLAGS = @DISTCHECK_CONFIGURE_FLAGS@
99
DOC_USER_FORMATS = @DOC_USER_FORMATS@
105
GETTEXT_PACKAGE = @GETTEXT_PACKAGE@
106
GMOFILES = @GMOFILES@
108
GNONLIN_REQ = @GNONLIN_REQ@
111
HELP_DIR = @HELP_DIR@
113
INSTALL_DATA = @INSTALL_DATA@
114
INSTALL_PROGRAM = @INSTALL_PROGRAM@
115
INSTALL_SCRIPT = @INSTALL_SCRIPT@
116
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
117
INSTOBJEXT = @INSTOBJEXT@
118
INTLLIBS = @INTLLIBS@
119
INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@
120
INTLTOOL_MERGE = @INTLTOOL_MERGE@
121
INTLTOOL_PERL = @INTLTOOL_PERL@
122
INTLTOOL_UPDATE = @INTLTOOL_UPDATE@
128
LOCALSTATEDIR = @LOCALSTATEDIR@
129
LTLIBOBJS = @LTLIBOBJS@
130
MAKEINFO = @MAKEINFO@
132
MKINSTALLDIRS = @MKINSTALLDIRS@
134
MSGFMT_OPTS = @MSGFMT_OPTS@
135
MSGMERGE = @MSGMERGE@
139
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
140
PACKAGE_NAME = @PACKAGE_NAME@
141
PACKAGE_STRING = @PACKAGE_STRING@
142
PACKAGE_TARNAME = @PACKAGE_TARNAME@
143
PACKAGE_URL = @PACKAGE_URL@
144
PACKAGE_VERSION = @PACKAGE_VERSION@
145
PACKAGE_VERSION_MAJOR = @PACKAGE_VERSION_MAJOR@
146
PACKAGE_VERSION_MICRO = @PACKAGE_VERSION_MICRO@
147
PACKAGE_VERSION_MINOR = @PACKAGE_VERSION_MINOR@
148
PACKAGE_VERSION_NANO = @PACKAGE_VERSION_NANO@
149
PACKAGE_VERSION_RELEASE = @PACKAGE_VERSION_RELEASE@
150
PATH_SEPARATOR = @PATH_SEPARATOR@
151
PKG_CONFIG = @PKG_CONFIG@
154
PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@
155
PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@
156
PYCAIRO_REQ = @PYCAIRO_REQ@
157
PYGST_REQ = @PYGST_REQ@
158
PYGTK_REQ = @PYGTK_REQ@
160
PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@
161
PYTHON_PLATFORM = @PYTHON_PLATFORM@
162
PYTHON_PREFIX = @PYTHON_PREFIX@
163
PYTHON_VERSION = @PYTHON_VERSION@
164
SET_MAKE = @SET_MAKE@
167
SYSCONFDIR = @SYSCONFDIR@
170
XGETTEXT = @XGETTEXT@
171
abs_builddir = @abs_builddir@
172
abs_srcdir = @abs_srcdir@
173
abs_top_builddir = @abs_top_builddir@
174
abs_top_srcdir = @abs_top_srcdir@
175
ac_ct_CC = @ac_ct_CC@
176
am__include = @am__include@
177
am__leading_dot = @am__leading_dot@
178
am__quote = @am__quote@
180
am__untar = @am__untar@
182
build_alias = @build_alias@
183
builddir = @builddir@
185
datarootdir = @datarootdir@
188
exec_prefix = @exec_prefix@
189
host_alias = @host_alias@
191
includedir = @includedir@
193
install_sh = @install_sh@
195
libexecdir = @libexecdir@
196
localedir = @localedir@
197
localstatedir = @localstatedir@
200
oldincludedir = @oldincludedir@
202
pkgpyexecdir = @pkgpyexecdir@
203
pkgpythondir = @pkgpythondir@
205
program_transform_name = @program_transform_name@
207
pyexecdir = @pyexecdir@
208
pythondir = @pythondir@
210
sharedstatedir = @sharedstatedir@
212
sysconfdir = @sysconfdir@
213
target_alias = @target_alias@
214
top_build_prefix = @top_build_prefix@
215
top_builddir = @top_builddir@
216
top_srcdir = @top_srcdir@
217
_clean_doc_header = $(if $(DOC_H_FILE),clean-doc-header)
218
_DOC_REAL_FORMATS = $(if $(DOC_USER_FORMATS),$(DOC_USER_FORMATS),$(DOC_FORMATS))
219
_DOC_REAL_LINGUAS = $(if $(filter environment,$(origin LINGUAS)), \
220
$(filter $(LINGUAS),$(DOC_LINGUAS)), \
223
_DOC_ABS_SRCDIR = @abs_srcdir@
224
_xml2po_mode = $(if $(DOC_ID),mallard,docbook)
225
@ENABLE_SK_TRUE@_ENABLE_SK = true
227
################################################################################
229
--stringparam db2omf.basename $(DOC_MODULE) \
230
--stringparam db2omf.format $(3) \
231
--stringparam db2omf.dtd \
232
$(shell xmllint --format $(2) | grep -h PUBLIC | head -n 1 \
233
| sed -e 's/.*PUBLIC \(\"[^\"]*\"\).*/\1/') \
234
--stringparam db2omf.lang $(notdir $(patsubst %/$(notdir $(2)),%,$(2))) \
235
--stringparam db2omf.omf_dir "$(OMF_DIR)" \
236
--stringparam db2omf.help_dir "$(HELP_DIR)" \
237
--stringparam db2omf.omf_in "$(_DOC_OMF_IN)" \
238
$(if $(_ENABLE_SK), \
239
--stringparam db2omf.scrollkeeper_cl "$(_skcontentslist)") \
242
_DOC_OMF_IN = $(if $(DOC_MODULE),$(wildcard $(_DOC_ABS_SRCDIR)/$(DOC_MODULE).omf.in))
243
_DOC_OMF_DB = $(if $(_DOC_OMF_IN), \
244
$(foreach lc,C $(_DOC_REAL_LINGUAS),$(DOC_MODULE)-$(lc).omf))
246
_DOC_OMF_HTML = $(if $(_DOC_OMF_IN), \
247
$(foreach lc,C $(_DOC_REAL_LINGUAS),$(DOC_MODULE)-html-$(lc).omf))
252
$(if $(filter docbook,$(_DOC_REAL_FORMATS)),$(_DOC_OMF_DB)) \
253
$(if $(filter html HTML,$(_DOC_REAL_FORMATS)),$(_DOC_OMF_HTML))
256
################################################################################
257
_DOC_C_MODULE = $(if $(DOC_MODULE),C/$(DOC_MODULE).xml)
258
_DOC_C_PAGES = $(foreach page,$(DOC_PAGES),C/$(page))
259
_DOC_C_ENTITIES = $(foreach ent,$(DOC_ENTITIES),C/$(ent))
260
_DOC_C_INCLUDES = $(foreach inc,$(DOC_INCLUDES),C/$(inc))
262
$(_DOC_C_ENTITIES) $(_DOC_C_INCLUDES) \
263
$(_DOC_C_PAGES) $(_DOC_C_MODULE)
265
_DOC_C_DOCS_NOENT = \
266
$(_DOC_C_MODULE) $(_DOC_C_INCLUDES) \
269
_DOC_C_FIGURES = $(if $(DOC_FIGURES), \
270
$(foreach fig,$(DOC_FIGURES),C/$(fig)), \
271
$(patsubst $(srcdir)/%,%,$(wildcard $(srcdir)/C/figures/*.png)))
274
# FIXME: probably have to shell escape to determine the file names
275
_DOC_C_HTML = $(foreach f, \
276
$(shell xsltproc --xinclude \
277
--stringparam db.chunk.basename "$(DOC_MODULE)" \
278
$(_chunks) "C/$(DOC_MODULE).xml"), \
282
###############################################################################
283
_DOC_POFILES = $(if $(DOC_MODULE)$(DOC_ID), \
284
$(foreach lc,$(_DOC_REAL_LINGUAS),$(lc)/$(lc).po))
286
_DOC_MOFILES = $(patsubst %.po,%.mo,$(_DOC_POFILES))
287
_DOC_LC_MODULES = $(if $(DOC_MODULE), \
288
$(foreach lc,$(_DOC_REAL_LINGUAS),$(lc)/$(DOC_MODULE).xml))
291
$(foreach lc,$(_DOC_REAL_LINGUAS),$(foreach page,$(_DOC_C_PAGES), \
292
$(lc)/$(notdir $(page)) ))
295
$(foreach lc,$(_DOC_REAL_LINGUAS),$(foreach inc,$(_DOC_C_INCLUDES), \
296
$(lc)/$(notdir $(inc)) ))
299
# FIXME: probably have to shell escape to determine the file names
301
$(foreach lc,$(_DOC_REAL_LINGUAS),$(foreach doc,$(_DOC_C_HTML), \
302
$(lc)/$(notdir $(doc)) ))
305
$(_DOC_LC_MODULES) $(_DOC_LC_INCLUDES) $(_DOC_LC_PAGES) \
306
$(if $(filter html HTML,$(_DOC_REAL_FORMATS)),$(_DOC_LC_HTML))
308
_DOC_LC_FIGURES = $(foreach lc,$(_DOC_REAL_LINGUAS), \
309
$(patsubst C/%,$(lc)/%,$(_DOC_C_FIGURES)) )
312
$(foreach fig,$(_DOC_C_FIGURES), $(foreach lc,C $(_DOC_REAL_LINGUAS), \
313
$(wildcard $(srcdir)/$(lc)/$(patsubst C/%,%,$(fig))) ))
315
_DOC_POT = $(if $(DOC_MODULE),$(DOC_MODULE).pot,$(if $(DOC_ID),$(DOC_ID).pot))
317
################################################################################
318
_DOC_HTML_ALL = $(if $(filter html HTML,$(_DOC_REAL_FORMATS)), \
319
$(_DOC_C_HTML) $(_DOC_LC_HTML))
321
_DOC_HTML_TOPS = $(foreach lc,C $(_DOC_REAL_LINGUAS),$(lc)/$(DOC_MODULE).xhtml)
322
_clean_omf = $(if $(_DOC_OMF_IN),clean-doc-omf)
323
_clean_dsk = $(if $(_DOC_DSK_IN),clean-doc-dsk)
324
_clean_lc = $(if $(_DOC_REAL_LINGUAS),clean-doc-lc)
325
_clean_dir = $(if $(DOC_MODULE)$(DOC_ID),clean-doc-dir)
326
_doc_install_dir = $(if $(DOC_ID),$(DOC_ID),$(DOC_MODULE))
329
figures/fadestep1.png \
330
figures/fadestep2.png \
331
figures/fadestep3.png \
332
figures/filechooser.png \
333
figures/hovering.png \
334
figures/keyframecurves.png \
337
figures/mainwindow.png \
338
figures/previewsource.png \
339
figures/ripple-after.png \
340
figures/ripple-before.png \
341
figures/roll-after.png \
342
figures/roll-before.png \
344
figures/trimming-individual.png
350
effectsanimation.page \
354
importingmpegts.page \
357
insertintimeline.page \
359
keyframecurves.page \
363
makeselections.page \
365
movearoundtimeline.page \
366
othertransitions.page \
367
projectsettings.page \
370
selectunusedfiles.page \
380
$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(top_srcdir)/gnome-doc-utils.make $(am__configure_deps)
382
case '$(am__configure_deps)' in \
384
( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
385
&& { if test -f $@; then exit 0; else break; fi; }; \
389
echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu help/Makefile'; \
390
$(am__cd) $(top_srcdir) && \
391
$(AUTOMAKE) --gnu help/Makefile
393
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
396
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
398
echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
399
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
402
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
403
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
405
$(top_srcdir)/configure: $(am__configure_deps)
406
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
407
$(ACLOCAL_M4): $(am__aclocal_m4_deps)
408
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
409
$(am__aclocal_m4_deps):
417
distdir: $(DISTFILES)
418
@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
419
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
420
list='$(DISTFILES)'; \
421
dist_files=`for file in $$list; do echo $$file; done | \
422
sed -e "s|^$$srcdirstrip/||;t" \
423
-e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
424
case $$dist_files in \
425
*/*) $(MKDIR_P) `echo "$$dist_files" | \
426
sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
429
for file in $$dist_files; do \
430
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
431
if test -d $$d/$$file; then \
432
dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
433
if test -d "$(distdir)/$$file"; then \
434
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
436
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
437
cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
438
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
440
cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
442
test -f "$(distdir)/$$file" \
443
|| cp -p $$d/$$file "$(distdir)/$$file" \
447
$(MAKE) $(AM_MAKEFLAGS) \
448
top_distdir="$(top_distdir)" distdir="$(distdir)" \
455
install-exec: install-exec-am
456
install-data: install-data-am
457
uninstall: uninstall-am
460
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
462
installcheck: installcheck-am
464
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
465
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
466
`test -z '$(STRIP)' || \
467
echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
473
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
474
-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
476
maintainer-clean-generic:
477
@echo "This command is intended for maintainers to use"
478
@echo "it deletes files that may require special tools to rebuild."
481
clean-am: clean-generic clean-local mostlyclean-am
483
distclean: distclean-am
485
distclean-am: clean-am distclean-generic distclean-local
497
install-data-am: install-data-local
499
install-dvi: install-dvi-am
505
install-html: install-html-am
509
install-info: install-info-am
515
install-pdf: install-pdf-am
519
install-ps: install-ps-am
525
maintainer-clean: maintainer-clean-am
527
maintainer-clean-am: distclean-am maintainer-clean-generic \
528
maintainer-clean-local
530
mostlyclean: mostlyclean-am
532
mostlyclean-am: mostlyclean-generic mostlyclean-local
542
uninstall-am: uninstall-local
544
.MAKE: install-am install-strip
546
.PHONY: all all-am check check-am clean clean-generic clean-local \
547
dist-hook distclean distclean-generic distclean-local distdir \
548
dvi dvi-am html html-am info info-am install install-am \
549
install-data install-data-am install-data-local install-dvi \
550
install-dvi-am install-exec install-exec-am install-html \
551
install-html-am install-info install-info-am install-man \
552
install-pdf install-pdf-am install-ps install-ps-am \
553
install-strip installcheck installcheck-am installdirs \
554
maintainer-clean maintainer-clean-generic \
555
maintainer-clean-local mostlyclean mostlyclean-generic \
556
mostlyclean-local pdf pdf-am ps ps-am uninstall uninstall-am \
564
$(DOC_H_FILE): $(DOC_H_DOCS);
565
@rm -f $@.tmp; touch $@.tmp;
566
echo 'const gchar* documentation_credits[] = {' >> $@.tmp
567
list='$(DOC_H_DOCS)'; for doc in $$list; do \
568
xmlpath="`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`:$(srcdir)/`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`"; \
569
if ! test -f "$$doc"; then doc="$(srcdir)/$$doc"; fi; \
570
xsltproc --path "$$xmlpath" $(_credits) $$doc; \
572
| awk 'BEGIN{s=""}{n=split($$0,w,"<");if(s!=""&&s!=substr(w[1],1,length(w[1])-1)){print s};if(n>1){print $$0;s=""}else{s=$$0}};END{if(s!=""){print s}}' \
573
| sed -e 's/\\/\\\\/' -e 's/"/\\"/' -e 's/\(.*\)/\t"\1",/' >> $@.tmp
574
echo ' NULL' >> $@.tmp
577
list='$(DOC_H_DOCS)'; for doc in $$list; do \
578
xmlpath="`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`:$(srcdir)/`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`"; \
579
if ! test -f "$$doc"; then doc="$(srcdir)/$$doc"; fi; \
580
docid=`echo "$$doc" | sed -e 's/.*\/\([^/]*\)\.xml/\1/' \
581
| sed -e 's/[^a-zA-Z_]/_/g' | tr 'a-z' 'A-Z'`; \
583
ids=`xsltproc --xinclude --path "$$xmlpath" $(_ids) $$doc`; \
584
for id in $$ids; do \
585
echo '#define HELP_'`echo $$docid`'_'`echo $$id \
586
| sed -e 's/[^a-zA-Z_]/_/g' | tr 'a-z' 'A-Z'`' "'$$id'"' >> $@.tmp; \
590
cp $@.tmp $@ && rm -f $@.tmp
593
@HAVE_GNOME_DOC_UTILS_FALSE@ @echo "*** GNOME Doc Utils must be installed in order to make dist"
594
@HAVE_GNOME_DOC_UTILS_FALSE@ @false
596
.PHONY: dist-doc-header
597
dist-doc-header: $(DOC_H_FILE)
598
@if test -f "$(DOC_H_FILE)"; then d=; else d="$(srcdir)/"; fi; \
599
echo "$(INSTALL_DATA) $${d}$(DOC_H_FILE) $(distdir)/$(DOC_H_FILE)"; \
600
$(INSTALL_DATA) "$${d}$(DOC_H_FILE)" "$(distdir)/$(DOC_H_FILE)";
602
doc-dist-hook: dist-check-gdu $(if $(DOC_H_FILE),dist-doc-header)
604
.PHONY: clean-doc-header
605
clean-local: $(_clean_doc_header)
606
distclean-local: $(_clean_doc_header)
607
mostlyclean-local: $(_clean_doc_header)
608
maintainer-clean-local: $(_clean_doc_header)
614
################################################################################
628
DOC_FORMATS ?= docbook
632
################################################################################
634
_xml2po ?= `which xml2po`
636
_db2html ?= `$(PKG_CONFIG) --variable db2html gnome-doc-utils`
637
_db2omf ?= `$(PKG_CONFIG) --variable db2omf gnome-doc-utils`
638
_malrng ?= `$(PKG_CONFIG) --variable malrng gnome-doc-utils`
639
_chunks ?= `$(PKG_CONFIG) --variable xmldir gnome-doc-utils`/gnome/xslt/docbook/utils/chunks.xsl
640
_credits ?= `$(PKG_CONFIG) --variable xmldir gnome-doc-utils`/gnome/xslt/docbook/utils/credits.xsl
641
_ids ?= $(shell $(PKG_CONFIG) --variable xmldir gnome-doc-utils)/gnome/xslt/docbook/utils/ids.xsl
642
@ENABLE_SK_TRUE@_skpkgdatadir ?= `scrollkeeper-config --pkgdatadir`
643
@ENABLE_SK_TRUE@_sklocalstatedir ?= `scrollkeeper-config --pkglocalstatedir`
644
@ENABLE_SK_TRUE@_skcontentslist ?= $(_skpkgdatadir)/Templates/C/scrollkeeper_cl.xml
646
$(_DOC_OMF_DB) : $(_DOC_OMF_IN)
647
$(_DOC_OMF_DB) : $(DOC_MODULE)-%.omf : %/$(DOC_MODULE).xml
648
@test "x$(_ENABLE_SK)" != "xtrue" -o -f "$(_skcontentslist)" || { \
649
echo "The file '$(_skcontentslist)' does not exist." >&2; \
650
echo "Please check your ScrollKeeper installation." >&2; \
652
xsltproc -o $@ $(call db2omf_args,$@,$<,'docbook') || { rm -f "$@"; exit 1; }
654
$(_DOC_OMF_HTML) : $(_DOC_OMF_IN)
655
$(_DOC_OMF_HTML) : $(DOC_MODULE)-html-%.omf : %/$(DOC_MODULE).xml
656
@ENABLE_SK_TRUE@ @test "x$(_ENABLE_SK)" != "xtrue" -o -f "$(_skcontentslist)" || { \
657
@ENABLE_SK_TRUE@ echo "The file '$(_skcontentslist)' does not exist" >&2; \
658
@ENABLE_SK_TRUE@ echo "Please check your ScrollKeeper installation." >&2; \
659
@ENABLE_SK_TRUE@ exit 1; }
660
xsltproc -o $@ $(call db2omf_args,$@,$<,'xhtml') || { rm -f "$@"; exit 1; }
672
@if ! test -d $(dir $@); then \
673
echo "mkdir $(dir $@)"; \
676
@if test ! -f $@ -a -f $(srcdir)/$@; then \
677
echo "cp $(srcdir)/$@ $@"; \
678
cp "$(srcdir)/$@" "$@"; \
681
list='$(_DOC_C_DOCS_NOENT)'; for doc in $$list; do \
682
docs="$$docs $(_DOC_ABS_SRCDIR)/$$doc"; \
684
if ! test -f $@; then \
685
echo "(cd $(dir $@) && \
686
$(_xml2po) -m $(_xml2po_mode) -e $$docs > $(notdir $@).tmp && \
687
cp $(notdir $@).tmp $(notdir $@) && rm -f $(notdir $@).tmp)"; \
689
$(_xml2po) -m $(_xml2po_mode) -e $$docs > $(notdir $@).tmp && \
690
cp $(notdir $@).tmp $(notdir $@) && rm -f $(notdir $@).tmp); \
692
echo "(cd $(dir $@) && \
693
$(_xml2po) -m $(_xml2po_mode) -e -u $(notdir $@) $$docs)"; \
695
$(_xml2po) -m $(_xml2po_mode) -e -u $(notdir $@) $$docs); \
698
$(_DOC_MOFILES): %.mo: %.po
699
@if ! test -d $(dir $@); then \
700
echo "mkdir $(dir $@)"; \
705
# FIXME: fix the dependancy
706
# FIXME: hook xml2po up
707
$(_DOC_LC_DOCS) : $(_DOC_MOFILES)
708
$(_DOC_LC_DOCS) : $(_DOC_C_DOCS)
709
if ! test -d $(dir $@); then mkdir $(dir $@); fi
710
if [ -f "C/$(notdir $@)" ]; then d="../"; else d="$(_DOC_ABS_SRCDIR)/"; fi; \
711
mo="$(dir $@)$(patsubst %/$(notdir $@),%,$@).mo"; \
712
if [ -f "$${mo}" ]; then mo="../$${mo}"; else mo="$(_DOC_ABS_SRCDIR)/$${mo}"; fi; \
714
$(_xml2po) -m $(_xml2po_mode) -e -t "$${mo}" \
715
"$${d}C/$(notdir $@)" > $(notdir $@).tmp && \
716
cp $(notdir $@).tmp $(notdir $@) && rm -f $(notdir $@).tmp)
719
$(_DOC_POT): $(_DOC_C_DOCS_NOENT)
720
$(_xml2po) -m $(_xml2po_mode) -e -o $@ $^
722
$(_DOC_HTML_TOPS): $(_DOC_C_DOCS) $(_DOC_LC_DOCS)
723
xsltproc -o $@ --xinclude --param db.chunk.chunk_top "false()" --stringparam db.chunk.basename "$(DOC_MODULE)" --stringparam db.chunk.extension ".xhtml" $(_db2html) $(patsubst %.xhtml,%.xml,$@)
725
################################################################################
728
$(_DOC_C_DOCS) $(_DOC_LC_DOCS) \
729
$(_DOC_OMF_ALL) $(_DOC_DSK_ALL) \
730
$(_DOC_HTML_ALL) $(_DOC_POFILES)
732
################################################################################
734
.PHONY: clean-doc-omf clean-doc-dsk clean-doc-lc clean-doc-dir
736
clean-doc-omf: ; rm -f $(_DOC_OMF_DB) $(_DOC_OMF_HTML)
737
clean-doc-dsk: ; rm -f $(_DOC_DSK_DB) $(_DOC_DSK_HTML)
739
rm -f $(_DOC_LC_DOCS)
740
rm -f $(_DOC_MOFILES)
741
@list='$(_DOC_POFILES)'; for po in $$list; do \
742
if ! test "$$po" -ef "$(srcdir)/$$po"; then \
747
# .xml2.po.mo cleaning is obsolete as of 0.18.1 and could be removed in 0.20.x
748
@for lc in C $(_DOC_REAL_LINGUAS); do \
749
if test -f "$$lc/.xml2po.mo"; then \
750
echo "rm -f $$lc/.xml2po.mo"; \
751
rm -f "$$lc/.xml2po.mo"; \
754
clean-doc-dir: clean-doc-lc
755
@for lc in C $(_DOC_REAL_LINGUAS); do \
756
for dir in `find $$lc -depth -type d`; do \
757
if ! test $$dir -ef $(srcdir)/$$dir; then \
758
echo "rmdir $$dir"; \
765
$(_clean_omf) $(_clean_dsk) \
766
$(_clean_lc) $(_clean_dir)
768
$(_clean_omf) $(_clean_dsk) \
769
$(_clean_lc) $(_clean_dir)
771
$(_clean_omf) $(_clean_dsk) \
772
$(_clean_lc) $(_clean_dir)
773
maintainer-clean-local: \
774
$(_clean_omf) $(_clean_dsk) \
775
$(_clean_lc) $(_clean_dir)
777
################################################################################
779
.PHONY: dist-doc-docs dist-doc-pages dist-doc-figs dist-doc-omf dist-doc-dsk
781
$(if $(DOC_MODULE)$(DOC_ID),dist-doc-docs) \
782
$(if $(_DOC_C_FIGURES),dist-doc-figs) \
783
$(if $(_DOC_OMF_IN),dist-doc-omf)
784
# $(if $(_DOC_DSK_IN),dist-doc-dsk)
786
dist-doc-docs: $(_DOC_C_DOCS) $(_DOC_LC_DOCS) $(_DOC_POFILES)
787
@for lc in C $(_DOC_REAL_LINGUAS); do \
788
echo " $(mkinstalldirs) $(distdir)/$$lc"; \
789
$(mkinstalldirs) "$(distdir)/$$lc"; \
791
@list='$(_DOC_C_DOCS) $(_DOC_LC_DOCS) $(_DOC_POFILES)'; \
792
for doc in $$list; do \
793
if test -f "$$doc"; then d=; else d="$(srcdir)/"; fi; \
794
docdir=`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`; \
795
if ! test -d "$(distdir)/$$docdir"; then \
796
echo "$(mkinstalldirs) $(distdir)/$$docdir"; \
797
$(mkinstalldirs) "$(distdir)/$$docdir"; \
799
echo "$(INSTALL_DATA) $$d$$doc $(distdir)/$$doc"; \
800
$(INSTALL_DATA) "$$d$$doc" "$(distdir)/$$doc"; \
803
dist-doc-figs: $(_DOC_SRC_FIGURES)
804
@list='$(_DOC_C_FIGURES) $(_DOC_LC_FIGURES)'; \
805
for fig in $$list; do \
806
if test -f "$$fig"; then d=; else d="$(srcdir)/"; fi; \
807
if test -f "$$d$$fig"; then \
808
figdir=`echo $$fig | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`; \
809
if ! test -d "$(distdir)/$$figdir"; then \
810
echo "$(mkinstalldirs) $(distdir)/$$figdir"; \
811
$(mkinstalldirs) "$(distdir)/$$figdir"; \
813
echo "$(INSTALL_DATA) $$d$$fig $(distdir)/$$fig"; \
814
$(INSTALL_DATA) "$$d$$fig" "$(distdir)/$$fig"; \
819
@if test -f "$(_DOC_OMF_IN)"; then d=; else d="$(srcdir)/"; fi; \
820
echo "$(INSTALL_DATA) $$d$(_DOC_OMF_IN) $(distdir)/$(notdir $(_DOC_OMF_IN))"; \
821
$(INSTALL_DATA) "$$d$(_DOC_OMF_IN)" "$(distdir)/$(notdir $(_DOC_OMF_IN))"
824
@if test -f "$(_DOC_DSK_IN)"; then d=; else d="$(srcdir)/"; fi; \
825
echo "$(INSTALL_DATA) $$d$(_DOC_DSK_IN) $(distdir)/$(notdir $(_DOC_DSK_IN))"; \
826
$(INSTALL_DATA) "$$d$(_DOC_DSK_IN)" "$(distdir)/$(notdir $(_DOC_DSK_IN))"
828
################################################################################
830
.PHONY: check-doc-docs check-doc-omf
832
$(if $(DOC_MODULE),check-doc-docs) \
833
$(if $(DOC_ID),check-doc-pages) \
834
$(if $(_DOC_OMF_IN),check-doc-omf)
836
check-doc-docs: $(_DOC_C_DOCS) $(_DOC_LC_DOCS)
837
@for lc in C $(_DOC_REAL_LINGUAS); do \
843
xmlpath="$$lc:$(srcdir)/$$lc"; \
845
echo "xmllint --noout --noent --path $$xmlpath --xinclude --postvalid $$d$$lc/$(DOC_MODULE).xml"; \
846
xmllint --noout --noent --path "$$xmlpath" --xinclude --postvalid "$$d$$lc/$(DOC_MODULE).xml"; \
849
check-doc-pages: $(_DOC_C_PAGES) $(_DOC_LC_PAGES)
850
for lc in C $(_DOC_REAL_LINGUAS); do \
856
xmlpath="$$lc:$(srcdir)/$$lc"; \
858
for page in $(DOC_PAGES); do \
859
echo "xmllint --noout --noent --path $$xmlpath --xinclude --relaxng $(_malrng) $$d$$lc/$$page"; \
860
xmllint --noout --noent --path "$$xmlpath" --xinclude --relaxng "$(_malrng)" "$$d$$lc/$$page"; \
864
check-doc-omf: $(_DOC_OMF_ALL)
865
@list='$(_DOC_OMF_ALL)'; for omf in $$list; do \
866
echo "xmllint --noout --xinclude --dtdvalid 'http://scrollkeeper.sourceforge.net/dtds/scrollkeeper-omf-1.0/scrollkeeper-omf.dtd' $$omf"; \
867
xmllint --noout --xinclude --dtdvalid 'http://scrollkeeper.sourceforge.net/dtds/scrollkeeper-omf-1.0/scrollkeeper-omf.dtd' $$omf; \
870
################################################################################
872
.PHONY: install-doc-docs install-doc-html install-doc-figs install-doc-omf install-doc-dsk
874
install-data-local: \
875
$(if $(DOC_MODULE)$(DOC_ID),install-doc-docs) \
876
$(if $(_DOC_HTML_ALL),install-doc-html) \
877
$(if $(_DOC_C_FIGURES),install-doc-figs) \
878
$(if $(_DOC_OMF_IN),install-doc-omf)
879
# $(if $(_DOC_DSK_IN),install-doc-dsk)
882
@for lc in C $(_DOC_REAL_LINGUAS); do \
883
echo "$(mkinstalldirs) $(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$lc"; \
884
$(mkinstalldirs) $(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$lc; \
886
@list='$(_DOC_C_DOCS) $(_DOC_LC_DOCS)'; for doc in $$list; do \
887
if test -f "$$doc"; then d=; else d="$(srcdir)/"; fi; \
888
docdir="$$lc/"`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`; \
889
docdir="$(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$docdir"; \
890
if ! test -d "$$docdir"; then \
891
echo "$(mkinstalldirs) $$docdir"; \
892
$(mkinstalldirs) "$$docdir"; \
894
echo "$(INSTALL_DATA) $$d$$doc $(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$doc"; \
895
$(INSTALL_DATA) $$d$$doc $(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$doc; \
899
@list='$(patsubst C/%,%,$(_DOC_C_FIGURES))'; for fig in $$list; do \
900
for lc in C $(_DOC_REAL_LINGUAS); do \
902
if test -f "$$lc/$$fig"; then \
903
figfile="$$lc/$$fig"; \
904
elif test -f "$(srcdir)/$$lc/$$fig"; then \
905
figfile="$(srcdir)/$$lc/$$fig"; \
909
figdir="$$lc/"`echo $$fig | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`; \
910
figdir="$(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$figdir"; \
911
if ! test -d "$$figdir"; then \
912
echo "$(mkinstalldirs) $$figdir"; \
913
$(mkinstalldirs) "$$figdir"; \
915
figbase=`echo $$fig | sed -e 's/^.*\///'`; \
916
if $$figsymlink; then \
917
echo "cd $$figdir && $(LN_S) -f ../../C/$$fig $$figbase"; \
918
( cd "$$figdir" && $(LN_S) -f "../../C/$$fig" "$$figbase" ); \
920
echo "$(INSTALL_DATA) $$figfile $$figdir$$figbase"; \
921
$(INSTALL_DATA) "$$figfile" "$$figdir$$figbase"; \
930
$(mkinstalldirs) $(DESTDIR)$(OMF_DIR)/$(_doc_install_dir)
931
@list='$(_DOC_OMF_ALL)'; for omf in $$list; do \
932
echo "$(INSTALL_DATA) $$omf $(DESTDIR)$(OMF_DIR)/$(_doc_install_dir)/$$omf"; \
933
$(INSTALL_DATA) $$omf $(DESTDIR)$(OMF_DIR)/$(_doc_install_dir)/$$omf; \
935
@if test "x$(_ENABLE_SK)" = "xtrue"; then \
936
echo "scrollkeeper-update -p $(DESTDIR)$(_sklocalstatedir) -o $(DESTDIR)$(OMF_DIR)/$(_doc_install_dir)"; \
937
scrollkeeper-update -p "$(DESTDIR)$(_sklocalstatedir)" -o "$(DESTDIR)$(OMF_DIR)/$(_doc_install_dir)"; \
943
################################################################################
945
.PHONY: uninstall-doc-docs uninstall-doc-html uninstall-doc-figs uninstall-doc-omf uninstall-doc-dsk
947
$(if $(DOC_MODULE)$(DOC_ID),uninstall-doc-docs) \
948
$(if $(_DOC_HTML_ALL),uninstall-doc-html) \
949
$(if $(_DOC_C_FIGURES),uninstall-doc-figs) \
950
$(if $(_DOC_OMF_IN),uninstall-doc-omf)
951
# $(if $(_DOC_DSK_IN),uninstall-doc-dsk)
954
@list='$(_DOC_C_DOCS) $(_DOC_LC_DOCS)'; for doc in $$list; do \
955
echo " rm -f $(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$doc"; \
956
rm -f "$(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$doc"; \
960
@list='$(_DOC_C_FIGURES) $(_DOC_LC_FIGURES)'; for fig in $$list; do \
961
echo "rm -f $(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$fig"; \
962
rm -f "$(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$fig"; \
966
@list='$(_DOC_OMF_ALL)'; for omf in $$list; do \
967
if test "x$(_ENABLE_SK)" = "xtrue"; then \
968
echo "scrollkeeper-uninstall -p $(_sklocalstatedir) $(DESTDIR)$(OMF_DIR)/$(_doc_install_dir)/$$omf"; \
969
scrollkeeper-uninstall -p "$(_sklocalstatedir)" "$(DESTDIR)$(OMF_DIR)/$(_doc_install_dir)/$$omf"; \
971
echo "rm -f $(DESTDIR)$(OMF_DIR)/$(_doc_install_dir)/$$omf"; \
972
rm -f "$(DESTDIR)$(OMF_DIR)/$(_doc_install_dir)/$$omf"; \
975
dist-hook: doc-dist-hook
979
yelp-build cache C/*.page
980
yelp-build html -o html C/*.page
982
# Tell versions [3.59,3.63) of GNU make to not export all variables.
983
# Otherwise a system limit (for SysV at least) may be exceeded.