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
build_triplet = @build@
60
DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
61
$(top_srcdir)/gnome-doc-utils.make
63
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
64
am__aclocal_m4_deps = $(top_srcdir)/m4/gnome-doc-utils.m4 \
65
$(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
66
$(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
67
$(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/configure.ac
68
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
70
mkinstalldirs = $(install_sh) -d
71
CONFIG_HEADER = $(top_builddir)/config.h
73
CONFIG_CLEAN_VPATH_FILES =
74
AM_V_GEN = $(am__v_GEN_$(V))
75
am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
76
am__v_GEN_0 = @echo " GEN " $@;
77
AM_V_at = $(am__v_at_$(V))
78
am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))
82
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
85
AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
88
AUTOHEADER = @AUTOHEADER@
92
CCDEPMODE = @CCDEPMODE@
94
CHECK_CFLAGS = @CHECK_CFLAGS@
95
CHECK_LIBS = @CHECK_LIBS@
98
CYGPATH_W = @CYGPATH_W@
99
DBUSGLIB_CFLAGS = @DBUSGLIB_CFLAGS@
100
DBUSGLIB_LIBS = @DBUSGLIB_LIBS@
103
DISTCHECK_CONFIGURE_FLAGS = @DISTCHECK_CONFIGURE_FLAGS@
105
DOC_USER_FORMATS = @DOC_USER_FORMATS@
106
DSYMUTIL = @DSYMUTIL@
114
GCONF_CFLAGS = @GCONF_CFLAGS@
115
GCONF_LIBS = @GCONF_LIBS@
116
GCONF_SCHEMA_CONFIG_SOURCE = @GCONF_SCHEMA_CONFIG_SOURCE@
117
GCONF_SCHEMA_FILE_DIR = @GCONF_SCHEMA_FILE_DIR@
118
GLIB_CFLAGS = @GLIB_CFLAGS@
119
GLIB_LIBS = @GLIB_LIBS@
121
GTK_CFLAGS = @GTK_CFLAGS@
122
GTK_LIBS = @GTK_LIBS@
123
HELP_DIR = @HELP_DIR@
125
INSTALL_DATA = @INSTALL_DATA@
126
INSTALL_PROGRAM = @INSTALL_PROGRAM@
127
INSTALL_SCRIPT = @INSTALL_SCRIPT@
128
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
131
LIBNOTIFY_CFLAGS = @LIBNOTIFY_CFLAGS@
132
LIBNOTIFY_LIBS = @LIBNOTIFY_LIBS@
138
LTLIBOBJS = @LTLIBOBJS@
139
MAKEINFO = @MAKEINFO@
140
MANIFEST_TOOL = @MANIFEST_TOOL@
150
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
151
PACKAGE_NAME = @PACKAGE_NAME@
152
PACKAGE_STRING = @PACKAGE_STRING@
153
PACKAGE_TARNAME = @PACKAGE_TARNAME@
154
PACKAGE_URL = @PACKAGE_URL@
155
PACKAGE_VERSION = @PACKAGE_VERSION@
156
PATH_SEPARATOR = @PATH_SEPARATOR@
157
PKG_CONFIG = @PKG_CONFIG@
158
PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
159
PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
162
SET_MAKE = @SET_MAKE@
166
WEBKIT_CFLAGS = @WEBKIT_CFLAGS@
167
WEBKIT_LIBS = @WEBKIT_LIBS@
168
abs_builddir = @abs_builddir@
169
abs_srcdir = @abs_srcdir@
170
abs_top_builddir = @abs_top_builddir@
171
abs_top_srcdir = @abs_top_srcdir@
172
ac_ct_AR = @ac_ct_AR@
173
ac_ct_CC = @ac_ct_CC@
174
ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
175
am__include = @am__include@
176
am__leading_dot = @am__leading_dot@
177
am__quote = @am__quote@
179
am__untar = @am__untar@
182
build_alias = @build_alias@
183
build_cpu = @build_cpu@
184
build_os = @build_os@
185
build_vendor = @build_vendor@
186
builddir = @builddir@
188
datarootdir = @datarootdir@
191
exec_prefix = @exec_prefix@
193
host_alias = @host_alias@
194
host_cpu = @host_cpu@
196
host_vendor = @host_vendor@
198
includedir = @includedir@
200
install_sh = @install_sh@
202
libexecdir = @libexecdir@
203
localedir = @localedir@
204
localstatedir = @localstatedir@
207
oldincludedir = @oldincludedir@
210
program_transform_name = @program_transform_name@
213
sharedstatedir = @sharedstatedir@
215
sysconfdir = @sysconfdir@
216
target_alias = @target_alias@
217
top_build_prefix = @top_build_prefix@
218
top_builddir = @top_builddir@
219
top_srcdir = @top_srcdir@
220
_clean_doc_header = $(if $(DOC_H_FILE),clean-doc-header)
221
_DOC_REAL_FORMATS = $(if $(DOC_USER_FORMATS),$(DOC_USER_FORMATS),$(DOC_FORMATS))
222
_DOC_REAL_LINGUAS = $(if $(filter environment,$(origin LINGUAS)), \
223
$(filter $(LINGUAS),$(DOC_LINGUAS)), \
226
_DOC_ABS_SRCDIR = @abs_srcdir@
227
_xml2po_mode = $(if $(DOC_ID),mallard,docbook)
228
@ENABLE_SK_TRUE@_ENABLE_SK = true
230
################################################################################
232
--stringparam db2omf.basename $(DOC_MODULE) \
233
--stringparam db2omf.format $(3) \
234
--stringparam db2omf.dtd \
235
$(shell xmllint --format $(2) | grep -h PUBLIC | head -n 1 \
236
| sed -e 's/.*PUBLIC \(\"[^\"]*\"\).*/\1/') \
237
--stringparam db2omf.lang $(notdir $(patsubst %/$(notdir $(2)),%,$(2))) \
238
--stringparam db2omf.omf_dir "$(OMF_DIR)" \
239
--stringparam db2omf.help_dir "$(HELP_DIR)" \
240
--stringparam db2omf.omf_in "$(_DOC_OMF_IN)" \
241
$(if $(_ENABLE_SK), \
242
--stringparam db2omf.scrollkeeper_cl "$(_skcontentslist)") \
245
_DOC_OMF_IN = $(if $(DOC_MODULE),$(wildcard $(_DOC_ABS_SRCDIR)/$(DOC_MODULE).omf.in))
246
_DOC_OMF_DB = $(if $(_DOC_OMF_IN), \
247
$(foreach lc,C $(_DOC_REAL_LINGUAS),$(DOC_MODULE)-$(lc).omf))
249
_DOC_OMF_HTML = $(if $(_DOC_OMF_IN), \
250
$(foreach lc,C $(_DOC_REAL_LINGUAS),$(DOC_MODULE)-html-$(lc).omf))
255
$(if $(filter docbook,$(_DOC_REAL_FORMATS)),$(_DOC_OMF_DB)) \
256
$(if $(filter html HTML,$(_DOC_REAL_FORMATS)),$(_DOC_OMF_HTML))
259
################################################################################
260
_DOC_C_MODULE = $(if $(DOC_MODULE),C/$(DOC_MODULE).xml)
261
_DOC_C_PAGES = $(foreach page,$(DOC_PAGES),C/$(page))
262
_DOC_C_ENTITIES = $(foreach ent,$(DOC_ENTITIES),C/$(ent))
263
_DOC_C_INCLUDES = $(foreach inc,$(DOC_INCLUDES),C/$(inc))
265
$(_DOC_C_ENTITIES) $(_DOC_C_INCLUDES) \
266
$(_DOC_C_PAGES) $(_DOC_C_MODULE)
268
_DOC_C_DOCS_NOENT = \
269
$(_DOC_C_MODULE) $(_DOC_C_INCLUDES) \
272
_DOC_C_FIGURES = $(if $(DOC_FIGURES), \
273
$(foreach fig,$(DOC_FIGURES),C/$(fig)), \
274
$(patsubst $(srcdir)/%,%,$(wildcard $(srcdir)/C/figures/*.png)))
277
# FIXME: probably have to shell escape to determine the file names
278
_DOC_C_HTML = $(foreach f, \
279
$(shell xsltproc --xinclude \
280
--stringparam db.chunk.basename "$(DOC_MODULE)" \
281
$(_chunks) "C/$(DOC_MODULE).xml"), \
285
###############################################################################
286
_DOC_POFILES = $(if $(DOC_MODULE)$(DOC_ID), \
287
$(foreach lc,$(_DOC_REAL_LINGUAS),$(lc)/$(lc).po))
289
_DOC_MOFILES = $(patsubst %.po,%.mo,$(_DOC_POFILES))
290
_DOC_LC_MODULES = $(if $(DOC_MODULE), \
291
$(foreach lc,$(_DOC_REAL_LINGUAS),$(lc)/$(DOC_MODULE).xml))
294
$(foreach lc,$(_DOC_REAL_LINGUAS),$(foreach page,$(_DOC_C_PAGES), \
295
$(lc)/$(notdir $(page)) ))
298
$(foreach lc,$(_DOC_REAL_LINGUAS),$(foreach inc,$(_DOC_C_INCLUDES), \
299
$(lc)/$(notdir $(inc)) ))
302
# FIXME: probably have to shell escape to determine the file names
304
$(foreach lc,$(_DOC_REAL_LINGUAS),$(foreach doc,$(_DOC_C_HTML), \
305
$(lc)/$(notdir $(doc)) ))
308
$(_DOC_LC_MODULES) $(_DOC_LC_INCLUDES) $(_DOC_LC_PAGES) \
309
$(if $(filter html HTML,$(_DOC_REAL_FORMATS)),$(_DOC_LC_HTML))
311
_DOC_LC_FIGURES = $(foreach lc,$(_DOC_REAL_LINGUAS), \
312
$(patsubst C/%,$(lc)/%,$(_DOC_C_FIGURES)) )
315
$(foreach fig,$(_DOC_C_FIGURES), $(foreach lc,C $(_DOC_REAL_LINGUAS), \
316
$(wildcard $(srcdir)/$(lc)/$(patsubst C/%,%,$(fig))) ))
318
_DOC_POT = $(if $(DOC_MODULE),$(DOC_MODULE).pot,$(if $(DOC_ID),$(DOC_ID).pot))
320
################################################################################
321
_DOC_HTML_ALL = $(if $(filter html HTML,$(_DOC_REAL_FORMATS)), \
322
$(_DOC_C_HTML) $(_DOC_LC_HTML))
324
_DOC_HTML_TOPS = $(foreach lc,C $(_DOC_REAL_LINGUAS),$(lc)/$(DOC_MODULE).xhtml)
325
_clean_omf = $(if $(_DOC_OMF_IN),clean-doc-omf)
326
_clean_dsk = $(if $(_DOC_DSK_IN),clean-doc-dsk)
327
_clean_lc = $(if $(_DOC_REAL_LINGUAS),clean-doc-lc)
328
_clean_dir = $(if $(DOC_MODULE)$(DOC_ID),clean-doc-dir)
329
_doc_install_dir = $(if $(DOC_ID),$(DOC_ID),$(DOC_MODULE))
330
DOC_MODULE = sflphone
331
DOC_ENTITIES = legal.xml
333
DOC_FIGURES = figures/addressbook-button.png \
336
figures/call-second.png \
340
figures/holdoff.png \
343
figures/transfer.png \
344
figures/transfer-go.png \
345
figures/voicemail.png \
346
figures/rec-settings.png \
347
figures/desktop-notif-settings.png \
348
figures/callshistory-settings.png \
349
figures/configfile-settings.png \
350
figures/notif-example.png \
351
figures/systemtray-settings.png \
352
figures/voicemail-notif.png \
353
figures/account_advanced.png \
354
figures/accounts_security.png \
355
figures/drag_n_drop.png \
356
figures/conference.png \
357
figures/conference_detached.png \
358
figures/conference_attached.png \
359
figures/srtp_enabled.png \
360
figures/zrtp_options.png
366
$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(top_srcdir)/gnome-doc-utils.make $(am__configure_deps)
368
case '$(am__configure_deps)' in \
370
( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
371
&& { if test -f $@; then exit 0; else break; fi; }; \
375
echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu doc/Makefile'; \
376
$(am__cd) $(top_srcdir) && \
377
$(AUTOMAKE) --gnu doc/Makefile
379
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
382
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
384
echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
385
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
388
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
389
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
391
$(top_srcdir)/configure: $(am__configure_deps)
392
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
393
$(ACLOCAL_M4): $(am__aclocal_m4_deps)
394
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
395
$(am__aclocal_m4_deps):
409
distdir: $(DISTFILES)
410
@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
411
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
412
list='$(DISTFILES)'; \
413
dist_files=`for file in $$list; do echo $$file; done | \
414
sed -e "s|^$$srcdirstrip/||;t" \
415
-e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
416
case $$dist_files in \
417
*/*) $(MKDIR_P) `echo "$$dist_files" | \
418
sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
421
for file in $$dist_files; do \
422
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
423
if test -d $$d/$$file; then \
424
dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
425
if test -d "$(distdir)/$$file"; then \
426
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
428
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
429
cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
430
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
432
cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
434
test -f "$(distdir)/$$file" \
435
|| cp -p $$d/$$file "$(distdir)/$$file" \
439
$(MAKE) $(AM_MAKEFLAGS) \
440
top_distdir="$(top_distdir)" distdir="$(distdir)" \
447
install-exec: install-exec-am
448
install-data: install-data-am
449
uninstall: uninstall-am
452
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
454
installcheck: installcheck-am
456
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
457
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
458
`test -z '$(STRIP)' || \
459
echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
465
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
466
-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
468
maintainer-clean-generic:
469
@echo "This command is intended for maintainers to use"
470
@echo "it deletes files that may require special tools to rebuild."
473
clean-am: clean-generic clean-libtool clean-local mostlyclean-am
475
distclean: distclean-am
477
distclean-am: clean-am distclean-generic distclean-local
491
install-data-am: install-data-local
493
install-dvi: install-dvi-am
499
install-html: install-html-am
503
install-info: install-info-am
509
install-pdf: install-pdf-am
513
install-ps: install-ps-am
519
maintainer-clean: maintainer-clean-am
521
maintainer-clean-am: distclean-am maintainer-clean-generic \
522
maintainer-clean-local
524
mostlyclean: mostlyclean-am
526
mostlyclean-am: mostlyclean-generic mostlyclean-libtool \
537
uninstall-am: uninstall-local
539
.MAKE: install-am install-strip
541
.PHONY: all all-am check check-am clean clean-generic clean-libtool \
542
clean-local dist-hook distclean distclean-generic \
543
distclean-libtool distclean-local distdir dvi dvi-am html \
544
html-am info info-am install install-am install-data \
545
install-data-am install-data-local install-dvi install-dvi-am \
546
install-exec install-exec-am install-html install-html-am \
547
install-info install-info-am install-man install-pdf \
548
install-pdf-am install-ps install-ps-am install-strip \
549
installcheck installcheck-am installdirs maintainer-clean \
550
maintainer-clean-generic maintainer-clean-local mostlyclean \
551
mostlyclean-generic mostlyclean-libtool mostlyclean-local pdf \
552
pdf-am ps ps-am uninstall uninstall-am uninstall-local
559
$(DOC_H_FILE): $(DOC_H_DOCS);
560
@rm -f $@.tmp; touch $@.tmp;
561
echo 'const gchar* documentation_credits[] = {' >> $@.tmp
562
list='$(DOC_H_DOCS)'; for doc in $$list; do \
563
xmlpath="`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`:$(srcdir)/`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`"; \
564
if ! test -f "$$doc"; then doc="$(srcdir)/$$doc"; fi; \
565
xsltproc --path "$$xmlpath" $(_credits) $$doc; \
567
| 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}}' \
568
| sed -e 's/\\/\\\\/' -e 's/"/\\"/' -e 's/\(.*\)/\t"\1",/' >> $@.tmp
569
echo ' NULL' >> $@.tmp
572
list='$(DOC_H_DOCS)'; for doc in $$list; do \
573
xmlpath="`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`:$(srcdir)/`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`"; \
574
if ! test -f "$$doc"; then doc="$(srcdir)/$$doc"; fi; \
575
docid=`echo "$$doc" | sed -e 's/.*\/\([^/]*\)\.xml/\1/' \
576
| sed -e 's/[^a-zA-Z_]/_/g' | tr 'a-z' 'A-Z'`; \
578
ids=`xsltproc --xinclude --path "$$xmlpath" $(_ids) $$doc`; \
579
for id in $$ids; do \
580
echo '#define HELP_'`echo $$docid`'_'`echo $$id \
581
| sed -e 's/[^a-zA-Z_]/_/g' | tr 'a-z' 'A-Z'`' "'$$id'"' >> $@.tmp; \
585
cp $@.tmp $@ && rm -f $@.tmp
588
@HAVE_GNOME_DOC_UTILS_FALSE@ @echo "*** GNOME Doc Utils must be installed in order to make dist"
589
@HAVE_GNOME_DOC_UTILS_FALSE@ @false
591
.PHONY: dist-doc-header
592
dist-doc-header: $(DOC_H_FILE)
593
@if test -f "$(DOC_H_FILE)"; then d=; else d="$(srcdir)/"; fi; \
594
echo "$(INSTALL_DATA) $${d}$(DOC_H_FILE) $(distdir)/$(DOC_H_FILE)"; \
595
$(INSTALL_DATA) "$${d}$(DOC_H_FILE)" "$(distdir)/$(DOC_H_FILE)";
597
doc-dist-hook: dist-check-gdu $(if $(DOC_H_FILE),dist-doc-header)
599
.PHONY: clean-doc-header
600
clean-local: $(_clean_doc_header)
601
distclean-local: $(_clean_doc_header)
602
mostlyclean-local: $(_clean_doc_header)
603
maintainer-clean-local: $(_clean_doc_header)
609
################################################################################
623
DOC_FORMATS ?= docbook
627
################################################################################
629
_xml2po ?= `which xml2po`
631
_db2html ?= `$(PKG_CONFIG) --variable db2html gnome-doc-utils`
632
_db2omf ?= `$(PKG_CONFIG) --variable db2omf gnome-doc-utils`
633
_malrng ?= `$(PKG_CONFIG) --variable malrng gnome-doc-utils`
634
_chunks ?= `$(PKG_CONFIG) --variable xmldir gnome-doc-utils`/gnome/xslt/docbook/utils/chunks.xsl
635
_credits ?= `$(PKG_CONFIG) --variable xmldir gnome-doc-utils`/gnome/xslt/docbook/utils/credits.xsl
636
_ids ?= $(shell $(PKG_CONFIG) --variable xmldir gnome-doc-utils)/gnome/xslt/docbook/utils/ids.xsl
637
@ENABLE_SK_TRUE@_skpkgdatadir ?= `scrollkeeper-config --pkgdatadir`
638
@ENABLE_SK_TRUE@_sklocalstatedir ?= `scrollkeeper-config --pkglocalstatedir`
639
@ENABLE_SK_TRUE@_skcontentslist ?= $(_skpkgdatadir)/Templates/C/scrollkeeper_cl.xml
641
$(_DOC_OMF_DB) : $(_DOC_OMF_IN)
642
$(_DOC_OMF_DB) : $(DOC_MODULE)-%.omf : %/$(DOC_MODULE).xml
643
@test "x$(_ENABLE_SK)" != "xtrue" -o -f "$(_skcontentslist)" || { \
644
echo "The file '$(_skcontentslist)' does not exist." >&2; \
645
echo "Please check your ScrollKeeper installation." >&2; \
647
xsltproc -o $@ $(call db2omf_args,$@,$<,'docbook') || { rm -f "$@"; exit 1; }
649
$(_DOC_OMF_HTML) : $(_DOC_OMF_IN)
650
$(_DOC_OMF_HTML) : $(DOC_MODULE)-html-%.omf : %/$(DOC_MODULE).xml
651
@ENABLE_SK_TRUE@ @test "x$(_ENABLE_SK)" != "xtrue" -o -f "$(_skcontentslist)" || { \
652
@ENABLE_SK_TRUE@ echo "The file '$(_skcontentslist)' does not exist" >&2; \
653
@ENABLE_SK_TRUE@ echo "Please check your ScrollKeeper installation." >&2; \
654
@ENABLE_SK_TRUE@ exit 1; }
655
xsltproc -o $@ $(call db2omf_args,$@,$<,'xhtml') || { rm -f "$@"; exit 1; }
667
@if ! test -d $(dir $@); then \
668
echo "mkdir $(dir $@)"; \
671
@if test ! -f $@ -a -f $(srcdir)/$@; then \
672
echo "cp $(srcdir)/$@ $@"; \
673
cp "$(srcdir)/$@" "$@"; \
676
list='$(_DOC_C_DOCS_NOENT)'; for doc in $$list; do \
677
docs="$$docs $(_DOC_ABS_SRCDIR)/$$doc"; \
679
if ! test -f $@; then \
680
echo "(cd $(dir $@) && \
681
$(_xml2po) -m $(_xml2po_mode) -e $$docs > $(notdir $@).tmp && \
682
cp $(notdir $@).tmp $(notdir $@) && rm -f $(notdir $@).tmp)"; \
684
$(_xml2po) -m $(_xml2po_mode) -e $$docs > $(notdir $@).tmp && \
685
cp $(notdir $@).tmp $(notdir $@) && rm -f $(notdir $@).tmp); \
687
echo "(cd $(dir $@) && \
688
$(_xml2po) -m $(_xml2po_mode) -e -u $(notdir $@) $$docs)"; \
690
$(_xml2po) -m $(_xml2po_mode) -e -u $(notdir $@) $$docs); \
693
$(_DOC_MOFILES): %.mo: %.po
694
@if ! test -d $(dir $@); then \
695
echo "mkdir $(dir $@)"; \
700
# FIXME: fix the dependancy
701
# FIXME: hook xml2po up
702
$(_DOC_LC_DOCS) : $(_DOC_MOFILES)
703
$(_DOC_LC_DOCS) : $(_DOC_C_DOCS)
704
if ! test -d $(dir $@); then mkdir $(dir $@); fi
705
if [ -f "C/$(notdir $@)" ]; then d="../"; else d="$(_DOC_ABS_SRCDIR)/"; fi; \
706
mo="$(dir $@)$(patsubst %/$(notdir $@),%,$@).mo"; \
707
if [ -f "$${mo}" ]; then mo="../$${mo}"; else mo="$(_DOC_ABS_SRCDIR)/$${mo}"; fi; \
709
$(_xml2po) -m $(_xml2po_mode) -e -t "$${mo}" \
710
"$${d}C/$(notdir $@)" > $(notdir $@).tmp && \
711
cp $(notdir $@).tmp $(notdir $@) && rm -f $(notdir $@).tmp)
714
$(_DOC_POT): $(_DOC_C_DOCS_NOENT)
715
$(_xml2po) -m $(_xml2po_mode) -e -o $@ $^
717
$(_DOC_HTML_TOPS): $(_DOC_C_DOCS) $(_DOC_LC_DOCS)
718
xsltproc -o $@ --xinclude --param db.chunk.chunk_top "false()" --stringparam db.chunk.basename "$(DOC_MODULE)" --stringparam db.chunk.extension ".xhtml" $(_db2html) $(patsubst %.xhtml,%.xml,$@)
720
################################################################################
723
$(_DOC_C_DOCS) $(_DOC_LC_DOCS) \
724
$(_DOC_OMF_ALL) $(_DOC_DSK_ALL) \
725
$(_DOC_HTML_ALL) $(_DOC_POFILES)
727
################################################################################
729
.PHONY: clean-doc-omf clean-doc-dsk clean-doc-lc clean-doc-dir
731
clean-doc-omf: ; rm -f $(_DOC_OMF_DB) $(_DOC_OMF_HTML)
732
clean-doc-dsk: ; rm -f $(_DOC_DSK_DB) $(_DOC_DSK_HTML)
734
rm -f $(_DOC_LC_DOCS)
735
rm -f $(_DOC_MOFILES)
736
@list='$(_DOC_POFILES)'; for po in $$list; do \
737
if ! test "$$po" -ef "$(srcdir)/$$po"; then \
742
# .xml2.po.mo cleaning is obsolete as of 0.18.1 and could be removed in 0.20.x
743
@for lc in C $(_DOC_REAL_LINGUAS); do \
744
if test -f "$$lc/.xml2po.mo"; then \
745
echo "rm -f $$lc/.xml2po.mo"; \
746
rm -f "$$lc/.xml2po.mo"; \
749
clean-doc-dir: clean-doc-lc
750
@for lc in C $(_DOC_REAL_LINGUAS); do \
751
for dir in `find $$lc -depth -type d`; do \
752
if ! test $$dir -ef $(srcdir)/$$dir; then \
753
echo "rmdir $$dir"; \
760
$(_clean_omf) $(_clean_dsk) \
761
$(_clean_lc) $(_clean_dir)
763
$(_clean_omf) $(_clean_dsk) \
764
$(_clean_lc) $(_clean_dir)
766
$(_clean_omf) $(_clean_dsk) \
767
$(_clean_lc) $(_clean_dir)
768
maintainer-clean-local: \
769
$(_clean_omf) $(_clean_dsk) \
770
$(_clean_lc) $(_clean_dir)
772
################################################################################
774
.PHONY: dist-doc-docs dist-doc-pages dist-doc-figs dist-doc-omf dist-doc-dsk
776
$(if $(DOC_MODULE)$(DOC_ID),dist-doc-docs) \
777
$(if $(_DOC_C_FIGURES),dist-doc-figs) \
778
$(if $(_DOC_OMF_IN),dist-doc-omf)
779
# $(if $(_DOC_DSK_IN),dist-doc-dsk)
781
dist-doc-docs: $(_DOC_C_DOCS) $(_DOC_LC_DOCS) $(_DOC_POFILES)
782
@for lc in C $(_DOC_REAL_LINGUAS); do \
783
echo " $(mkinstalldirs) $(distdir)/$$lc"; \
784
$(mkinstalldirs) "$(distdir)/$$lc"; \
786
@list='$(_DOC_C_DOCS) $(_DOC_LC_DOCS) $(_DOC_POFILES)'; \
787
for doc in $$list; do \
788
if test -f "$$doc"; then d=; else d="$(srcdir)/"; fi; \
789
docdir=`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`; \
790
if ! test -d "$(distdir)/$$docdir"; then \
791
echo "$(mkinstalldirs) $(distdir)/$$docdir"; \
792
$(mkinstalldirs) "$(distdir)/$$docdir"; \
794
echo "$(INSTALL_DATA) $$d$$doc $(distdir)/$$doc"; \
795
$(INSTALL_DATA) "$$d$$doc" "$(distdir)/$$doc"; \
798
dist-doc-figs: $(_DOC_SRC_FIGURES)
799
@list='$(_DOC_C_FIGURES) $(_DOC_LC_FIGURES)'; \
800
for fig in $$list; do \
801
if test -f "$$fig"; then d=; else d="$(srcdir)/"; fi; \
802
if test -f "$$d$$fig"; then \
803
figdir=`echo $$fig | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`; \
804
if ! test -d "$(distdir)/$$figdir"; then \
805
echo "$(mkinstalldirs) $(distdir)/$$figdir"; \
806
$(mkinstalldirs) "$(distdir)/$$figdir"; \
808
echo "$(INSTALL_DATA) $$d$$fig $(distdir)/$$fig"; \
809
$(INSTALL_DATA) "$$d$$fig" "$(distdir)/$$fig"; \
814
@if test -f "$(_DOC_OMF_IN)"; then d=; else d="$(srcdir)/"; fi; \
815
echo "$(INSTALL_DATA) $$d$(_DOC_OMF_IN) $(distdir)/$(notdir $(_DOC_OMF_IN))"; \
816
$(INSTALL_DATA) "$$d$(_DOC_OMF_IN)" "$(distdir)/$(notdir $(_DOC_OMF_IN))"
819
@if test -f "$(_DOC_DSK_IN)"; then d=; else d="$(srcdir)/"; fi; \
820
echo "$(INSTALL_DATA) $$d$(_DOC_DSK_IN) $(distdir)/$(notdir $(_DOC_DSK_IN))"; \
821
$(INSTALL_DATA) "$$d$(_DOC_DSK_IN)" "$(distdir)/$(notdir $(_DOC_DSK_IN))"
823
################################################################################
825
.PHONY: check-doc-docs check-doc-omf
827
$(if $(DOC_MODULE),check-doc-docs) \
828
$(if $(DOC_ID),check-doc-pages) \
829
$(if $(_DOC_OMF_IN),check-doc-omf)
831
check-doc-docs: $(_DOC_C_DOCS) $(_DOC_LC_DOCS)
832
@for lc in C $(_DOC_REAL_LINGUAS); do \
838
xmlpath="$$lc:$(srcdir)/$$lc"; \
840
echo "xmllint --noout --noent --path $$xmlpath --xinclude --postvalid $$d$$lc/$(DOC_MODULE).xml"; \
841
xmllint --noout --noent --path "$$xmlpath" --xinclude --postvalid "$$d$$lc/$(DOC_MODULE).xml"; \
844
check-doc-pages: $(_DOC_C_PAGES) $(_DOC_LC_PAGES)
845
for lc in C $(_DOC_REAL_LINGUAS); do \
851
xmlpath="$$lc:$(srcdir)/$$lc"; \
853
for page in $(DOC_PAGES); do \
854
echo "xmllint --noout --noent --path $$xmlpath --xinclude --relaxng $(_malrng) $$d$$lc/$$page"; \
855
xmllint --noout --noent --path "$$xmlpath" --xinclude --relaxng "$(_malrng)" "$$d$$lc/$$page"; \
859
check-doc-omf: $(_DOC_OMF_ALL)
860
@list='$(_DOC_OMF_ALL)'; for omf in $$list; do \
861
echo "xmllint --noout --xinclude --dtdvalid 'http://scrollkeeper.sourceforge.net/dtds/scrollkeeper-omf-1.0/scrollkeeper-omf.dtd' $$omf"; \
862
xmllint --noout --xinclude --dtdvalid 'http://scrollkeeper.sourceforge.net/dtds/scrollkeeper-omf-1.0/scrollkeeper-omf.dtd' $$omf; \
865
################################################################################
867
.PHONY: install-doc-docs install-doc-html install-doc-figs install-doc-omf install-doc-dsk
869
install-data-local: \
870
$(if $(DOC_MODULE)$(DOC_ID),install-doc-docs) \
871
$(if $(_DOC_HTML_ALL),install-doc-html) \
872
$(if $(_DOC_C_FIGURES),install-doc-figs) \
873
$(if $(_DOC_OMF_IN),install-doc-omf)
874
# $(if $(_DOC_DSK_IN),install-doc-dsk)
877
@for lc in C $(_DOC_REAL_LINGUAS); do \
878
echo "$(mkinstalldirs) $(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$lc"; \
879
$(mkinstalldirs) $(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$lc; \
881
@list='$(_DOC_C_DOCS) $(_DOC_LC_DOCS)'; for doc in $$list; do \
882
if test -f "$$doc"; then d=; else d="$(srcdir)/"; fi; \
883
docdir="$$lc/"`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`; \
884
docdir="$(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$docdir"; \
885
if ! test -d "$$docdir"; then \
886
echo "$(mkinstalldirs) $$docdir"; \
887
$(mkinstalldirs) "$$docdir"; \
889
echo "$(INSTALL_DATA) $$d$$doc $(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$doc"; \
890
$(INSTALL_DATA) $$d$$doc $(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$doc; \
894
@list='$(patsubst C/%,%,$(_DOC_C_FIGURES))'; for fig in $$list; do \
895
for lc in C $(_DOC_REAL_LINGUAS); do \
897
if test -f "$$lc/$$fig"; then \
898
figfile="$$lc/$$fig"; \
899
elif test -f "$(srcdir)/$$lc/$$fig"; then \
900
figfile="$(srcdir)/$$lc/$$fig"; \
904
figdir="$$lc/"`echo $$fig | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`; \
905
figdir="$(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$figdir"; \
906
if ! test -d "$$figdir"; then \
907
echo "$(mkinstalldirs) $$figdir"; \
908
$(mkinstalldirs) "$$figdir"; \
910
figbase=`echo $$fig | sed -e 's/^.*\///'`; \
911
if $$figsymlink; then \
912
echo "cd $$figdir && $(LN_S) -f ../../C/$$fig $$figbase"; \
913
( cd "$$figdir" && $(LN_S) -f "../../C/$$fig" "$$figbase" ); \
915
echo "$(INSTALL_DATA) $$figfile $$figdir$$figbase"; \
916
$(INSTALL_DATA) "$$figfile" "$$figdir$$figbase"; \
925
$(mkinstalldirs) $(DESTDIR)$(OMF_DIR)/$(_doc_install_dir)
926
@list='$(_DOC_OMF_ALL)'; for omf in $$list; do \
927
echo "$(INSTALL_DATA) $$omf $(DESTDIR)$(OMF_DIR)/$(_doc_install_dir)/$$omf"; \
928
$(INSTALL_DATA) $$omf $(DESTDIR)$(OMF_DIR)/$(_doc_install_dir)/$$omf; \
930
@if test "x$(_ENABLE_SK)" = "xtrue"; then \
931
echo "scrollkeeper-update -p $(DESTDIR)$(_sklocalstatedir) -o $(DESTDIR)$(OMF_DIR)/$(_doc_install_dir)"; \
932
scrollkeeper-update -p "$(DESTDIR)$(_sklocalstatedir)" -o "$(DESTDIR)$(OMF_DIR)/$(_doc_install_dir)"; \
938
################################################################################
940
.PHONY: uninstall-doc-docs uninstall-doc-html uninstall-doc-figs uninstall-doc-omf uninstall-doc-dsk
942
$(if $(DOC_MODULE)$(DOC_ID),uninstall-doc-docs) \
943
$(if $(_DOC_HTML_ALL),uninstall-doc-html) \
944
$(if $(_DOC_C_FIGURES),uninstall-doc-figs) \
945
$(if $(_DOC_OMF_IN),uninstall-doc-omf)
946
# $(if $(_DOC_DSK_IN),uninstall-doc-dsk)
949
@list='$(_DOC_C_DOCS) $(_DOC_LC_DOCS)'; for doc in $$list; do \
950
echo " rm -f $(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$doc"; \
951
rm -f "$(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$doc"; \
955
@list='$(_DOC_C_FIGURES) $(_DOC_LC_FIGURES)'; for fig in $$list; do \
956
echo "rm -f $(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$fig"; \
957
rm -f "$(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$fig"; \
961
@list='$(_DOC_OMF_ALL)'; for omf in $$list; do \
962
if test "x$(_ENABLE_SK)" = "xtrue"; then \
963
echo "scrollkeeper-uninstall -p $(_sklocalstatedir) $(DESTDIR)$(OMF_DIR)/$(_doc_install_dir)/$$omf"; \
964
scrollkeeper-uninstall -p "$(_sklocalstatedir)" "$(DESTDIR)$(OMF_DIR)/$(_doc_install_dir)/$$omf"; \
966
echo "rm -f $(DESTDIR)$(OMF_DIR)/$(_doc_install_dir)/$$omf"; \
967
rm -f "$(DESTDIR)$(OMF_DIR)/$(_doc_install_dir)/$$omf"; \
969
dist-hook: doc-dist-hook
971
# Tell versions [3.59,3.63) of GNU make to not export all variables.
972
# Otherwise a system limit (for SysV at least) may be exceeded.