1
# Makefile.in generated by automake 1.11 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)/acinclude.m4 \
65
$(top_srcdir)/configure.ac
66
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
68
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
69
CONFIG_HEADER = $(top_builddir)/config.h
71
CONFIG_CLEAN_VPATH_FILES =
74
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
76
ACLOCAL_AMFLAGS = @ACLOCAL_AMFLAGS@
77
ALL_LINGUAS = @ALL_LINGUAS@
81
AUTOHEADER = @AUTOHEADER@
85
CATOBJEXT = @CATOBJEXT@
87
CCDEPMODE = @CCDEPMODE@
89
CONSOLE_HELPER = @CONSOLE_HELPER@
92
CYGPATH_W = @CYGPATH_W@
93
DATADIRNAME = @DATADIRNAME@
96
DISTCHECK_CONFIGURE_FLAGS = @DISTCHECK_CONFIGURE_FLAGS@
97
DOC_USER_FORMATS = @DOC_USER_FORMATS@
105
EXPANDED_SABAYON_DIR = @EXPANDED_SABAYON_DIR@
107
GETTEXT_PACKAGE = @GETTEXT_PACKAGE@
108
GMOFILES = @GMOFILES@
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@
130
LTLIBOBJS = @LTLIBOBJS@
132
MAKEINFO = @MAKEINFO@
134
MKINSTALLDIRS = @MKINSTALLDIRS@
136
MSGFMT_OPTS = @MSGFMT_OPTS@
137
MSGMERGE = @MSGMERGE@
140
NO_STRICT_ALIASING_CFLAGS = @NO_STRICT_ALIASING_CFLAGS@
147
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
148
PACKAGE_NAME = @PACKAGE_NAME@
149
PACKAGE_STRING = @PACKAGE_STRING@
150
PACKAGE_TARNAME = @PACKAGE_TARNAME@
151
PACKAGE_URL = @PACKAGE_URL@
152
PACKAGE_VERSION = @PACKAGE_VERSION@
153
PAM_PREFIX = @PAM_PREFIX@
154
PATH_SEPARATOR = @PATH_SEPARATOR@
155
PKG_CONFIG = @PKG_CONFIG@
158
PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@
159
PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@
160
PROTOTYPE_USER = @PROTOTYPE_USER@
162
PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@
163
PYTHON_INCLUDES = @PYTHON_INCLUDES@
164
PYTHON_PLATFORM = @PYTHON_PLATFORM@
165
PYTHON_PREFIX = @PYTHON_PREFIX@
166
PYTHON_VERSION = @PYTHON_VERSION@
169
SESSION_NAME = @SESSION_NAME@
170
SET_MAKE = @SET_MAKE@
175
WARN_CFLAGS = @WARN_CFLAGS@
176
XEPHYR_PATH = @XEPHYR_PATH@
177
XGETTEXT = @XGETTEXT@
178
XINITRC_SYSCONFDIR = @XINITRC_SYSCONFDIR@
179
XLIB_MODULE_CFLAGS = @XLIB_MODULE_CFLAGS@
180
XLIB_MODULE_LIBS = @XLIB_MODULE_LIBS@
182
XSESSION = @XSESSION@
183
X_CFLAGS = @X_CFLAGS@
184
X_EXTRA_LIBS = @X_EXTRA_LIBS@
186
X_PRE_LIBS = @X_PRE_LIBS@
187
abs_builddir = @abs_builddir@
188
abs_srcdir = @abs_srcdir@
189
abs_top_builddir = @abs_top_builddir@
190
abs_top_srcdir = @abs_top_srcdir@
191
ac_ct_CC = @ac_ct_CC@
192
ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
193
am__include = @am__include@
194
am__leading_dot = @am__leading_dot@
195
am__quote = @am__quote@
197
am__untar = @am__untar@
200
build_alias = @build_alias@
201
build_cpu = @build_cpu@
202
build_os = @build_os@
203
build_vendor = @build_vendor@
204
builddir = @builddir@
206
datarootdir = @datarootdir@
209
exec_prefix = @exec_prefix@
211
host_alias = @host_alias@
212
host_cpu = @host_cpu@
214
host_vendor = @host_vendor@
216
includedir = @includedir@
218
install_sh = @install_sh@
220
libexecdir = @libexecdir@
221
localedir = @localedir@
222
localstatedir = @localstatedir@
226
oldincludedir = @oldincludedir@
228
pkgpyexecdir = @pkgpyexecdir@
229
pkgpythondir = @pkgpythondir@
231
program_transform_name = @program_transform_name@
233
pyexecdir = @pyexecdir@
234
pythondir = @pythondir@
236
sharedstatedir = @sharedstatedir@
238
sysconfdir = @sysconfdir@
239
target_alias = @target_alias@
240
top_build_prefix = @top_build_prefix@
241
top_builddir = @top_builddir@
242
top_srcdir = @top_srcdir@
243
_clean_doc_header = $(if $(DOC_H_FILE),clean-doc-header)
244
_DOC_REAL_FORMATS = $(if $(DOC_USER_FORMATS),$(DOC_USER_FORMATS),$(DOC_FORMATS))
245
_DOC_REAL_LINGUAS = $(if $(filter environment,$(origin LINGUAS)), \
246
$(filter $(LINGUAS),$(DOC_LINGUAS)), \
249
_DOC_ABS_SRCDIR = @abs_srcdir@
250
_xml2po_mode = $(if $(DOC_ID),mallard,docbook)
251
@ENABLE_SK_TRUE@_ENABLE_SK = true
253
################################################################################
255
--stringparam db2omf.basename $(DOC_MODULE) \
256
--stringparam db2omf.format $(3) \
257
--stringparam db2omf.dtd \
258
$(shell xmllint --format $(2) | grep -h PUBLIC | head -n 1 \
259
| sed -e 's/.*PUBLIC \(\"[^\"]*\"\).*/\1/') \
260
--stringparam db2omf.lang $(notdir $(patsubst %/$(notdir $(2)),%,$(2))) \
261
--stringparam db2omf.omf_dir "$(OMF_DIR)" \
262
--stringparam db2omf.help_dir "$(HELP_DIR)" \
263
--stringparam db2omf.omf_in "$(_DOC_OMF_IN)" \
264
$(if $(_ENABLE_SK), \
265
--stringparam db2omf.scrollkeeper_cl "$(_skcontentslist)") \
268
_DOC_OMF_IN = $(if $(DOC_MODULE),$(wildcard $(_DOC_ABS_SRCDIR)/$(DOC_MODULE).omf.in))
269
_DOC_OMF_DB = $(if $(_DOC_OMF_IN), \
270
$(foreach lc,C $(_DOC_REAL_LINGUAS),$(DOC_MODULE)-$(lc).omf))
272
_DOC_OMF_HTML = $(if $(_DOC_OMF_IN), \
273
$(foreach lc,C $(_DOC_REAL_LINGUAS),$(DOC_MODULE)-html-$(lc).omf))
278
$(if $(filter docbook,$(_DOC_REAL_FORMATS)),$(_DOC_OMF_DB)) \
279
$(if $(filter html HTML,$(_DOC_REAL_FORMATS)),$(_DOC_OMF_HTML))
282
################################################################################
283
_DOC_C_MODULE = $(if $(DOC_MODULE),C/$(DOC_MODULE).xml)
284
_DOC_C_PAGES = $(foreach page,$(DOC_PAGES),C/$(page))
285
_DOC_C_ENTITIES = $(foreach ent,$(DOC_ENTITIES),C/$(ent))
286
_DOC_C_INCLUDES = $(foreach inc,$(DOC_INCLUDES),C/$(inc))
288
$(_DOC_C_ENTITIES) $(_DOC_C_INCLUDES) \
289
$(_DOC_C_PAGES) $(_DOC_C_MODULE)
291
_DOC_C_DOCS_NOENT = \
292
$(_DOC_C_MODULE) $(_DOC_C_INCLUDES) \
295
_DOC_C_FIGURES = $(if $(DOC_FIGURES), \
296
$(foreach fig,$(DOC_FIGURES),C/$(fig)), \
297
$(patsubst $(srcdir)/%,%,$(wildcard $(srcdir)/C/figures/*.png)))
300
# FIXME: probably have to shell escape to determine the file names
301
_DOC_C_HTML = $(foreach f, \
302
$(shell xsltproc --xinclude \
303
--stringparam db.chunk.basename "$(DOC_MODULE)" \
304
$(_chunks) "C/$(DOC_MODULE).xml"), \
308
###############################################################################
309
_DOC_POFILES = $(if $(DOC_MODULE)$(DOC_ID), \
310
$(foreach lc,$(_DOC_REAL_LINGUAS),$(lc)/$(lc).po))
312
_DOC_LC_MODULES = $(if $(DOC_MODULE), \
313
$(foreach lc,$(_DOC_REAL_LINGUAS),$(lc)/$(DOC_MODULE).xml))
316
$(foreach lc,$(_DOC_REAL_LINGUAS),$(foreach page,$(_DOC_C_PAGES), \
317
$(lc)/$(notdir $(page)) ))
320
$(foreach lc,$(_DOC_REAL_LINGUAS),$(foreach inc,$(_DOC_C_INCLUDES), \
321
$(lc)/$(notdir $(inc)) ))
324
# FIXME: probably have to shell escape to determine the file names
326
$(foreach lc,$(_DOC_REAL_LINGUAS),$(foreach doc,$(_DOC_C_HTML), \
327
$(lc)/$(notdir $(doc)) ))
330
$(_DOC_LC_MODULES) $(_DOC_LC_INCLUDES) $(_DOC_LC_PAGES) \
331
$(if $(filter html HTML,$(_DOC_REAL_FORMATS)),$(_DOC_LC_HTML))
333
_DOC_LC_FIGURES = $(foreach lc,$(_DOC_REAL_LINGUAS), \
334
$(patsubst C/%,$(lc)/%,$(_DOC_C_FIGURES)) )
337
$(foreach fig,$(_DOC_C_FIGURES), $(foreach lc,C $(_DOC_REAL_LINGUAS), \
338
$(wildcard $(srcdir)/$(lc)/$(patsubst C/%,%,$(fig))) ))
340
_DOC_POT = $(if $(DOC_MODULE),$(DOC_MODULE).pot)
342
################################################################################
343
_DOC_HTML_ALL = $(if $(filter html HTML,$(_DOC_REAL_FORMATS)), \
344
$(_DOC_C_HTML) $(_DOC_LC_HTML))
346
_DOC_HTML_TOPS = $(foreach lc,C $(_DOC_REAL_LINGUAS),$(lc)/$(DOC_MODULE).xhtml)
347
_clean_omf = $(if $(_DOC_OMF_IN),clean-doc-omf)
348
_clean_dsk = $(if $(_DOC_DSK_IN),clean-doc-dsk)
349
_clean_lc = $(if $(_DOC_REAL_LINGUAS),clean-doc-lc)
350
_clean_dir = $(if $(DOC_MODULE)$(DOC_ID),clean-doc-dir)
351
_doc_install_dir = $(if $(DOC_ID),$(DOC_ID),$(DOC_MODULE))
353
DOC_ENTITIES = legal.xml
355
figures/add-profile.png \
356
figures/apply-by-group.png \
357
figures/apply-by-user.png\
358
figures/changes.png \
359
figures/edit-desktop.png \
360
figures/lockdown.png \
361
figures/main-window-edit.png \
362
figures/main-window.png \
368
$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(top_srcdir)/gnome-doc-utils.make $(am__configure_deps)
370
case '$(am__configure_deps)' in \
372
( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
373
&& { if test -f $@; then exit 0; else break; fi; }; \
377
echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu help/Makefile'; \
378
$(am__cd) $(top_srcdir) && \
379
$(AUTOMAKE) --gnu help/Makefile
381
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
384
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
386
echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
387
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
390
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
391
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
393
$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
394
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
395
$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
396
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
397
$(am__aclocal_m4_deps):
411
distdir: $(DISTFILES)
412
@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
413
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
414
list='$(DISTFILES)'; \
415
dist_files=`for file in $$list; do echo $$file; done | \
416
sed -e "s|^$$srcdirstrip/||;t" \
417
-e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
418
case $$dist_files in \
419
*/*) $(MKDIR_P) `echo "$$dist_files" | \
420
sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
423
for file in $$dist_files; do \
424
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
425
if test -d $$d/$$file; then \
426
dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
427
if test -d "$(distdir)/$$file"; then \
428
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
430
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
431
cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
432
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
434
cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
436
test -f "$(distdir)/$$file" \
437
|| cp -p $$d/$$file "$(distdir)/$$file" \
441
$(MAKE) $(AM_MAKEFLAGS) \
442
top_distdir="$(top_distdir)" distdir="$(distdir)" \
449
install-exec: install-exec-am
450
install-data: install-data-am
451
uninstall: uninstall-am
454
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
456
installcheck: installcheck-am
458
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
459
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
460
`test -z '$(STRIP)' || \
461
echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
467
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
468
-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
470
maintainer-clean-generic:
471
@echo "This command is intended for maintainers to use"
472
@echo "it deletes files that may require special tools to rebuild."
475
clean-am: clean-generic clean-libtool clean-local mostlyclean-am
477
distclean: distclean-am
479
distclean-am: clean-am distclean-generic distclean-local
493
install-data-am: install-data-local
495
install-dvi: install-dvi-am
501
install-html: install-html-am
505
install-info: install-info-am
511
install-pdf: install-pdf-am
515
install-ps: install-ps-am
521
maintainer-clean: maintainer-clean-am
523
maintainer-clean-am: distclean-am maintainer-clean-generic \
524
maintainer-clean-local
526
mostlyclean: mostlyclean-am
528
mostlyclean-am: mostlyclean-generic mostlyclean-libtool \
539
uninstall-am: uninstall-local
541
.MAKE: install-am install-strip
543
.PHONY: all all-am check check-am clean clean-generic clean-libtool \
544
clean-local dist-hook distclean distclean-generic \
545
distclean-libtool distclean-local distdir dvi dvi-am html \
546
html-am info info-am install install-am install-data \
547
install-data-am install-data-local install-dvi install-dvi-am \
548
install-exec install-exec-am install-html install-html-am \
549
install-info install-info-am install-man install-pdf \
550
install-pdf-am install-ps install-ps-am install-strip \
551
installcheck installcheck-am installdirs maintainer-clean \
552
maintainer-clean-generic maintainer-clean-local mostlyclean \
553
mostlyclean-generic mostlyclean-libtool mostlyclean-local pdf \
554
pdf-am ps ps-am uninstall uninstall-am uninstall-local
561
$(DOC_H_FILE): $(DOC_H_DOCS);
562
@rm -f $@.tmp; touch $@.tmp;
563
echo 'const gchar* documentation_credits[] = {' >> $@.tmp
564
list='$(DOC_H_DOCS)'; for doc in $$list; do \
565
xmlpath="`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`:$(srcdir)/`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`"; \
566
if ! test -f "$$doc"; then doc="$(srcdir)/$$doc"; fi; \
567
xsltproc --path "$$xmlpath" $(_credits) $$doc; \
569
| 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}}' \
570
| sed -e 's/\\/\\\\/' -e 's/"/\\"/' -e 's/\(.*\)/\t"\1",/' >> $@.tmp
571
echo ' NULL' >> $@.tmp
574
list='$(DOC_H_DOCS)'; for doc in $$list; do \
575
xmlpath="`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`:$(srcdir)/`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`"; \
576
if ! test -f "$$doc"; then doc="$(srcdir)/$$doc"; fi; \
577
docid=`echo "$$doc" | sed -e 's/.*\/\([^/]*\)\.xml/\1/' \
578
| sed -e 's/[^a-zA-Z_]/_/g' | tr 'a-z' 'A-Z'`; \
580
ids=`xsltproc --xinclude --path "$$xmlpath" $(_ids) $$doc`; \
581
for id in $$ids; do \
582
echo '#define HELP_'`echo $$docid`'_'`echo $$id \
583
| sed -e 's/[^a-zA-Z_]/_/g' | tr 'a-z' 'A-Z'`' "'$$id'"' >> $@.tmp; \
587
cp $@.tmp $@ && rm -f $@.tmp
590
@HAVE_GNOME_DOC_UTILS_FALSE@ @echo "*** GNOME Doc Utils must be installed in order to make dist"
591
@HAVE_GNOME_DOC_UTILS_FALSE@ @false
593
.PHONY: dist-doc-header
594
dist-doc-header: $(DOC_H_FILE)
595
@if test -f "$(DOC_H_FILE)"; then d=; else d="$(srcdir)/"; fi; \
596
echo "$(INSTALL_DATA) $${d}$(DOC_H_FILE) $(distdir)/$(DOC_H_FILE)"; \
597
$(INSTALL_DATA) "$${d}$(DOC_H_FILE)" "$(distdir)/$(DOC_H_FILE)";
599
doc-dist-hook: dist-check-gdu $(if $(DOC_H_FILE),dist-doc-header)
601
.PHONY: clean-doc-header
602
clean-local: $(_clean_doc_header)
603
distclean-local: $(_clean_doc_header)
604
mostlyclean-local: $(_clean_doc_header)
605
maintainer-clean-local: $(_clean_doc_header)
611
################################################################################
625
DOC_FORMATS ?= docbook
629
################################################################################
631
_xml2po ?= `which xml2po`
633
_db2html ?= `$(PKG_CONFIG) --variable db2html gnome-doc-utils`
634
_db2omf ?= `$(PKG_CONFIG) --variable db2omf gnome-doc-utils`
635
_malrng ?= `$(PKG_CONFIG) --variable malrng gnome-doc-utils`
636
_chunks ?= `$(PKG_CONFIG) --variable xmldir gnome-doc-utils`/gnome/xslt/docbook/utils/chunks.xsl
637
_credits ?= `$(PKG_CONFIG) --variable xmldir gnome-doc-utils`/gnome/xslt/docbook/utils/credits.xsl
638
_ids ?= `$(PKG_CONFIG) --variable xmldir gnome-doc-utils`/gnome/xslt/docbook/utils/ids.xsl
639
@ENABLE_SK_TRUE@_skpkgdatadir ?= `scrollkeeper-config --pkgdatadir`
640
@ENABLE_SK_TRUE@_sklocalstatedir ?= `scrollkeeper-config --pkglocalstatedir`
641
@ENABLE_SK_TRUE@_skcontentslist ?= $(_skpkgdatadir)/Templates/C/scrollkeeper_cl.xml
643
$(_DOC_OMF_DB) : $(_DOC_OMF_IN)
644
$(_DOC_OMF_DB) : $(DOC_MODULE)-%.omf : %/$(DOC_MODULE).xml
645
@test "x$(_ENABLE_SK)" != "xtrue" -o -f "$(_skcontentslist)" || { \
646
echo "The file '$(_skcontentslist)' does not exist." >&2; \
647
echo "Please check your ScrollKeeper installation." >&2; \
649
xsltproc -o $@ $(call db2omf_args,$@,$<,'docbook') || { rm -f "$@"; exit 1; }
651
$(_DOC_OMF_HTML) : $(_DOC_OMF_IN)
652
$(_DOC_OMF_HTML) : $(DOC_MODULE)-html-%.omf : %/$(DOC_MODULE).xml
653
@ENABLE_SK_TRUE@ @test "x$(_ENABLE_SK)" != "xtrue" -o -f "$(_skcontentslist)" || { \
654
@ENABLE_SK_TRUE@ echo "The file '$(_skcontentslist)' does not exist" >&2; \
655
@ENABLE_SK_TRUE@ echo "Please check your ScrollKeeper installation." >&2; \
656
@ENABLE_SK_TRUE@ exit 1; }
657
xsltproc -o $@ $(call db2omf_args,$@,$<,'xhtml') || { rm -f "$@"; exit 1; }
666
@if ! test -d $(dir $@); then \
667
echo "mkdir $(dir $@)"; \
670
@if test ! -f $@ -a -f $(srcdir)/$@; then \
671
echo "cp $(srcdir)/$@ $@"; \
672
cp "$(srcdir)/$@" "$@"; \
675
list='$(_DOC_C_DOCS_NOENT)'; for doc in $$list; do \
676
docs="$$docs $(_DOC_ABS_SRCDIR)/$$doc"; \
678
if ! test -f $@; then \
679
echo "(cd $(dir $@) && \
680
$(_xml2po) -m $(_xml2po_mode) -e $$docs > $(notdir $@).tmp && \
681
cp $(notdir $@).tmp $(notdir $@) && rm -f $(notdir $@).tmp)"; \
683
$(_xml2po) -m $(_xml2po_mode) -e $$docs > $(notdir $@).tmp && \
684
cp $(notdir $@).tmp $(notdir $@) && rm -f $(notdir $@).tmp); \
686
echo "(cd $(dir $@) && \
687
$(_xml2po) -m $(_xml2po_mode) -e -u $(notdir $@) $$docs)"; \
689
$(_xml2po) -m $(_xml2po_mode) -e -u $(notdir $@) $$docs); \
692
# FIXME: fix the dependancy
693
# FIXME: hook xml2po up
694
$(_DOC_LC_DOCS) : $(_DOC_POFILES)
695
$(_DOC_LC_DOCS) : $(_DOC_C_DOCS)
696
if ! test -d $(dir $@); then mkdir $(dir $@); fi
697
if [ -f "C/$(notdir $@)" ]; then d="../"; else d="$(_DOC_ABS_SRCDIR)/"; fi; \
698
po="$(dir $@)$(patsubst %/$(notdir $@),%,$@).po"; \
699
if [ -f "$${po}" ]; then po="../$${po}"; else po="$(_DOC_ABS_SRCDIR)/$${po}"; fi; \
701
$(_xml2po) -m $(_xml2po_mode) -e -p "$${po}" \
702
"$${d}C/$(notdir $@)" > $(notdir $@).tmp && \
703
cp $(notdir $@).tmp $(notdir $@) && rm -f $(notdir $@).tmp)
706
$(_DOC_POT): $(_DOC_C_DOCS_NOENT)
707
$(_xml2po) -m $(_xml2po_mode) -e -o $@ $^
709
$(_DOC_HTML_TOPS): $(_DOC_C_DOCS) $(_DOC_LC_DOCS)
710
xsltproc -o $@ --xinclude --param db.chunk.chunk_top "false()" --stringparam db.chunk.basename "$(DOC_MODULE)" --stringparam db.chunk.extension ".xhtml" $(_db2html) $(patsubst %.xhtml,%.xml,$@)
712
################################################################################
715
$(_DOC_C_DOCS) $(_DOC_LC_DOCS) \
716
$(_DOC_OMF_ALL) $(_DOC_DSK_ALL) \
717
$(_DOC_HTML_ALL) $(_DOC_POFILES)
719
################################################################################
721
.PHONY: clean-doc-omf clean-doc-dsk clean-doc-lc clean-doc-dir
723
clean-doc-omf: ; rm -f $(_DOC_OMF_DB) $(_DOC_OMF_HTML)
724
clean-doc-dsk: ; rm -f $(_DOC_DSK_DB) $(_DOC_DSK_HTML)
726
rm -f $(_DOC_LC_DOCS)
727
@list='$(_DOC_POFILES)'; for po in $$list; do \
728
if ! test "$$po" -ef "$(srcdir)/$$po"; then \
733
@for lc in C $(_DOC_REAL_LINGUAS); do \
734
if test -f "$$lc/.xml2po.mo"; then \
735
echo "rm -f $$lc/.xml2po.mo"; \
736
rm -f "$$lc/.xml2po.mo"; \
739
clean-doc-dir: clean-doc-lc
740
@for lc in C $(_DOC_REAL_LINGUAS); do \
741
for dir in `find $$lc -depth -type d`; do \
742
if ! test $$dir -ef $(srcdir)/$$dir; then \
743
echo "rmdir $$dir"; \
750
$(_clean_omf) $(_clean_dsk) \
751
$(_clean_lc) $(_clean_dir)
753
$(_clean_omf) $(_clean_dsk) \
754
$(_clean_lc) $(_clean_dir)
756
$(_clean_omf) $(_clean_dsk) \
757
$(_clean_lc) $(_clean_dir)
758
maintainer-clean-local: \
759
$(_clean_omf) $(_clean_dsk) \
760
$(_clean_lc) $(_clean_dir)
762
################################################################################
764
.PHONY: dist-doc-docs dist-doc-pages dist-doc-figs dist-doc-omf dist-doc-dsk
766
$(if $(DOC_MODULE)$(DOC_ID),dist-doc-docs) \
767
$(if $(_DOC_C_FIGURES),dist-doc-figs) \
768
$(if $(_DOC_OMF_IN),dist-doc-omf)
769
# $(if $(_DOC_DSK_IN),dist-doc-dsk)
771
dist-doc-docs: $(_DOC_C_DOCS) $(_DOC_LC_DOCS) $(_DOC_POFILES)
772
@for lc in C $(_DOC_REAL_LINGUAS); do \
773
echo " $(mkinstalldirs) $(distdir)/$$lc"; \
774
$(mkinstalldirs) "$(distdir)/$$lc"; \
776
@list='$(_DOC_C_DOCS) $(_DOC_LC_DOCS) $(_DOC_POFILES)'; \
777
for doc in $$list; do \
778
if test -f "$$doc"; then d=; else d="$(srcdir)/"; fi; \
779
docdir=`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`; \
780
if ! test -d "$(distdir)/$$docdir"; then \
781
echo "$(mkinstalldirs) $(distdir)/$$docdir"; \
782
$(mkinstalldirs) "$(distdir)/$$docdir"; \
784
echo "$(INSTALL_DATA) $$d$$doc $(distdir)/$$doc"; \
785
$(INSTALL_DATA) "$$d$$doc" "$(distdir)/$$doc"; \
788
dist-doc-figs: $(_DOC_SRC_FIGURES)
789
@list='$(_DOC_C_FIGURES) $(_DOC_LC_FIGURES)'; \
790
for fig in $$list; do \
791
if test -f "$$fig"; then d=; else d="$(srcdir)/"; fi; \
792
if test -f "$$d$$fig"; then \
793
figdir=`echo $$fig | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`; \
794
if ! test -d "$(distdir)/$$figdir"; then \
795
echo "$(mkinstalldirs) $(distdir)/$$figdir"; \
796
$(mkinstalldirs) "$(distdir)/$$figdir"; \
798
echo "$(INSTALL_DATA) $$d$$fig $(distdir)/$$fig"; \
799
$(INSTALL_DATA) "$$d$$fig" "$(distdir)/$$fig"; \
804
@if test -f "$(_DOC_OMF_IN)"; then d=; else d="$(srcdir)/"; fi; \
805
echo "$(INSTALL_DATA) $$d$(_DOC_OMF_IN) $(distdir)/$(notdir $(_DOC_OMF_IN))"; \
806
$(INSTALL_DATA) "$$d$(_DOC_OMF_IN)" "$(distdir)/$(notdir $(_DOC_OMF_IN))"
809
@if test -f "$(_DOC_DSK_IN)"; then d=; else d="$(srcdir)/"; fi; \
810
echo "$(INSTALL_DATA) $$d$(_DOC_DSK_IN) $(distdir)/$(notdir $(_DOC_DSK_IN))"; \
811
$(INSTALL_DATA) "$$d$(_DOC_DSK_IN)" "$(distdir)/$(notdir $(_DOC_DSK_IN))"
813
################################################################################
815
.PHONY: check-doc-docs check-doc-omf
817
$(if $(DOC_MODULE),check-doc-docs) \
818
$(if $(DOC_ID),check-doc-pages) \
819
$(if $(_DOC_OMF_IN),check-doc-omf)
821
check-doc-docs: $(_DOC_C_DOCS) $(_DOC_LC_DOCS)
822
@for lc in C $(_DOC_REAL_LINGUAS); do \
828
xmlpath="$$lc:$(srcdir)/$$lc"; \
830
echo "xmllint --noout --noent --path $$xmlpath --xinclude --postvalid $$d$$lc/$(DOC_MODULE).xml"; \
831
xmllint --noout --noent --path "$$xmlpath" --xinclude --postvalid "$$d$$lc/$(DOC_MODULE).xml"; \
834
check-doc-pages: $(_DOC_C_PAGES) $(_DOC_LC_PAGES)
835
for lc in C $(_DOC_REAL_LINGUAS); do \
841
xmlpath="$$lc:$(srcdir)/$$lc"; \
843
for page in $(DOC_PAGES); do \
844
echo "xmllint --noout --noent --path $$xmlpath --xinclude --relaxng $(_malrng) $$d$$lc/$$page"; \
845
xmllint --noout --noent --path "$$xmlpath" --xinclude --relaxng "$(_malrng)" "$$d$$lc/$$page"; \
849
check-doc-omf: $(_DOC_OMF_ALL)
850
@list='$(_DOC_OMF_ALL)'; for omf in $$list; do \
851
echo "xmllint --noout --xinclude --dtdvalid 'http://scrollkeeper.sourceforge.net/dtds/scrollkeeper-omf-1.0/scrollkeeper-omf.dtd' $$omf"; \
852
xmllint --noout --xinclude --dtdvalid 'http://scrollkeeper.sourceforge.net/dtds/scrollkeeper-omf-1.0/scrollkeeper-omf.dtd' $$omf; \
855
################################################################################
857
.PHONY: install-doc-docs install-doc-html install-doc-figs install-doc-omf install-doc-dsk
859
install-data-local: \
860
$(if $(DOC_MODULE)$(DOC_ID),install-doc-docs) \
861
$(if $(_DOC_HTML_ALL),install-doc-html) \
862
$(if $(_DOC_C_FIGURES),install-doc-figs) \
863
$(if $(_DOC_OMF_IN),install-doc-omf)
864
# $(if $(_DOC_DSK_IN),install-doc-dsk)
867
@for lc in C $(_DOC_REAL_LINGUAS); do \
868
echo "$(mkinstalldirs) $(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$lc"; \
869
$(mkinstalldirs) $(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$lc; \
871
@list='$(_DOC_C_DOCS) $(_DOC_LC_DOCS)'; for doc in $$list; do \
872
if test -f "$$doc"; then d=; else d="$(srcdir)/"; fi; \
873
docdir="$$lc/"`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`; \
874
docdir="$(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$docdir"; \
875
if ! test -d "$$docdir"; then \
876
echo "$(mkinstalldirs) $$docdir"; \
877
$(mkinstalldirs) "$$docdir"; \
879
echo "$(INSTALL_DATA) $$d$$doc $(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$doc"; \
880
$(INSTALL_DATA) $$d$$doc $(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$doc; \
884
@list='$(patsubst C/%,%,$(_DOC_C_FIGURES))'; for fig in $$list; do \
885
for lc in C $(_DOC_REAL_LINGUAS); do \
887
if test -f "$$lc/$$fig"; then \
888
figfile="$$lc/$$fig"; \
889
elif test -f "$(srcdir)/$$lc/$$fig"; then \
890
figfile="$(srcdir)/$$lc/$$fig"; \
894
figdir="$$lc/"`echo $$fig | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`; \
895
figdir="$(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$figdir"; \
896
if ! test -d "$$figdir"; then \
897
echo "$(mkinstalldirs) $$figdir"; \
898
$(mkinstalldirs) "$$figdir"; \
900
figbase=`echo $$fig | sed -e 's/^.*\///'`; \
901
if $$figsymlink; then \
902
echo "cd $$figdir && $(LN_S) -f ../../C/$$fig $$figbase"; \
903
( cd "$$figdir" && $(LN_S) -f "../../C/$$fig" "$$figbase" ); \
905
echo "$(INSTALL_DATA) $$figfile $$figdir$$figbase"; \
906
$(INSTALL_DATA) "$$figfile" "$$figdir$$figbase"; \
915
$(mkinstalldirs) $(DESTDIR)$(OMF_DIR)/$(_doc_install_dir)
916
@list='$(_DOC_OMF_ALL)'; for omf in $$list; do \
917
echo "$(INSTALL_DATA) $$omf $(DESTDIR)$(OMF_DIR)/$(_doc_install_dir)/$$omf"; \
918
$(INSTALL_DATA) $$omf $(DESTDIR)$(OMF_DIR)/$(_doc_install_dir)/$$omf; \
920
@if test "x$(_ENABLE_SK)" = "xtrue"; then \
921
echo "scrollkeeper-update -p $(DESTDIR)$(_sklocalstatedir) -o $(DESTDIR)$(OMF_DIR)/$(_doc_install_dir)"; \
922
scrollkeeper-update -p "$(DESTDIR)$(_sklocalstatedir)" -o "$(DESTDIR)$(OMF_DIR)/$(_doc_install_dir)"; \
928
################################################################################
930
.PHONY: uninstall-doc-docs uninstall-doc-html uninstall-doc-figs uninstall-doc-omf uninstall-doc-dsk
932
$(if $(DOC_MODULE)$(DOC_ID),uninstall-doc-docs) \
933
$(if $(_DOC_HTML_ALL),uninstall-doc-html) \
934
$(if $(_DOC_C_FIGURES),uninstall-doc-figs) \
935
$(if $(_DOC_OMF_IN),uninstall-doc-omf)
936
# $(if $(_DOC_DSK_IN),uninstall-doc-dsk)
939
@list='$(_DOC_C_DOCS) $(_DOC_LC_DOCS)'; for doc in $$list; do \
940
echo " rm -f $(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$doc"; \
941
rm -f "$(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$doc"; \
945
@list='$(_DOC_C_FIGURES) $(_DOC_LC_FIGURES)'; for fig in $$list; do \
946
echo "rm -f $(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$fig"; \
947
rm -f "$(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$fig"; \
951
@list='$(_DOC_OMF_ALL)'; for omf in $$list; do \
952
if test "x$(_ENABLE_SK)" = "xtrue"; then \
953
echo "scrollkeeper-uninstall -p $(_sklocalstatedir) $(DESTDIR)$(OMF_DIR)/$(_doc_install_dir)/$$omf"; \
954
scrollkeeper-uninstall -p "$(_sklocalstatedir)" "$(DESTDIR)$(OMF_DIR)/$(_doc_install_dir)/$$omf"; \
956
echo "rm -f $(DESTDIR)$(OMF_DIR)/$(_doc_install_dir)/$$omf"; \
957
rm -f "$(DESTDIR)$(OMF_DIR)/$(_doc_install_dir)/$$omf"; \
959
dist-hook: doc-dist-hook
963
# Tell versions [3.59,3.63) of GNU make to not export all variables.
964
# Otherwise a system limit (for SysV at least) may be exceeded.