1
# Makefile.in generated by automake 1.11.5 from Makefile.am.
4
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5
# 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software
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
################################################################################
47
echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \
48
| grep '^AM OK$$' >/dev/null || am__dry=yes;; \
50
for am__flg in $$MAKEFLAGS; do \
53
*n*) am__dry=yes; break;; \
57
test $$am__dry = yes; \
59
pkgdatadir = $(datadir)/@PACKAGE@
60
pkgincludedir = $(includedir)/@PACKAGE@
61
pkglibdir = $(libdir)/@PACKAGE@
62
pkglibexecdir = $(libexecdir)/@PACKAGE@
63
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
64
install_sh_DATA = $(install_sh) -c -m 644
65
install_sh_PROGRAM = $(install_sh) -c
66
install_sh_SCRIPT = $(install_sh) -c
67
INSTALL_HEADER = $(INSTALL_DATA)
68
transform = $(program_transform_name)
75
DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
76
$(top_srcdir)/gnome-doc-utils.make
78
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
79
am__aclocal_m4_deps = $(top_srcdir)/m4/gnome-doc-utils.m4 \
80
$(top_srcdir)/m4/intltool.m4 $(top_srcdir)/configure.ac
81
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
83
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
84
CONFIG_HEADER = $(top_builddir)/config.h
86
CONFIG_CLEAN_VPATH_FILES =
87
AM_V_GEN = $(am__v_GEN_@AM_V@)
88
am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
89
am__v_GEN_0 = @echo " GEN " $@;
90
AM_V_at = $(am__v_at_@AM_V@)
91
am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
95
am__can_run_installinfo = \
96
case $$AM_UPDATE_INFO_DIR in \
98
*) (install-info --version) >/dev/null 2>&1;; \
100
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
102
ALL_LINGUAS = @ALL_LINGUAS@
104
AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
105
AUTOCONF = @AUTOCONF@
106
AUTOHEADER = @AUTOHEADER@
107
AUTOMAKE = @AUTOMAKE@
109
CATALOGS = @CATALOGS@
110
CATOBJEXT = @CATOBJEXT@
112
CCDEPMODE = @CCDEPMODE@
115
CPPFLAGS = @CPPFLAGS@
116
CYGPATH_W = @CYGPATH_W@
117
DATADIRNAME = @DATADIRNAME@
120
DEPENDENCIES_CFLAGS = @DEPENDENCIES_CFLAGS@
121
DEPENDENCIES_LIBS = @DEPENDENCIES_LIBS@
122
DISABLE_DEPRECATED = @DISABLE_DEPRECATED@
123
DISTCHECK_CONFIGURE_FLAGS = @DISTCHECK_CONFIGURE_FLAGS@
124
DOC_USER_FORMATS = @DOC_USER_FORMATS@
130
GETTEXT_PACKAGE = @GETTEXT_PACKAGE@
131
GLIB_COMPILE_SCHEMAS = @GLIB_COMPILE_SCHEMAS@
132
GLIB_MKENUMS = @GLIB_MKENUMS@
133
GMOFILES = @GMOFILES@
136
GSETTINGS_DISABLE_SCHEMAS_COMPILE = @GSETTINGS_DISABLE_SCHEMAS_COMPILE@
137
HELP_DIR = @HELP_DIR@
139
INSTALL_DATA = @INSTALL_DATA@
140
INSTALL_PROGRAM = @INSTALL_PROGRAM@
141
INSTALL_SCRIPT = @INSTALL_SCRIPT@
142
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
143
INSTOBJEXT = @INSTOBJEXT@
144
INTLLIBS = @INTLLIBS@
145
INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@
146
INTLTOOL_MERGE = @INTLTOOL_MERGE@
147
INTLTOOL_PERL = @INTLTOOL_PERL@
148
INTLTOOL_UPDATE = @INTLTOOL_UPDATE@
149
INTLTOOL_V_MERGE = @INTLTOOL_V_MERGE@
150
INTLTOOL_V_MERGE_OPTIONS = @INTLTOOL_V_MERGE_OPTIONS@
151
INTLTOOL__v_MERGE_ = @INTLTOOL__v_MERGE_@
152
INTLTOOL__v_MERGE_0 = @INTLTOOL__v_MERGE_0@
157
LTLIBOBJS = @LTLIBOBJS@
159
MAKEINFO = @MAKEINFO@
161
MKINSTALLDIRS = @MKINSTALLDIRS@
163
MSGFMT_OPTS = @MSGFMT_OPTS@
164
MSGMERGE = @MSGMERGE@
168
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
169
PACKAGE_NAME = @PACKAGE_NAME@
170
PACKAGE_STRING = @PACKAGE_STRING@
171
PACKAGE_TARNAME = @PACKAGE_TARNAME@
172
PACKAGE_URL = @PACKAGE_URL@
173
PACKAGE_VERSION = @PACKAGE_VERSION@
174
PATH_SEPARATOR = @PATH_SEPARATOR@
175
PKG_CONFIG = @PKG_CONFIG@
176
PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
177
PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
180
PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@
181
PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@
182
SET_MAKE = @SET_MAKE@
187
WARN_CFLAGS = @WARN_CFLAGS@
188
XGETTEXT = @XGETTEXT@
189
abs_builddir = @abs_builddir@
190
abs_srcdir = @abs_srcdir@
191
abs_top_builddir = @abs_top_builddir@
192
abs_top_srcdir = @abs_top_srcdir@
193
ac_ct_CC = @ac_ct_CC@
194
am__include = @am__include@
195
am__leading_dot = @am__leading_dot@
196
am__quote = @am__quote@
198
am__untar = @am__untar@
200
build_alias = @build_alias@
201
builddir = @builddir@
203
datarootdir = @datarootdir@
206
exec_prefix = @exec_prefix@
207
gsettingsschemadir = @gsettingsschemadir@
208
host_alias = @host_alias@
210
includedir = @includedir@
212
install_sh = @install_sh@
213
intltool__v_merge_options_ = @intltool__v_merge_options_@
214
intltool__v_merge_options_0 = @intltool__v_merge_options_0@
216
libexecdir = @libexecdir@
217
localedir = @localedir@
218
localstatedir = @localstatedir@
221
oldincludedir = @oldincludedir@
224
program_transform_name = @program_transform_name@
227
sharedstatedir = @sharedstatedir@
229
sysconfdir = @sysconfdir@
230
target_alias = @target_alias@
231
top_build_prefix = @top_build_prefix@
232
top_builddir = @top_builddir@
233
top_srcdir = @top_srcdir@
234
AUTOMAKE_OPTIONS = -Wno-portability
235
_clean_doc_header = $(if $(DOC_H_FILE),clean-doc-header)
236
_DOC_REAL_FORMATS = $(if $(DOC_USER_FORMATS),$(DOC_USER_FORMATS),$(DOC_FORMATS))
237
_DOC_REAL_LINGUAS = $(if $(filter environment,$(origin LINGUAS)), \
238
$(filter $(LINGUAS),$(DOC_LINGUAS)), \
241
_DOC_ABS_SRCDIR = @abs_srcdir@
242
_xml2po_mode = $(if $(DOC_ID),mallard,docbook)
243
@ENABLE_SK_TRUE@_ENABLE_SK = true
245
################################################################################
246
GDU_V_XML2PO = $(GDU__v_XML2PO_$(V))
247
GDU__v_XML2PO_ = $(GDU__v_XML2PO_$(AM_DEFAULT_VERBOSITY))
248
GDU__v_XML2PO_0 = @echo " XML2PO" $@;
249
GDU_V_MSGFMT = $(GDU__v_MSGFMT_$(V))
250
GDU__v_MSGFMT_ = $(GDU__v_MSGFMT_$(AM_DEFAULT_VERBOSITY))
251
GDU__v_MSGFMT_0 = @echo " MSGFMT" $@;
252
GDU_V_DB2OMF = $(GDU__v_DB2OMF_$(V))
253
GDU__v_DB2OMF_ = $(GDU__v_DB2OMF_$(AM_DEFAULT_VERBOSITY))
254
GDU__v_DB2OMF_0 = @echo " DB2OMF" $@;
255
GDU_V_DB2HTM = $(GDU__v_DB2HTM_$(V))
256
GDU__v_DB2HTM_ = $(GDU__v_DB2HTM_$(AM_DEFAULT_VERBOSITY))
257
GDU__v_DB2HTM_0 = @echo " DB2HTM" $@;
259
################################################################################
261
--stringparam db2omf.basename $(DOC_MODULE) \
262
--stringparam db2omf.format $(3) \
263
--stringparam db2omf.dtd \
264
$(shell xmllint --format $(2) | grep -h PUBLIC | head -n 1 \
265
| sed -e 's/.*PUBLIC \(\"[^\"]*\"\).*/\1/') \
266
--stringparam db2omf.lang $(notdir $(patsubst %/$(notdir $(2)),%,$(2))) \
267
--stringparam db2omf.omf_dir "$(OMF_DIR)" \
268
--stringparam db2omf.help_dir "$(HELP_DIR)" \
269
--stringparam db2omf.omf_in "$(_DOC_OMF_IN)" \
270
$(if $(_ENABLE_SK), \
271
--stringparam db2omf.scrollkeeper_cl "$(_skcontentslist)") \
274
_DOC_OMF_IN = $(if $(DOC_MODULE),$(wildcard $(_DOC_ABS_SRCDIR)/$(DOC_MODULE).omf.in))
275
_DOC_OMF_DB = $(if $(_DOC_OMF_IN), \
276
$(foreach lc,C $(_DOC_REAL_LINGUAS),$(DOC_MODULE)-$(lc).omf))
278
_DOC_OMF_HTML = $(if $(_DOC_OMF_IN), \
279
$(foreach lc,C $(_DOC_REAL_LINGUAS),$(DOC_MODULE)-html-$(lc).omf))
284
$(if $(filter docbook,$(_DOC_REAL_FORMATS)),$(_DOC_OMF_DB)) \
285
$(if $(filter html HTML,$(_DOC_REAL_FORMATS)),$(_DOC_OMF_HTML))
288
################################################################################
289
_DOC_C_MODULE = $(if $(DOC_MODULE),C/$(DOC_MODULE).xml)
290
_DOC_C_PAGES = $(foreach page,$(DOC_PAGES),C/$(page))
291
_DOC_C_ENTITIES = $(foreach ent,$(DOC_ENTITIES),C/$(ent))
292
_DOC_C_INCLUDES = $(foreach inc,$(DOC_INCLUDES),C/$(inc))
294
$(_DOC_C_ENTITIES) $(_DOC_C_INCLUDES) \
295
$(_DOC_C_PAGES) $(_DOC_C_MODULE)
297
_DOC_C_DOCS_NOENT = \
298
$(_DOC_C_MODULE) $(_DOC_C_INCLUDES) \
301
_DOC_C_FIGURES = $(if $(DOC_FIGURES), \
302
$(foreach fig,$(DOC_FIGURES),C/$(fig)), \
303
$(patsubst $(srcdir)/%,%,$(wildcard $(srcdir)/C/figures/*.png)))
306
# FIXME: probably have to shell escape to determine the file names
307
_DOC_C_HTML = $(foreach f, \
308
$(shell xsltproc --xinclude \
309
--stringparam db.chunk.basename "$(DOC_MODULE)" \
310
$(_chunks) "C/$(DOC_MODULE).xml"), \
314
###############################################################################
315
_DOC_POFILES = $(if $(DOC_MODULE)$(DOC_ID), \
316
$(foreach lc,$(_DOC_REAL_LINGUAS),$(lc)/$(lc).po))
318
_DOC_MOFILES = $(patsubst %.po,%.mo,$(_DOC_POFILES))
319
_DOC_LC_MODULES = $(if $(DOC_MODULE), \
320
$(foreach lc,$(_DOC_REAL_LINGUAS),$(lc)/$(DOC_MODULE).xml))
323
$(foreach lc,$(_DOC_REAL_LINGUAS),$(foreach page,$(_DOC_C_PAGES), \
324
$(lc)/$(notdir $(page)) ))
327
$(foreach lc,$(_DOC_REAL_LINGUAS),$(foreach inc,$(_DOC_C_INCLUDES), \
328
$(lc)/$(notdir $(inc)) ))
331
# FIXME: probably have to shell escape to determine the file names
333
$(foreach lc,$(_DOC_REAL_LINGUAS),$(foreach doc,$(_DOC_C_HTML), \
334
$(lc)/$(notdir $(doc)) ))
337
$(_DOC_LC_MODULES) $(_DOC_LC_INCLUDES) $(_DOC_LC_PAGES) \
338
$(if $(filter html HTML,$(_DOC_REAL_FORMATS)),$(_DOC_LC_HTML))
340
_DOC_LC_FIGURES = $(foreach lc,$(_DOC_REAL_LINGUAS), \
341
$(patsubst C/%,$(lc)/%,$(_DOC_C_FIGURES)) )
344
$(foreach fig,$(_DOC_C_FIGURES), $(foreach lc,C $(_DOC_REAL_LINGUAS), \
345
$(wildcard $(srcdir)/$(lc)/$(patsubst C/%,%,$(fig))) ))
347
_DOC_POT = $(if $(DOC_MODULE),$(DOC_MODULE).pot,$(if $(DOC_ID),$(DOC_ID).pot))
349
################################################################################
350
_DOC_HTML_ALL = $(if $(filter html HTML,$(_DOC_REAL_FORMATS)), \
351
$(_DOC_C_HTML) $(_DOC_LC_HTML))
353
_DOC_HTML_TOPS = $(foreach lc,C $(_DOC_REAL_LINGUAS),$(lc)/$(DOC_MODULE).xhtml)
354
_clean_omf = $(if $(_DOC_OMF_IN),clean-doc-omf)
355
_clean_dsk = $(if $(_DOC_DSK_IN),clean-doc-dsk)
356
_clean_lc = $(if $(_DOC_REAL_LINGUAS),clean-doc-lc)
357
_clean_dir = $(if $(DOC_MODULE)$(DOC_ID),clean-doc-dir)
358
_doc_install_dir = $(if $(DOC_ID),$(DOC_ID),$(DOC_MODULE))
359
DOC_MODULE = mousetweaks
360
DOC_ENTITIES = legal.xml
362
DOC_LINGUAS = ca cs de el en_GB es fr it oc sl sv zh_CN
366
$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(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 help/Makefile'; \
376
$(am__cd) $(top_srcdir) && \
377
$(AUTOMAKE) --gnu help/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);; \
387
$(top_srcdir)/gnome-doc-utils.make:
389
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
390
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
392
$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
393
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
394
$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
395
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
396
$(am__aclocal_m4_deps):
404
distdir: $(DISTFILES)
405
@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
406
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
407
list='$(DISTFILES)'; \
408
dist_files=`for file in $$list; do echo $$file; done | \
409
sed -e "s|^$$srcdirstrip/||;t" \
410
-e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
411
case $$dist_files in \
412
*/*) $(MKDIR_P) `echo "$$dist_files" | \
413
sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
416
for file in $$dist_files; do \
417
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
418
if test -d $$d/$$file; then \
419
dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
420
if test -d "$(distdir)/$$file"; then \
421
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
423
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
424
cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
425
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
427
cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
429
test -f "$(distdir)/$$file" \
430
|| cp -p $$d/$$file "$(distdir)/$$file" \
434
$(MAKE) $(AM_MAKEFLAGS) \
435
top_distdir="$(top_distdir)" distdir="$(distdir)" \
442
install-exec: install-exec-am
443
install-data: install-data-am
444
uninstall: uninstall-am
447
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
449
installcheck: installcheck-am
451
if test -z '$(STRIP)'; then \
452
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
453
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
456
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
457
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
458
"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-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-local
536
uninstall-am: uninstall-local
538
.MAKE: install-am install-strip
540
.PHONY: all all-am check check-am clean clean-generic clean-local \
541
dist-hook distclean distclean-generic distclean-local distdir \
542
dvi dvi-am html html-am info info-am install install-am \
543
install-data install-data-am install-data-local install-dvi \
544
install-dvi-am install-exec install-exec-am install-html \
545
install-html-am install-info install-info-am install-man \
546
install-pdf install-pdf-am install-ps install-ps-am \
547
install-strip installcheck installcheck-am installdirs \
548
maintainer-clean maintainer-clean-generic \
549
maintainer-clean-local mostlyclean mostlyclean-generic \
550
mostlyclean-local pdf pdf-am ps ps-am uninstall uninstall-am \
558
$(DOC_H_FILE): $(DOC_H_DOCS);
559
@rm -f $@.tmp; touch $@.tmp;
560
echo 'const gchar* documentation_credits[] = {' >> $@.tmp
561
list='$(DOC_H_DOCS)'; for doc in $$list; do \
562
xmlpath="`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`:$(srcdir)/`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`"; \
563
if ! test -f "$$doc"; then doc="$(srcdir)/$$doc"; fi; \
564
xsltproc --path "$$xmlpath" $(_credits) $$doc; \
566
| 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}}' \
567
| sed -e 's/\\/\\\\/' -e 's/"/\\"/' -e 's/\(.*\)/\t"\1",/' >> $@.tmp
568
echo ' NULL' >> $@.tmp
571
list='$(DOC_H_DOCS)'; for doc in $$list; do \
572
xmlpath="`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`:$(srcdir)/`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`"; \
573
if ! test -f "$$doc"; then doc="$(srcdir)/$$doc"; fi; \
574
docid=`echo "$$doc" | sed -e 's/.*\/\([^/]*\)\.xml/\1/' \
575
| sed -e 's/[^a-zA-Z_]/_/g' | tr 'a-z' 'A-Z'`; \
577
ids=`xsltproc --xinclude --path "$$xmlpath" $(_ids) $$doc`; \
578
for id in $$ids; do \
579
echo '#define HELP_'`echo $$docid`'_'`echo $$id \
580
| sed -e 's/[^a-zA-Z_]/_/g' | tr 'a-z' 'A-Z'`' "'$$id'"' >> $@.tmp; \
584
cp $@.tmp $@ && rm -f $@.tmp
587
@HAVE_GNOME_DOC_UTILS_FALSE@ @echo "*** GNOME Doc Utils must be installed in order to make dist"
588
@HAVE_GNOME_DOC_UTILS_FALSE@ @false
590
.PHONY: dist-doc-header
591
dist-doc-header: $(DOC_H_FILE)
592
@if test -f "$(DOC_H_FILE)"; then d=; else d="$(srcdir)/"; fi; \
593
echo "$(INSTALL_DATA) $${d}$(DOC_H_FILE) $(distdir)/$(DOC_H_FILE)"; \
594
$(INSTALL_DATA) "$${d}$(DOC_H_FILE)" "$(distdir)/$(DOC_H_FILE)";
596
doc-dist-hook: dist-check-gdu $(if $(DOC_H_FILE),dist-doc-header)
598
.PHONY: clean-doc-header
599
clean-local: $(_clean_doc_header)
600
distclean-local: $(_clean_doc_header)
601
mostlyclean-local: $(_clean_doc_header)
602
maintainer-clean-local: $(_clean_doc_header)
608
################################################################################
622
DOC_FORMATS ?= docbook
626
################################################################################
628
_xml2po ?= `which xml2po`
630
_db2html ?= `$(PKG_CONFIG) --variable db2html gnome-doc-utils`
631
_db2omf ?= `$(PKG_CONFIG) --variable db2omf gnome-doc-utils`
632
_chunks ?= `$(PKG_CONFIG) --variable xmldir gnome-doc-utils`/gnome/xslt/docbook/utils/chunks.xsl
633
_credits ?= `$(PKG_CONFIG) --variable xmldir gnome-doc-utils`/gnome/xslt/docbook/utils/credits.xsl
634
_ids ?= $(shell $(PKG_CONFIG) --variable xmldir gnome-doc-utils)/gnome/xslt/docbook/utils/ids.xsl
635
@ENABLE_SK_TRUE@_skpkgdatadir ?= `scrollkeeper-config --pkgdatadir`
636
@ENABLE_SK_TRUE@_sklocalstatedir ?= `scrollkeeper-config --pkglocalstatedir`
637
@ENABLE_SK_TRUE@_skcontentslist ?= $(_skpkgdatadir)/Templates/C/scrollkeeper_cl.xml
639
$(_DOC_OMF_DB) : $(_DOC_OMF_IN)
640
$(_DOC_OMF_DB) : $(DOC_MODULE)-%.omf : %/$(DOC_MODULE).xml
641
@test "x$(_ENABLE_SK)" != "xtrue" -o -f "$(_skcontentslist)" || { \
642
echo "The file '$(_skcontentslist)' does not exist." >&2; \
643
echo "Please check your ScrollKeeper installation." >&2; \
645
$(GDU_V_DB2OMF)xsltproc -o $@ $(call db2omf_args,$@,$<,'docbook') || { rm -f "$@"; exit 1; }
647
$(_DOC_OMF_HTML) : $(_DOC_OMF_IN)
648
$(_DOC_OMF_HTML) : $(DOC_MODULE)-html-%.omf : %/$(DOC_MODULE).xml
649
@ENABLE_SK_TRUE@ @test "x$(_ENABLE_SK)" != "xtrue" -o -f "$(_skcontentslist)" || { \
650
@ENABLE_SK_TRUE@ echo "The file '$(_skcontentslist)' does not exist" >&2; \
651
@ENABLE_SK_TRUE@ echo "Please check your ScrollKeeper installation." >&2; \
652
@ENABLE_SK_TRUE@ exit 1; }
653
$(GDU_V_DB2OMF)xsltproc -o $@ $(call db2omf_args,$@,$<,'xhtml') || { rm -f "$@"; exit 1; }
665
@if ! test -d $(dir $@); then \
666
echo "mkdir $(dir $@)"; \
669
@if test ! -f $@ -a -f $(srcdir)/$@; then \
670
echo "cp $(srcdir)/$@ $@"; \
671
cp "$(srcdir)/$@" "$@"; \
674
list='$(_DOC_C_DOCS_NOENT)'; for doc in $$list; do \
675
docs="$$docs $(_DOC_ABS_SRCDIR)/$$doc"; \
677
if ! test -f $@; then \
678
echo "(cd $(dir $@) && \
679
$(_xml2po) -m $(_xml2po_mode) -e $$docs > $(notdir $@).tmp && \
680
cp $(notdir $@).tmp $(notdir $@) && rm -f $(notdir $@).tmp)"; \
682
$(_xml2po) -m $(_xml2po_mode) -e $$docs > $(notdir $@).tmp && \
683
cp $(notdir $@).tmp $(notdir $@) && rm -f $(notdir $@).tmp); \
685
echo "(cd $(dir $@) && \
686
$(_xml2po) -m $(_xml2po_mode) -e -u $(notdir $@) $$docs)"; \
688
$(_xml2po) -m $(_xml2po_mode) -e -u $(notdir $@) $$docs); \
691
$(_DOC_MOFILES): %.mo: %.po
692
$(AM_V_at)if ! test -d $(dir $@); then mkdir "$(dir $@)"; fi
693
$(GDU_V_MSGFMT)msgfmt -o $@ $<
695
# FIXME: fix the dependancy
696
# FIXME: hook xml2po up
697
$(_DOC_LC_DOCS) : $(_DOC_MOFILES)
698
$(_DOC_LC_DOCS) : $(_DOC_C_DOCS)
699
$(AM_V_at)if ! test -d $(dir $@); then mkdir $(dir $@); fi
700
$(GDU_V_XML2PO)if [ -f "C/$(notdir $@)" ]; then d="../"; else d="$(_DOC_ABS_SRCDIR)/"; fi; \
701
mo="$(dir $@)$(patsubst %/$(notdir $@),%,$@).mo"; \
702
if [ -f "$${mo}" ]; then mo="../$${mo}"; else mo="$(_DOC_ABS_SRCDIR)/$${mo}"; fi; \
704
$(_xml2po) -m $(_xml2po_mode) -e -t "$${mo}" \
705
"$${d}C/$(notdir $@)" > $(notdir $@).tmp && \
706
cp $(notdir $@).tmp $(notdir $@) && rm -f $(notdir $@).tmp)
709
$(_DOC_POT): $(_DOC_C_DOCS_NOENT)
710
$(GDU_V_XML2PO)$(_xml2po) -m $(_xml2po_mode) -e -o $@ $^
712
$(_DOC_HTML_TOPS): $(_DOC_C_DOCS) $(_DOC_LC_DOCS)
713
$(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,$@)
715
################################################################################
718
$(_DOC_C_DOCS) $(_DOC_LC_DOCS) \
719
$(_DOC_OMF_ALL) $(_DOC_DSK_ALL) \
720
$(_DOC_HTML_ALL) $(_DOC_POFILES)
722
################################################################################
724
.PHONY: clean-doc-omf clean-doc-dsk clean-doc-lc clean-doc-dir
726
clean-doc-omf: ; rm -f $(_DOC_OMF_DB) $(_DOC_OMF_HTML)
727
clean-doc-dsk: ; rm -f $(_DOC_DSK_DB) $(_DOC_DSK_HTML)
729
rm -f $(_DOC_LC_DOCS)
730
rm -f $(_DOC_MOFILES)
731
@list='$(_DOC_POFILES)'; for po in $$list; do \
732
if ! test "$$po" -ef "$(srcdir)/$$po"; then \
737
# .xml2.po.mo cleaning is obsolete as of 0.18.1 and could be removed in 0.20.x
738
@for lc in C $(_DOC_REAL_LINGUAS); do \
739
if test -f "$$lc/.xml2po.mo"; then \
740
echo "rm -f $$lc/.xml2po.mo"; \
741
rm -f "$$lc/.xml2po.mo"; \
744
clean-doc-dir: clean-doc-lc
745
@for lc in C $(_DOC_REAL_LINGUAS); do \
746
for dir in `find $$lc -depth -type d`; do \
747
if ! test $$dir -ef $(srcdir)/$$dir; then \
748
echo "rmdir $$dir"; \
755
$(_clean_omf) $(_clean_dsk) \
756
$(_clean_lc) $(_clean_dir)
758
$(_clean_omf) $(_clean_dsk) \
759
$(_clean_lc) $(_clean_dir)
761
$(_clean_omf) $(_clean_dsk) \
762
$(_clean_lc) $(_clean_dir)
763
maintainer-clean-local: \
764
$(_clean_omf) $(_clean_dsk) \
765
$(_clean_lc) $(_clean_dir)
767
################################################################################
769
.PHONY: dist-doc-docs dist-doc-pages dist-doc-figs dist-doc-omf dist-doc-dsk
771
$(if $(DOC_MODULE)$(DOC_ID),dist-doc-docs) \
772
$(if $(_DOC_C_FIGURES),dist-doc-figs) \
773
$(if $(_DOC_OMF_IN),dist-doc-omf)
774
# $(if $(_DOC_DSK_IN),dist-doc-dsk)
776
dist-doc-docs: $(_DOC_C_DOCS) $(_DOC_LC_DOCS) $(_DOC_POFILES)
777
@for lc in C $(_DOC_REAL_LINGUAS); do \
778
echo " $(mkinstalldirs) $(distdir)/$$lc"; \
779
$(mkinstalldirs) "$(distdir)/$$lc"; \
781
@list='$(_DOC_C_DOCS)'; \
782
for doc in $$list; do \
783
if test -f "$$doc"; then d=; else d="$(srcdir)/"; fi; \
784
docdir=`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`; \
785
if ! test -d "$(distdir)/$$docdir"; then \
786
echo "$(mkinstalldirs) $(distdir)/$$docdir"; \
787
$(mkinstalldirs) "$(distdir)/$$docdir"; \
789
echo "$(INSTALL_DATA) $$d$$doc $(distdir)/$$doc"; \
790
$(INSTALL_DATA) "$$d$$doc" "$(distdir)/$$doc"; \
792
@list='$(_DOC_LC_DOCS)'; \
793
for doc in $$list; do \
794
if test -f "$$doc"; then d=; else d="$(srcdir)/"; fi; \
795
docdir=`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`; \
796
if ! test -d "$(distdir)/$$docdir"; then \
797
echo "$(mkinstalldirs) $(distdir)/$$docdir"; \
798
$(mkinstalldirs) "$(distdir)/$$docdir"; \
800
echo "$(INSTALL_DATA) $$d$$doc $(distdir)/$$doc"; \
801
$(INSTALL_DATA) "$$d$$doc" "$(distdir)/$$doc"; \
803
@list='$(_DOC_POFILES)'; \
804
for doc in $$list; do \
805
if test -f "$$doc"; then d=; else d="$(srcdir)/"; fi; \
806
docdir=`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`; \
807
if ! test -d "$(distdir)/$$docdir"; then \
808
echo "$(mkinstalldirs) $(distdir)/$$docdir"; \
809
$(mkinstalldirs) "$(distdir)/$$docdir"; \
811
echo "$(INSTALL_DATA) $$d$$doc $(distdir)/$$doc"; \
812
$(INSTALL_DATA) "$$d$$doc" "$(distdir)/$$doc"; \
815
dist-doc-figs: $(_DOC_SRC_FIGURES)
816
@list='$(_DOC_C_FIGURES) $(_DOC_LC_FIGURES)'; \
817
for fig in $$list; do \
818
if test -f "$$fig"; then d=; else d="$(srcdir)/"; fi; \
819
if test -f "$$d$$fig"; then \
820
figdir=`echo $$fig | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`; \
821
if ! test -d "$(distdir)/$$figdir"; then \
822
echo "$(mkinstalldirs) $(distdir)/$$figdir"; \
823
$(mkinstalldirs) "$(distdir)/$$figdir"; \
825
echo "$(INSTALL_DATA) $$d$$fig $(distdir)/$$fig"; \
826
$(INSTALL_DATA) "$$d$$fig" "$(distdir)/$$fig"; \
831
@if test -f "$(_DOC_OMF_IN)"; then d=; else d="$(srcdir)/"; fi; \
832
echo "$(INSTALL_DATA) $$d$(_DOC_OMF_IN) $(distdir)/$(notdir $(_DOC_OMF_IN))"; \
833
$(INSTALL_DATA) "$$d$(_DOC_OMF_IN)" "$(distdir)/$(notdir $(_DOC_OMF_IN))"
836
@if test -f "$(_DOC_DSK_IN)"; then d=; else d="$(srcdir)/"; fi; \
837
echo "$(INSTALL_DATA) $$d$(_DOC_DSK_IN) $(distdir)/$(notdir $(_DOC_DSK_IN))"; \
838
$(INSTALL_DATA) "$$d$(_DOC_DSK_IN)" "$(distdir)/$(notdir $(_DOC_DSK_IN))"
840
################################################################################
842
.PHONY: check-doc-docs check-doc-omf
844
$(if $(DOC_MODULE),check-doc-docs) \
845
$(if $(DOC_ID),check-doc-pages) \
846
$(if $(_DOC_OMF_IN),check-doc-omf)
848
check-doc-docs: $(_DOC_C_DOCS) $(_DOC_LC_DOCS)
849
@for lc in C $(_DOC_REAL_LINGUAS); do \
855
xmlpath="$$lc:$(srcdir)/$$lc"; \
857
echo "xmllint --noout --noent --path $$xmlpath --xinclude --postvalid $$d$$lc/$(DOC_MODULE).xml"; \
858
xmllint --noout --noent --path "$$xmlpath" --xinclude --postvalid "$$d$$lc/$(DOC_MODULE).xml"; \
861
check-doc-pages: $(_DOC_C_PAGES) $(_DOC_LC_PAGES)
862
for lc in C $(_DOC_REAL_LINGUAS); do \
868
xmlpath="$$lc:$(srcdir)/$$lc"; \
870
for page in $(DOC_PAGES); do \
871
echo "xmllint --noout --noent --path $$xmlpath --xinclude $$d$$lc/$$page"; \
872
xmllint --noout --noent --path "$$xmlpath" --xinclude "$$d$$lc/$$page"; \
876
check-doc-omf: $(_DOC_OMF_ALL)
877
@list='$(_DOC_OMF_ALL)'; for omf in $$list; do \
878
echo "xmllint --noout --xinclude --dtdvalid 'http://scrollkeeper.sourceforge.net/dtds/scrollkeeper-omf-1.0/scrollkeeper-omf.dtd' $$omf"; \
879
xmllint --noout --xinclude --dtdvalid 'http://scrollkeeper.sourceforge.net/dtds/scrollkeeper-omf-1.0/scrollkeeper-omf.dtd' $$omf; \
882
################################################################################
884
.PHONY: install-doc-docs install-doc-html install-doc-figs install-doc-omf install-doc-dsk
886
install-data-local: \
887
$(if $(DOC_MODULE)$(DOC_ID),install-doc-docs) \
888
$(if $(_DOC_HTML_ALL),install-doc-html) \
889
$(if $(_DOC_C_FIGURES),install-doc-figs) \
890
$(if $(_DOC_OMF_IN),install-doc-omf)
891
# $(if $(_DOC_DSK_IN),install-doc-dsk)
894
@for lc in C $(_DOC_REAL_LINGUAS); do \
895
echo "$(mkinstalldirs) $(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$lc"; \
896
$(mkinstalldirs) $(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$lc; \
898
@list='$(_DOC_C_DOCS)'; for doc in $$list; do \
899
if test -f "$$doc"; then d=; else d="$(srcdir)/"; fi; \
900
docdir="$$lc/"`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`; \
901
docdir="$(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$docdir"; \
902
if ! test -d "$$docdir"; then \
903
echo "$(mkinstalldirs) $$docdir"; \
904
$(mkinstalldirs) "$$docdir"; \
906
echo "$(INSTALL_DATA) $$d$$doc $(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$doc"; \
907
$(INSTALL_DATA) $$d$$doc $(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$doc; \
909
@list='$(_DOC_LC_DOCS)'; for doc in $$list; do \
910
if test -f "$$doc"; then d=; else d="$(srcdir)/"; fi; \
911
docdir="$$lc/"`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`; \
912
docdir="$(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$docdir"; \
913
if ! test -d "$$docdir"; then \
914
echo "$(mkinstalldirs) $$docdir"; \
915
$(mkinstalldirs) "$$docdir"; \
917
echo "$(INSTALL_DATA) $$d$$doc $(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$doc"; \
918
$(INSTALL_DATA) $$d$$doc $(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$doc; \
922
@list='$(patsubst C/%,%,$(_DOC_C_FIGURES))'; for fig in $$list; do \
923
for lc in C $(_DOC_REAL_LINGUAS); do \
925
if test -f "$$lc/$$fig"; then \
926
figfile="$$lc/$$fig"; \
927
elif test -f "$(srcdir)/$$lc/$$fig"; then \
928
figfile="$(srcdir)/$$lc/$$fig"; \
932
figdir="$$lc/"`echo $$fig | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`; \
933
figdir="$(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$figdir"; \
934
if ! test -d "$$figdir"; then \
935
echo "$(mkinstalldirs) $$figdir"; \
936
$(mkinstalldirs) "$$figdir"; \
938
figbase=`echo $$fig | sed -e 's/^.*\///'`; \
939
if $$figsymlink; then \
940
echo "cd $$figdir && $(LN_S) -f ../../C/$$fig $$figbase"; \
941
( cd "$$figdir" && $(LN_S) -f "../../C/$$fig" "$$figbase" ); \
943
echo "$(INSTALL_DATA) $$figfile $$figdir$$figbase"; \
944
$(INSTALL_DATA) "$$figfile" "$$figdir$$figbase"; \
953
$(mkinstalldirs) $(DESTDIR)$(OMF_DIR)/$(_doc_install_dir)
954
@list='$(_DOC_OMF_ALL)'; for omf in $$list; do \
955
echo "$(INSTALL_DATA) $$omf $(DESTDIR)$(OMF_DIR)/$(_doc_install_dir)/$$omf"; \
956
$(INSTALL_DATA) $$omf $(DESTDIR)$(OMF_DIR)/$(_doc_install_dir)/$$omf; \
958
@if test "x$(_ENABLE_SK)" = "xtrue"; then \
959
echo "scrollkeeper-update -p $(DESTDIR)$(_sklocalstatedir) -o $(DESTDIR)$(OMF_DIR)/$(_doc_install_dir)"; \
960
scrollkeeper-update -p "$(DESTDIR)$(_sklocalstatedir)" -o "$(DESTDIR)$(OMF_DIR)/$(_doc_install_dir)"; \
966
################################################################################
968
.PHONY: uninstall-doc-docs uninstall-doc-html uninstall-doc-figs uninstall-doc-omf uninstall-doc-dsk
970
$(if $(DOC_MODULE)$(DOC_ID),uninstall-doc-docs) \
971
$(if $(_DOC_HTML_ALL),uninstall-doc-html) \
972
$(if $(_DOC_C_FIGURES),uninstall-doc-figs) \
973
$(if $(_DOC_OMF_IN),uninstall-doc-omf)
974
# $(if $(_DOC_DSK_IN),uninstall-doc-dsk)
977
@list='$(_DOC_C_DOCS)'; for doc in $$list; do \
978
echo " rm -f $(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$doc"; \
979
rm -f "$(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$doc"; \
981
@list='$(_DOC_LC_DOCS)'; for doc in $$list; do \
982
echo " rm -f $(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$doc"; \
983
rm -f "$(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$doc"; \
987
@list='$(_DOC_C_FIGURES) $(_DOC_LC_FIGURES)'; for fig in $$list; do \
988
echo "rm -f $(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$fig"; \
989
rm -f "$(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$fig"; \
993
@list='$(_DOC_OMF_ALL)'; for omf in $$list; do \
994
if test "x$(_ENABLE_SK)" = "xtrue"; then \
995
echo "scrollkeeper-uninstall -p $(_sklocalstatedir) $(DESTDIR)$(OMF_DIR)/$(_doc_install_dir)/$$omf"; \
996
scrollkeeper-uninstall -p "$(_sklocalstatedir)" "$(DESTDIR)$(OMF_DIR)/$(_doc_install_dir)/$$omf"; \
998
echo "rm -f $(DESTDIR)$(OMF_DIR)/$(_doc_install_dir)/$$omf"; \
999
rm -f "$(DESTDIR)$(OMF_DIR)/$(_doc_install_dir)/$$omf"; \
1001
dist-hook: doc-dist-hook
1003
-include $(top_srcdir)/git.mk
1005
# Tell versions [3.59,3.63) of GNU make to not export all variables.
1006
# Otherwise a system limit (for SysV at least) may be exceeded.