1
# Makefile.in generated by automake 1.10 from Makefile.am.
4
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5
# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
6
# This Makefile.in is free software; the Free Software Foundation
7
# gives unlimited permission to copy and/or distribute it,
8
# with or without modifications, as long as this notice is preserved.
10
# This program is distributed in the hope that it will be useful,
11
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
17
# gnome-doc-utils.make - make magic for building documentation
18
# Copyright (C) 2004-2005 Shaun McCance <shaunm@gnome.org>
20
# This program is free software; you can redistribute it and/or modify
21
# it under the terms of the GNU General Public License as published by
22
# the Free Software Foundation; either version 2 of the License, or
23
# (at your option) any later version.
25
# This program is distributed in the hope that it will be useful,
26
# but WITHOUT ANY WARRANTY; without even the implied warranty of
27
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28
# GNU General Public License for more details.
30
# You should have received a copy of the GNU General Public License
31
# along with this program; if not, write to the Free Software Foundation,
32
# Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
34
# As a special exception to the GNU General Public License, if you
35
# distribute this file as part of a program that contains a
36
# configuration script generated by Autoconf, you may include it under
37
# the same distribution terms that you use for the rest of that program.
39
################################################################################
41
pkgdatadir = $(datadir)/@PACKAGE@
42
pkglibdir = $(libdir)/@PACKAGE@
43
pkgincludedir = $(includedir)/@PACKAGE@
44
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
45
install_sh_DATA = $(install_sh) -c -m 644
46
install_sh_PROGRAM = $(install_sh) -c
47
install_sh_SCRIPT = $(install_sh) -c
48
INSTALL_HEADER = $(INSTALL_DATA)
49
transform = $(program_transform_name)
56
build_triplet = @build@
58
DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
59
$(top_srcdir)/gnome-doc-utils.make
60
subdir = help/gq-manual
61
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
62
am__aclocal_m4_deps = $(top_srcdir)/macros/aclocal-include.m4 \
63
$(top_srcdir)/macros/herzi-cflags.m4 \
64
$(top_srcdir)/macros/herzi-gettext.m4 \
65
$(top_srcdir)/macros/herzi-prefix.m4 \
66
$(top_srcdir)/macros/objc.m4 $(top_srcdir)/acinclude.m4 \
67
$(top_srcdir)/configure.in
68
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
70
mkinstalldirs = $(install_sh) -d
71
CONFIG_HEADER = $(top_builddir)/config.h
75
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
77
ALL_LINGUAS = @ALL_LINGUAS@
80
AUTOHEADER = @AUTOHEADER@
84
CATOBJEXT = @CATOBJEXT@
86
CCDEPMODE = @CCDEPMODE@
90
CRYPTO_CFLAGS = @CRYPTO_CFLAGS@
91
CRYPTO_LIBS = @CRYPTO_LIBS@
92
CYGPATH_W = @CYGPATH_W@
93
DATADIRNAME = @DATADIRNAME@
94
DEFINE_LDAP_DEPRECATED = @DEFINE_LDAP_DEPRECATED@
97
DISTCHECK_CONFIGURE_FLAGS = @DISTCHECK_CONFIGURE_FLAGS@
98
DOC_USER_FORMATS = @DOC_USER_FORMATS@
104
GETTEXT_PACKAGE = @GETTEXT_PACKAGE@
105
GLIB_GENMARSHAL = @GLIB_GENMARSHAL@
106
GLIB_MKENUMS = @GLIB_MKENUMS@
107
GMOFILES = @GMOFILES@
109
GQ_CFLAGS = @GQ_CFLAGS@
112
HELP_DIR = @HELP_DIR@
114
INSTALL_DATA = @INSTALL_DATA@
115
INSTALL_PROGRAM = @INSTALL_PROGRAM@
116
INSTALL_SCRIPT = @INSTALL_SCRIPT@
117
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
118
INSTOBJEXT = @INSTOBJEXT@
119
INTLLIBS = @INTLLIBS@
120
INTLTOOL_CAVES_RULE = @INTLTOOL_CAVES_RULE@
121
INTLTOOL_DESKTOP_RULE = @INTLTOOL_DESKTOP_RULE@
122
INTLTOOL_DIRECTORY_RULE = @INTLTOOL_DIRECTORY_RULE@
123
INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@
124
INTLTOOL_KBD_RULE = @INTLTOOL_KBD_RULE@
125
INTLTOOL_KEYS_RULE = @INTLTOOL_KEYS_RULE@
126
INTLTOOL_MERGE = @INTLTOOL_MERGE@
127
INTLTOOL_OAF_RULE = @INTLTOOL_OAF_RULE@
128
INTLTOOL_PERL = @INTLTOOL_PERL@
129
INTLTOOL_POLICY_RULE = @INTLTOOL_POLICY_RULE@
130
INTLTOOL_PONG_RULE = @INTLTOOL_PONG_RULE@
131
INTLTOOL_PROP_RULE = @INTLTOOL_PROP_RULE@
132
INTLTOOL_SCHEMAS_RULE = @INTLTOOL_SCHEMAS_RULE@
133
INTLTOOL_SERVER_RULE = @INTLTOOL_SERVER_RULE@
134
INTLTOOL_SERVICE_RULE = @INTLTOOL_SERVICE_RULE@
135
INTLTOOL_SHEET_RULE = @INTLTOOL_SHEET_RULE@
136
INTLTOOL_SOUNDLIST_RULE = @INTLTOOL_SOUNDLIST_RULE@
137
INTLTOOL_THEME_RULE = @INTLTOOL_THEME_RULE@
138
INTLTOOL_UI_RULE = @INTLTOOL_UI_RULE@
139
INTLTOOL_UPDATE = @INTLTOOL_UPDATE@
140
INTLTOOL_XAM_RULE = @INTLTOOL_XAM_RULE@
141
INTLTOOL_XML_NOMERGE_RULE = @INTLTOOL_XML_NOMERGE_RULE@
142
INTLTOOL_XML_RULE = @INTLTOOL_XML_RULE@
144
LIBGCRYPT_CFLAGS = @LIBGCRYPT_CFLAGS@
145
LIBGCRYPT_CONFIG = @LIBGCRYPT_CONFIG@
146
LIBGCRYPT_LIBS = @LIBGCRYPT_LIBS@
149
LTLIBOBJS = @LTLIBOBJS@
150
MAKEINFO = @MAKEINFO@
152
MKINSTALLDIRS = @MKINSTALLDIRS@
154
MSGFMT_OPTS = @MSGFMT_OPTS@
156
OBJCDEPMODE = @OBJCDEPMODE@
157
OBJC_LDFLAGS = @OBJC_LDFLAGS@
161
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
162
PACKAGE_LOCALE_DIR = @PACKAGE_LOCALE_DIR@
163
PACKAGE_NAME = @PACKAGE_NAME@
164
PACKAGE_PREFIX = @PACKAGE_PREFIX@
165
PACKAGE_STRING = @PACKAGE_STRING@
166
PACKAGE_TARNAME = @PACKAGE_TARNAME@
167
PACKAGE_VERSION = @PACKAGE_VERSION@
168
PATH_SEPARATOR = @PATH_SEPARATOR@
169
PKG_CONFIG = @PKG_CONFIG@
172
PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@
173
PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@
174
SET_MAKE = @SET_MAKE@
179
WERROR_CFLAGS = @WERROR_CFLAGS@
181
XGETTEXT = @XGETTEXT@
182
abs_builddir = @abs_builddir@
183
abs_srcdir = @abs_srcdir@
184
abs_top_builddir = @abs_top_builddir@
185
abs_top_srcdir = @abs_top_srcdir@
186
ac_ct_CC = @ac_ct_CC@
187
ac_ct_OBJC = @ac_ct_OBJC@
188
am__include = @am__include@
189
am__leading_dot = @am__leading_dot@
190
am__quote = @am__quote@
192
am__untar = @am__untar@
195
build_alias = @build_alias@
196
build_cpu = @build_cpu@
197
build_os = @build_os@
198
build_vendor = @build_vendor@
199
builddir = @builddir@
201
datarootdir = @datarootdir@
204
enable_update_mimedb = @enable_update_mimedb@
205
exec_prefix = @exec_prefix@
207
host_alias = @host_alias@
208
host_cpu = @host_cpu@
210
host_vendor = @host_vendor@
212
includedir = @includedir@
214
install_sh = @install_sh@
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_builddir = @top_builddir@
232
top_srcdir = @top_srcdir@
233
_clean_doc_header = $(if $(DOC_H_FILE),clean-doc-header)
234
_DOC_REAL_FORMATS = $(if $(DOC_USER_FORMATS),$(DOC_USER_FORMATS),$(DOC_FORMATS))
235
_DOC_REAL_LINGUAS = $(if $(filter environment,$(origin LINGUAS)), \
236
$(filter $(LINGUAS),$(DOC_LINGUAS)), \
239
_DOC_ABS_SRCDIR = @abs_srcdir@
240
@ENABLE_SK_TRUE@_ENABLE_SK = true
242
################################################################################
244
--stringparam db2omf.basename $(DOC_MODULE) \
245
--stringparam db2omf.format $(3) \
246
--stringparam db2omf.dtd \
247
$(shell xmllint --format $(2) | grep -h PUBLIC | head -n 1 \
248
| sed -e 's/.*PUBLIC \(\"[^\"]*\"\).*/\1/') \
249
--stringparam db2omf.lang $(notdir $(patsubst %/$(notdir $(2)),%,$(2))) \
250
--stringparam db2omf.omf_dir "$(OMF_DIR)" \
251
--stringparam db2omf.help_dir "$(HELP_DIR)" \
252
--stringparam db2omf.omf_in "$(_DOC_OMF_IN)" \
253
$(if $(_ENABLE_SK), \
254
--stringparam db2omf.scrollkeeper_cl "$(_skcontentslist)") \
257
_DOC_OMF_IN = $(if $(DOC_MODULE),$(wildcard $(_DOC_ABS_SRCDIR)/$(DOC_MODULE).omf.in))
258
_DOC_OMF_DB = $(if $(_DOC_OMF_IN), \
259
$(foreach lc,C $(_DOC_REAL_LINGUAS),$(DOC_MODULE)-$(lc).omf))
261
_DOC_OMF_HTML = $(if $(_DOC_OMF_IN), \
262
$(foreach lc,C $(_DOC_REAL_LINGUAS),$(DOC_MODULE)-html-$(lc).omf))
267
$(if $(filter docbook,$(_DOC_REAL_FORMATS)),$(_DOC_OMF_DB)) \
268
$(if $(filter html HTML,$(_DOC_REAL_FORMATS)),$(_DOC_OMF_HTML))
271
################################################################################
272
_DOC_C_MODULE = $(if $(DOC_MODULE),C/$(DOC_MODULE).xml)
273
_DOC_C_ENTITIES = $(foreach ent,$(DOC_ENTITIES),C/$(ent))
274
_DOC_C_INCLUDES = $(foreach inc,$(DOC_INCLUDES),C/$(inc))
276
$(_DOC_C_ENTITIES) $(_DOC_C_INCLUDES) \
279
_DOC_C_DOCS_NOENT = \
280
$(_DOC_C_MODULE) $(_DOC_C_INCLUDES)
282
_DOC_C_FIGURES = $(if $(DOC_FIGURES), \
283
$(foreach fig,$(DOC_FIGURES),C/$(fig)), \
284
$(patsubst $(srcdir)/%,%,$(wildcard $(srcdir)/C/figures/*.png)))
287
# FIXME: probably have to shell escape to determine the file names
288
_DOC_C_HTML = $(foreach f, \
289
$(shell xsltproc --xinclude \
290
--stringparam db.chunk.basename "$(DOC_MODULE)" \
291
$(_chunks) "C/$(DOC_MODULE).xml"), \
295
###############################################################################
296
_DOC_POFILES = $(if $(DOC_MODULE), \
297
$(foreach lc,$(_DOC_REAL_LINGUAS),$(lc)/$(lc).po))
299
_DOC_LC_MODULES = $(if $(DOC_MODULE), \
300
$(foreach lc,$(_DOC_REAL_LINGUAS),$(lc)/$(DOC_MODULE).xml))
303
$(foreach lc,$(_DOC_REAL_LINGUAS),$(foreach inc,$(_DOC_C_INCLUDES), \
304
$(lc)/$(notdir $(inc)) ))
307
# FIXME: probably have to shell escape to determine the file names
309
$(foreach lc,$(_DOC_REAL_LINGUAS),$(foreach doc,$(_DOC_C_HTML), \
310
$(lc)/$(notdir $(doc)) ))
313
$(_DOC_LC_MODULES) $(_DOC_LC_INCLUDES) \
314
$(if $(filter html HTML,$(_DOC_REAL_FORMATS)),$(_DOC_LC_HTML))
316
_DOC_LC_FIGURES = $(foreach lc,$(_DOC_REAL_LINGUAS), \
317
$(patsubst C/%,$(lc)/%,$(_DOC_C_FIGURES)) )
320
$(foreach fig,$(_DOC_C_FIGURES), $(foreach lc,C $(_DOC_REAL_LINGUAS), \
321
$(wildcard $(srcdir)/$(lc)/$(patsubst C/%,%,$(fig))) ))
323
_DOC_POT = $(if $(DOC_MODULE),$(DOC_MODULE).pot)
325
################################################################################
326
_DOC_HTML_ALL = $(if $(filter html HTML,$(_DOC_REAL_FORMATS)), \
327
$(_DOC_C_HTML) $(_DOC_LC_HTML))
329
_DOC_HTML_TOPS = $(foreach lc,C $(_DOC_REAL_LINGUAS),$(lc)/$(DOC_MODULE).xhtml)
330
_clean_omf = $(if $(_DOC_OMF_IN),clean-doc-omf)
331
_clean_dsk = $(if $(_DOC_DSK_IN),clean-doc-dsk)
332
_clean_lc = $(if $(_DOC_REAL_LINGUAS),clean-doc-lc)
333
_clean_dir = $(if $(DOC_MODULE),clean-doc-dir)
334
DOC_MODULE = gq-manual
335
DOC_INCLUDES = legal.xml
340
$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(top_srcdir)/gnome-doc-utils.make $(am__configure_deps)
342
case '$(am__configure_deps)' in \
344
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
349
echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu help/gq-manual/Makefile'; \
350
cd $(top_srcdir) && \
351
$(AUTOMAKE) --gnu help/gq-manual/Makefile
353
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
356
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
358
echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
359
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
362
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
363
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
365
$(top_srcdir)/configure: $(am__configure_deps)
366
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
367
$(ACLOCAL_M4): $(am__aclocal_m4_deps)
368
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
376
distdir: $(DISTFILES)
377
@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
378
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
379
list='$(DISTFILES)'; \
380
dist_files=`for file in $$list; do echo $$file; done | \
381
sed -e "s|^$$srcdirstrip/||;t" \
382
-e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
383
case $$dist_files in \
384
*/*) $(MKDIR_P) `echo "$$dist_files" | \
385
sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
388
for file in $$dist_files; do \
389
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
390
if test -d $$d/$$file; then \
391
dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
392
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
393
cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
395
cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
397
test -f $(distdir)/$$file \
398
|| cp -p $$d/$$file $(distdir)/$$file \
402
$(MAKE) $(AM_MAKEFLAGS) \
403
top_distdir="$(top_distdir)" distdir="$(distdir)" \
410
install-exec: install-exec-am
411
install-data: install-data-am
412
uninstall: uninstall-am
415
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
417
installcheck: installcheck-am
419
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
420
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
421
`test -z '$(STRIP)' || \
422
echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
428
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
430
maintainer-clean-generic:
431
@echo "This command is intended for maintainers to use"
432
@echo "it deletes files that may require special tools to rebuild."
435
clean-am: clean-generic clean-local mostlyclean-am
437
distclean: distclean-am
439
distclean-am: clean-am distclean-generic distclean-local
451
install-data-am: install-data-local
453
install-dvi: install-dvi-am
457
install-html: install-html-am
459
install-info: install-info-am
463
install-pdf: install-pdf-am
465
install-ps: install-ps-am
469
maintainer-clean: maintainer-clean-am
471
maintainer-clean-am: distclean-am maintainer-clean-generic \
472
maintainer-clean-local
474
mostlyclean: mostlyclean-am
476
mostlyclean-am: mostlyclean-generic mostlyclean-local
486
uninstall-am: uninstall-local
488
.MAKE: install-am install-strip
490
.PHONY: all all-am check check-am clean clean-generic clean-local \
491
dist-hook distclean distclean-generic distclean-local distdir \
492
dvi dvi-am html html-am info info-am install install-am \
493
install-data install-data-am install-data-local install-dvi \
494
install-dvi-am install-exec install-exec-am install-html \
495
install-html-am install-info install-info-am install-man \
496
install-pdf install-pdf-am install-ps install-ps-am \
497
install-strip installcheck installcheck-am installdirs \
498
maintainer-clean maintainer-clean-generic \
499
maintainer-clean-local mostlyclean mostlyclean-generic \
500
mostlyclean-local pdf pdf-am ps ps-am uninstall uninstall-am \
508
$(DOC_H_FILE): $(DOC_H_DOCS);
509
@rm -f $@.tmp; touch $@.tmp;
510
echo 'const gchar* documentation_credits[] = {' >> $@.tmp
511
list='$(DOC_H_DOCS)'; for doc in $$list; do \
512
xmlpath="`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`:$(srcdir)/`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`"; \
513
if ! test -f "$$doc"; then doc="$(srcdir)/$$doc"; fi; \
514
xsltproc --path "$$xmlpath" $(_credits) $$doc; \
516
| 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}}' \
517
| sed -e 's/\\/\\\\/' -e 's/"/\\"/' -e 's/\(.*\)/\t"\1",/' >> $@.tmp
518
echo ' NULL' >> $@.tmp
521
list='$(DOC_H_DOCS)'; for doc in $$list; do \
522
xmlpath="`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`:$(srcdir)/`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`"; \
523
if ! test -f "$$doc"; then doc="$(srcdir)/$$doc"; fi; \
524
docid=`echo "$$doc" | sed -e 's/.*\/\([^/]*\)\.xml/\1/' \
525
| sed -e 's/[^a-zA-Z_]/_/g' | tr 'a-z' 'A-Z'`; \
527
ids=`xsltproc --xinclude --path "$$xmlpath" $(_ids) $$doc`; \
528
for id in $$ids; do \
529
echo '#define HELP_'`echo $$docid`'_'`echo $$id \
530
| sed -e 's/[^a-zA-Z_]/_/g' | tr 'a-z' 'A-Z'`' "'$$id'"' >> $@.tmp; \
534
cp $@.tmp $@ && rm -f $@.tmp
537
@HAVE_GNOME_DOC_UTILS_FALSE@ @echo "*** GNOME Doc Utils must be installed in order to make dist"
538
@HAVE_GNOME_DOC_UTILS_FALSE@ @false
540
.PHONY: dist-doc-header
541
dist-doc-header: $(DOC_H_FILE)
542
@if test -f "$(DOC_H_FILE)"; then d=; else d="$(srcdir)/"; fi; \
543
echo "$(INSTALL_DATA) $${d}$(DOC_H_FILE) $(distdir)/$(DOC_H_FILE)"; \
544
$(INSTALL_DATA) "$${d}$(DOC_H_FILE)" "$(distdir)/$(DOC_H_FILE)";
546
doc-dist-hook: dist-check-gdu $(if $(DOC_H_FILE),dist-doc-header)
548
.PHONY: clean-doc-header
549
clean-local: $(_clean_doc_header)
550
distclean-local: $(_clean_doc_header)
551
mostlyclean-local: $(_clean_doc_header)
552
maintainer-clean-local: $(_clean_doc_header)
558
################################################################################
568
DOC_FORMATS ?= docbook
572
################################################################################
574
_xml2po ?= `which xml2po`
576
_db2html ?= `$(PKG_CONFIG) --variable db2html gnome-doc-utils`
577
_db2omf ?= `$(PKG_CONFIG) --variable db2omf gnome-doc-utils`
578
_chunks ?= `$(PKG_CONFIG) --variable xmldir gnome-doc-utils`/gnome/xslt/docbook/utils/chunks.xsl
579
_credits ?= `$(PKG_CONFIG) --variable xmldir gnome-doc-utils`/gnome/xslt/docbook/utils/credits.xsl
580
_ids ?= `$(PKG_CONFIG) --variable xmldir gnome-doc-utils`/gnome/xslt/docbook/utils/ids.xsl
581
@ENABLE_SK_TRUE@_skpkgdatadir ?= `scrollkeeper-config --pkgdatadir`
582
@ENABLE_SK_TRUE@_sklocalstatedir ?= `scrollkeeper-config --pkglocalstatedir`
583
@ENABLE_SK_TRUE@_skcontentslist ?= $(_skpkgdatadir)/Templates/C/scrollkeeper_cl.xml
585
$(_DOC_OMF_DB) : $(_DOC_OMF_IN)
586
$(_DOC_OMF_DB) : $(DOC_MODULE)-%.omf : %/$(DOC_MODULE).xml
587
@test "x$(_ENABLE_SK)" != "xtrue" -o -f "$(_skcontentslist)" || { \
588
echo "The file '$(_skcontentslist)' does not exist." >&2; \
589
echo "Please check your ScrollKeeper installation." >&2; \
591
xsltproc -o $@ $(call db2omf_args,$@,$<,'docbook') || { rm -f "$@"; exit 1; }
593
$(_DOC_OMF_HTML) : $(_DOC_OMF_IN)
594
$(_DOC_OMF_HTML) : $(DOC_MODULE)-html-%.omf : %/$(DOC_MODULE).xml
595
@ENABLE_SK_TRUE@ @test "x$(_ENABLE_SK)" != "xtrue" -o -f "$(_skcontentslist)" || { \
596
@ENABLE_SK_TRUE@ echo "The file '$(_skcontentslist)' does not exist" >&2; \
597
@ENABLE_SK_TRUE@ echo "Please check your ScrollKeeper installation." >&2; \
598
@ENABLE_SK_TRUE@ exit 1; }
599
xsltproc -o $@ $(call db2omf_args,$@,$<,'xhtml') || { rm -f "$@"; exit 1; }
608
@if ! test -d $(dir $@); then \
609
echo "mkdir $(dir $@)"; \
612
@if test ! -f $@ -a -f $(srcdir)/$@; then \
613
echo "cp $(srcdir)/$@ $@"; \
614
cp "$(srcdir)/$@" "$@"; \
617
list='$(_DOC_C_DOCS_NOENT)'; for doc in $$list; do \
618
docs="$$docs $(_DOC_ABS_SRCDIR)/$$doc"; \
620
if ! test -f $@; then \
621
echo "(cd $(dir $@) && \
622
$(_xml2po) -e $$docs > $(notdir $@).tmp && \
623
cp $(notdir $@).tmp $(notdir $@) && rm -f $(notdir $@).tmp)"; \
625
$(_xml2po) -e $$docs > $(notdir $@).tmp && \
626
cp $(notdir $@).tmp $(notdir $@) && rm -f $(notdir $@).tmp); \
628
echo "(cd $(dir $@) && \
629
$(_xml2po) -e -u $(notdir $@) $$docs)"; \
631
$(_xml2po) -e -u $(notdir $@) $$docs); \
634
# FIXME: fix the dependancy
635
# FIXME: hook xml2po up
636
$(_DOC_LC_DOCS) : $(_DOC_POFILES)
637
$(_DOC_LC_DOCS) : $(_DOC_C_DOCS)
638
if ! test -d $(dir $@); then mkdir $(dir $@); fi
639
if [ -f "C/$(notdir $@)" ]; then d="../"; else d="$(_DOC_ABS_SRCDIR)/"; fi; \
642
"$${d}$(dir $@)$(patsubst %/$(notdir $@),%,$@).po" \
643
"$${d}C/$(notdir $@)" > $(notdir $@).tmp && \
644
cp $(notdir $@).tmp $(notdir $@) && rm -f $(notdir $@).tmp)
647
$(_DOC_POT): $(_DOC_C_DOCS_NOENT)
648
$(_xml2po) -e -o $@ $^
650
$(_DOC_HTML_TOPS): $(_DOC_C_DOCS) $(_DOC_LC_DOCS)
651
xsltproc -o $@ --xinclude --param db.chunk.chunk_top "false()" --stringparam db.chunk.basename "$(DOC_MODULE)" --stringparam db.chunk.extension ".xhtml" $(_db2html) $(patsubst %.xhtml,%.xml,$@)
653
################################################################################
656
$(_DOC_C_DOCS) $(_DOC_LC_DOCS) \
657
$(_DOC_OMF_ALL) $(_DOC_DSK_ALL) \
658
$(_DOC_HTML_ALL) $(_DOC_POFILES)
660
.PHONY: clean-doc-omf clean-doc-dsk clean-doc-lc clean-doc-dir
662
clean-doc-omf: ; rm -f $(_DOC_OMF_DB) $(_DOC_OMF_HTML)
663
clean-doc-dsk: ; rm -f $(_DOC_DSK_DB) $(_DOC_DSK_HTML)
665
rm -f $(_DOC_LC_DOCS)
666
@list='$(_DOC_POFILES)'; for po in $$list; do \
667
if ! test "$$po" -ef "$(srcdir)/$$po"; then \
672
@for lc in C $(_DOC_REAL_LINGUAS); do \
673
if test -f "$$lc/.xml2po.mo"; then \
674
echo "rm -f $$lc/.xml2po.mo"; \
675
rm -f "$$lc/.xml2po.mo"; \
679
@for lc in C $(_DOC_REAL_LINGUAS); do \
680
for dir in `find $$lc -depth -type d`; do \
681
if ! test $$dir -ef $(srcdir)/$$dir; then \
682
echo "rmdir $$dir"; \
689
$(_clean_omf) $(_clean_dsk) \
690
$(_clean_lc) $(_clean_dir)
692
$(_clean_omf) $(_clean_dsk) \
693
$(_clean_lc) $(_clean_dir)
695
$(_clean_omf) $(_clean_dsk) \
696
$(_clean_lc) $(_clean_dir)
697
maintainer-clean-local: \
698
$(_clean_omf) $(_clean_dsk) \
699
$(_clean_lc) $(_clean_dir)
701
.PHONY: dist-doc-docs dist-doc-figs dist-doc-omf dist-doc-dsk
703
$(if $(DOC_MODULE),dist-doc-docs) \
704
$(if $(_DOC_C_FIGURES),dist-doc-figs) \
705
$(if $(_DOC_OMF_IN),dist-doc-omf)
706
# $(if $(_DOC_DSK_IN),dist-doc-dsk)
708
dist-doc-docs: $(_DOC_C_DOCS) $(_DOC_LC_DOCS) $(_DOC_POFILES)
709
@for lc in C $(_DOC_REAL_LINGUAS); do \
710
echo " $(mkinstalldirs) $(distdir)/$$lc"; \
711
$(mkinstalldirs) "$(distdir)/$$lc"; \
713
@list='$(_DOC_C_DOCS) $(_DOC_LC_DOCS) $(_DOC_POFILES)'; \
714
for doc in $$list; do \
715
if test -f "$$doc"; then d=; else d="$(srcdir)/"; fi; \
716
docdir=`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`; \
717
if ! test -d "$(distdir)/$$docdir"; then \
718
echo "$(mkinstalldirs) $(distdir)/$$docdir"; \
719
$(mkinstalldirs) "$(distdir)/$$docdir"; \
721
echo "$(INSTALL_DATA) $$d$$doc $(distdir)/$$doc"; \
722
$(INSTALL_DATA) "$$d$$doc" "$(distdir)/$$doc"; \
725
dist-doc-figs: $(_DOC_SRC_FIGURES)
726
@list='$(_DOC_C_FIGURES) $(_DOC_LC_FIGURES)'; \
727
for fig in $$list; do \
728
if test -f "$$fig"; then d=; else d="$(srcdir)/"; fi; \
729
if test -f "$$d$$fig"; then \
730
figdir=`echo $$fig | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`; \
731
if ! test -d "$(distdir)/$$figdir"; then \
732
echo "$(mkinstalldirs) $(distdir)/$$figdir"; \
733
$(mkinstalldirs) "$(distdir)/$$figdir"; \
735
echo "$(INSTALL_DATA) $$d$$fig $(distdir)/$$fig"; \
736
$(INSTALL_DATA) "$$d$$fig" "$(distdir)/$$fig"; \
741
@if test -f "$(_DOC_OMF_IN)"; then d=; else d="$(srcdir)/"; fi; \
742
echo "$(INSTALL_DATA) $$d$(_DOC_OMF_IN) $(distdir)/$(notdir $(_DOC_OMF_IN))"; \
743
$(INSTALL_DATA) "$$d$(_DOC_OMF_IN)" "$(distdir)/$(notdir $(_DOC_OMF_IN))"
746
@if test -f "$(_DOC_DSK_IN)"; then d=; else d="$(srcdir)/"; fi; \
747
echo "$(INSTALL_DATA) $$d$(_DOC_DSK_IN) $(distdir)/$(notdir $(_DOC_DSK_IN))"; \
748
$(INSTALL_DATA) "$$d$(_DOC_DSK_IN)" "$(distdir)/$(notdir $(_DOC_DSK_IN))"
750
.PHONY: check-doc-docs check-doc-omf
752
$(if $(DOC_MODULE),check-doc-docs) \
753
$(if $(_DOC_OMF_IN),check-doc-omf)
755
check-doc-docs: $(_DOC_C_DOCS) $(_DOC_LC_DOCS)
756
@for lc in C $(_DOC_REAL_LINGUAS); do \
762
xmlpath="$$lc:$(srcdir)/$$lc"; \
764
echo "xmllint --noout --noent --path $$xmlpath --xinclude --postvalid $$d$$lc/$(DOC_MODULE).xml"; \
765
xmllint --noout --noent --path "$$xmlpath" --xinclude --postvalid "$$d$$lc/$(DOC_MODULE).xml"; \
768
check-doc-omf: $(_DOC_OMF_ALL)
769
@list='$(_DOC_OMF_ALL)'; for omf in $$list; do \
770
echo "xmllint --noout --dtdvalid 'http://scrollkeeper.sourceforge.net/dtds/scrollkeeper-omf-1.0/scrollkeeper-omf.dtd' $$omf"; \
771
xmllint --noout --dtdvalid 'http://scrollkeeper.sourceforge.net/dtds/scrollkeeper-omf-1.0/scrollkeeper-omf.dtd' $$omf; \
774
.PHONY: install-doc-docs install-doc-html install-doc-figs install-doc-omf install-doc-dsk
775
install-data-local: \
776
$(if $(DOC_MODULE),install-doc-docs) \
777
$(if $(_DOC_HTML_ALL),install-doc-html) \
778
$(if $(_DOC_C_FIGURES),install-doc-figs) \
779
$(if $(_DOC_OMF_IN),install-doc-omf)
780
# $(if $(_DOC_DSK_IN),install-doc-dsk)
783
@for lc in C $(_DOC_REAL_LINGUAS); do \
784
echo "$(mkinstalldirs) $(DESTDIR)$(HELP_DIR)/$(DOC_MODULE)/$$lc"; \
785
$(mkinstalldirs) $(DESTDIR)$(HELP_DIR)/$(DOC_MODULE)/$$lc; \
787
@list='$(_DOC_C_DOCS) $(_DOC_LC_DOCS)'; for doc in $$list; do \
788
if test -f "$$doc"; then d=; else d="$(srcdir)/"; fi; \
789
docdir="$$lc/"`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`; \
790
docdir="$(DESTDIR)$(HELP_DIR)/$(DOC_MODULE)/$$docdir"; \
791
if ! test -d "$$docdir"; then \
792
echo "$(mkinstalldirs) $$docdir"; \
793
$(mkinstalldirs) "$$docdir"; \
795
echo "$(INSTALL_DATA) $$d$$doc $(DESTDIR)$(HELP_DIR)/$(DOC_MODULE)/$$doc"; \
796
$(INSTALL_DATA) $$d$$doc $(DESTDIR)$(HELP_DIR)/$(DOC_MODULE)/$$doc; \
800
@list='$(patsubst C/%,%,$(_DOC_C_FIGURES))'; for fig in $$list; do \
801
for lc in C $(_DOC_REAL_LINGUAS); do \
802
if test -f "$$lc/$$fig"; then \
803
figfile="$$lc/$$fig"; \
804
elif test -f "$(srcdir)/$$lc/$$fig"; then \
805
figfile="$(srcdir)/$$lc/$$fig"; \
806
elif test -f "C/$$fig"; then \
809
figfile="$(srcdir)/C/$$fig"; \
811
figdir="$$lc/"`echo $$fig | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`; \
812
figdir="$(DESTDIR)$(HELP_DIR)/$(DOC_MODULE)/$$figdir"; \
813
if ! test -d "$$figdir"; then \
814
echo "$(mkinstalldirs) $$figdir"; \
815
$(mkinstalldirs) "$$figdir"; \
817
figbase=`echo $$fig | sed -e 's/^.*\///'`; \
818
echo "$(INSTALL_DATA) $$figfile $$figdir$$figbase"; \
819
$(INSTALL_DATA) "$$figfile" "$$figdir$$figbase"; \
827
$(mkinstalldirs) $(DESTDIR)$(OMF_DIR)/$(DOC_MODULE)
828
@list='$(_DOC_OMF_ALL)'; for omf in $$list; do \
829
echo "$(INSTALL_DATA) $$omf $(DESTDIR)$(OMF_DIR)/$(DOC_MODULE)/$$omf"; \
830
$(INSTALL_DATA) $$omf $(DESTDIR)$(OMF_DIR)/$(DOC_MODULE)/$$omf; \
832
@if test "x$(_ENABLE_SK)" = "xtrue"; then \
833
echo "scrollkeeper-update -p $(DESTDIR)$(_sklocalstatedir) -o $(DESTDIR)$(OMF_DIR)/$(DOC_MODULE)"; \
834
scrollkeeper-update -p "$(DESTDIR)$(_sklocalstatedir)" -o "$(DESTDIR)$(OMF_DIR)/$(DOC_MODULE)"; \
840
.PHONY: uninstall-doc-docs uninstall-doc-html uninstall-doc-figs uninstall-doc-omf uninstall-doc-dsk
842
$(if $(DOC_MODULE),uninstall-doc-docs) \
843
$(if $(_DOC_HTML_ALL),uninstall-doc-html) \
844
$(if $(_DOC_C_FIGURES),uninstall-doc-figs) \
845
$(if $(_DOC_OMF_IN),uninstall-doc-omf)
846
# $(if $(_DOC_DSK_IN),uninstall-doc-dsk)
849
@list='$(_DOC_C_DOCS) $(_DOC_LC_DOCS)'; for doc in $$list; do \
850
echo " rm -f $(DESTDIR)$(HELP_DIR)/$(DOC_MODULE)/$$doc"; \
851
rm -f "$(DESTDIR)$(HELP_DIR)/$(DOC_MODULE)/$$doc"; \
855
@list='$(_DOC_C_FIGURES) $(_DOC_LC_FIGURES)'; for fig in $$list; do \
856
echo "rm -f $(DESTDIR)$(HELP_DIR)/$(DOC_MODULE)/$$fig"; \
857
rm -f "$(DESTDIR)$(HELP_DIR)/$(DOC_MODULE)/$$fig"; \
861
@list='$(_DOC_OMF_ALL)'; for omf in $$list; do \
862
if test "x$(_ENABLE_SK)" = "xtrue"; then \
863
echo "scrollkeeper-uninstall -p $(_sklocalstatedir) $(DESTDIR)$(OMF_DIR)/$(DOC_MODULE)/$$omf"; \
864
scrollkeeper-uninstall -p "$(_sklocalstatedir)" "$(DESTDIR)$(OMF_DIR)/$(DOC_MODULE)/$$omf"; \
866
echo "rm -f $(DESTDIR)$(OMF_DIR)/$(DOC_MODULE)/$$omf"; \
867
rm -f "$(DESTDIR)$(OMF_DIR)/$(DOC_MODULE)/$$omf"; \
869
dist-hook: doc-dist-hook
870
# Tell versions [3.59,3.63) of GNU make to not export all variables.
871
# Otherwise a system limit (for SysV at least) may be exceeded.