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)/configure.in
65 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
67 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
68 CONFIG_HEADER = $(top_builddir)/config.h
70 CONFIG_CLEAN_VPATH_FILES =
73 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
75 ALL_LINGUAS = @ALL_LINGUAS@
79 AUTOHEADER = @AUTOHEADER@
83 CATOBJEXT = @CATOBJEXT@
85 CCDEPMODE = @CCDEPMODE@
89 CYGPATH_W = @CYGPATH_W@
90 DATADIRNAME = @DATADIRNAME@
93 DISABLE_DEPRECATED_CFLAGS = @DISABLE_DEPRECATED_CFLAGS@
94 DISTCHECK_CONFIGURE_FLAGS = @DISTCHECK_CONFIGURE_FLAGS@
95 DOC_USER_FORMATS = @DOC_USER_FORMATS@
104 GETTEXT_PACKAGE = @GETTEXT_PACKAGE@
105 GLABELS_CFLAGS = @GLABELS_CFLAGS@
106 GLABELS_LIBS = @GLABELS_LIBS@
107 GLIB_GENMARSHAL = @GLIB_GENMARSHAL@
108 GLIB_REQUIRED = @GLIB_REQUIRED@
109 GMOFILES = @GMOFILES@
112 GTKDOC_CHECK = @GTKDOC_CHECK@
113 GTK_REQUIRED = @GTK_REQUIRED@
114 HAVE_XML_PARSE_HUGE = @HAVE_XML_PARSE_HUGE@
115 HELP_DIR = @HELP_DIR@
116 HTML_DIR = @HTML_DIR@
118 INSTALL_DATA = @INSTALL_DATA@
119 INSTALL_PROGRAM = @INSTALL_PROGRAM@
120 INSTALL_SCRIPT = @INSTALL_SCRIPT@
121 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
122 INSTOBJEXT = @INSTOBJEXT@
123 INTLLIBS = @INTLLIBS@
124 INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@
125 INTLTOOL_MERGE = @INTLTOOL_MERGE@
126 INTLTOOL_PERL = @INTLTOOL_PERL@
127 INTLTOOL_UPDATE = @INTLTOOL_UPDATE@
130 LIBEBOOK_CFLAGS = @LIBEBOOK_CFLAGS@
131 LIBEBOOK_LIBS = @LIBEBOOK_LIBS@
132 LIBEBOOK_REQUIRED = @LIBEBOOK_REQUIRED@
133 LIBGLABELS_CFLAGS = @LIBGLABELS_CFLAGS@
134 LIBGLABELS_LIBS = @LIBGLABELS_LIBS@
135 LIBGLABELS_VERSION_INFO = @LIBGLABELS_VERSION_INFO@
136 LIBGLADE_REQUIRED = @LIBGLADE_REQUIRED@
137 LIBGNOMEUI_REQUIRED = @LIBGNOMEUI_REQUIRED@
138 LIBGNOME_REQUIRED = @LIBGNOME_REQUIRED@
142 LIBXML_REQUIRED = @LIBXML_REQUIRED@
145 LTLIBOBJS = @LTLIBOBJS@
147 MAKEINFO = @MAKEINFO@
149 MKINSTALLDIRS = @MKINSTALLDIRS@
151 MSGFMT_OPTS = @MSGFMT_OPTS@
152 MSGMERGE = @MSGMERGE@
153 MYGAL_CFLAGS = @MYGAL_CFLAGS@
154 MYGAL_LIBS = @MYGAL_LIBS@
163 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
164 PACKAGE_NAME = @PACKAGE_NAME@
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@
176 SET_MAKE = @SET_MAKE@
179 UPDATE_DESKTOP_DATABASE = @UPDATE_DESKTOP_DATABASE@
180 UPDATE_MIME_DATABASE = @UPDATE_MIME_DATABASE@
183 WARN_CFLAGS = @WARN_CFLAGS@
184 XGETTEXT = @XGETTEXT@
185 XML_PARSE_HUGE_CFLAGS = @XML_PARSE_HUGE_CFLAGS@
186 XML_PARSE_HUGE_LIBS = @XML_PARSE_HUGE_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@
229 program_transform_name = @program_transform_name@
232 sharedstatedir = @sharedstatedir@
234 sysconfdir = @sysconfdir@
235 target_alias = @target_alias@
236 top_build_prefix = @top_build_prefix@
237 top_builddir = @top_builddir@
238 top_srcdir = @top_srcdir@
239 _clean_doc_header = $(if $(DOC_H_FILE),clean-doc-header)
240 _DOC_REAL_FORMATS = $(if $(DOC_USER_FORMATS),$(DOC_USER_FORMATS),$(DOC_FORMATS))
241 _DOC_REAL_LINGUAS = $(if $(filter environment,$(origin LINGUAS)), \
242 $(filter $(LINGUAS),$(DOC_LINGUAS)), \
245 _DOC_ABS_SRCDIR = @abs_srcdir@
246 _xml2po_mode = $(if $(DOC_ID),mallard,docbook)
247 @ENABLE_SK_TRUE@_ENABLE_SK = true
249 ################################################################################
251 --stringparam db2omf.basename $(DOC_MODULE) \
252 --stringparam db2omf.format $(3) \
253 --stringparam db2omf.dtd \
254 $(shell xmllint --format $(2) | grep -h PUBLIC | head -n 1 \
255 | sed -e 's/.*PUBLIC \(\"[^\"]*\"\).*/\1/') \
256 --stringparam db2omf.lang $(notdir $(patsubst %/$(notdir $(2)),%,$(2))) \
257 --stringparam db2omf.omf_dir "$(OMF_DIR)" \
258 --stringparam db2omf.help_dir "$(HELP_DIR)" \
259 --stringparam db2omf.omf_in "$(_DOC_OMF_IN)" \
260 $(if $(_ENABLE_SK), \
261 --stringparam db2omf.scrollkeeper_cl "$(_skcontentslist)") \
264 _DOC_OMF_IN = $(if $(DOC_MODULE),$(wildcard $(_DOC_ABS_SRCDIR)/$(DOC_MODULE).omf.in))
265 _DOC_OMF_DB = $(if $(_DOC_OMF_IN), \
266 $(foreach lc,C $(_DOC_REAL_LINGUAS),$(DOC_MODULE)-$(lc).omf))
268 _DOC_OMF_HTML = $(if $(_DOC_OMF_IN), \
269 $(foreach lc,C $(_DOC_REAL_LINGUAS),$(DOC_MODULE)-html-$(lc).omf))
274 $(if $(filter docbook,$(_DOC_REAL_FORMATS)),$(_DOC_OMF_DB)) \
275 $(if $(filter html HTML,$(_DOC_REAL_FORMATS)),$(_DOC_OMF_HTML))
278 ################################################################################
279 _DOC_C_MODULE = $(if $(DOC_MODULE),C/$(DOC_MODULE).xml)
280 _DOC_C_PAGES = $(foreach page,$(DOC_PAGES),C/$(page))
281 _DOC_C_ENTITIES = $(foreach ent,$(DOC_ENTITIES),C/$(ent))
282 _DOC_C_INCLUDES = $(foreach inc,$(DOC_INCLUDES),C/$(inc))
284 $(_DOC_C_ENTITIES) $(_DOC_C_INCLUDES) \
285 $(_DOC_C_PAGES) $(_DOC_C_MODULE)
287 _DOC_C_DOCS_NOENT = \
288 $(_DOC_C_MODULE) $(_DOC_C_INCLUDES) \
291 _DOC_C_FIGURES = $(if $(DOC_FIGURES), \
292 $(foreach fig,$(DOC_FIGURES),C/$(fig)), \
293 $(patsubst $(srcdir)/%,%,$(wildcard $(srcdir)/C/figures/*.png)))
296 # FIXME: probably have to shell escape to determine the file names
297 _DOC_C_HTML = $(foreach f, \
298 $(shell xsltproc --xinclude \
299 --stringparam db.chunk.basename "$(DOC_MODULE)" \
300 $(_chunks) "C/$(DOC_MODULE).xml"), \
304 ###############################################################################
305 _DOC_POFILES = $(if $(DOC_MODULE)$(DOC_ID), \
306 $(foreach lc,$(_DOC_REAL_LINGUAS),$(lc)/$(lc).po))
308 _DOC_LC_MODULES = $(if $(DOC_MODULE), \
309 $(foreach lc,$(_DOC_REAL_LINGUAS),$(lc)/$(DOC_MODULE).xml))
312 $(foreach lc,$(_DOC_REAL_LINGUAS),$(foreach page,$(_DOC_C_PAGES), \
313 $(lc)/$(notdir $(page)) ))
316 $(foreach lc,$(_DOC_REAL_LINGUAS),$(foreach inc,$(_DOC_C_INCLUDES), \
317 $(lc)/$(notdir $(inc)) ))
320 # FIXME: probably have to shell escape to determine the file names
322 $(foreach lc,$(_DOC_REAL_LINGUAS),$(foreach doc,$(_DOC_C_HTML), \
323 $(lc)/$(notdir $(doc)) ))
326 $(_DOC_LC_MODULES) $(_DOC_LC_INCLUDES) $(_DOC_LC_PAGES) \
327 $(if $(filter html HTML,$(_DOC_REAL_FORMATS)),$(_DOC_LC_HTML))
329 _DOC_LC_FIGURES = $(foreach lc,$(_DOC_REAL_LINGUAS), \
330 $(patsubst C/%,$(lc)/%,$(_DOC_C_FIGURES)) )
333 $(foreach fig,$(_DOC_C_FIGURES), $(foreach lc,C $(_DOC_REAL_LINGUAS), \
334 $(wildcard $(srcdir)/$(lc)/$(patsubst C/%,%,$(fig))) ))
336 _DOC_POT = $(if $(DOC_MODULE),$(DOC_MODULE).pot)
338 ################################################################################
339 _DOC_HTML_ALL = $(if $(filter html HTML,$(_DOC_REAL_FORMATS)), \
340 $(_DOC_C_HTML) $(_DOC_LC_HTML))
342 _DOC_HTML_TOPS = $(foreach lc,C $(_DOC_REAL_LINGUAS),$(lc)/$(DOC_MODULE).xhtml)
343 _clean_omf = $(if $(_DOC_OMF_IN),clean-doc-omf)
344 _clean_dsk = $(if $(_DOC_DSK_IN),clean-doc-dsk)
345 _clean_lc = $(if $(_DOC_REAL_LINGUAS),clean-doc-lc)
346 _clean_dir = $(if $(DOC_MODULE)$(DOC_ID),clean-doc-dir)
347 _doc_install_dir = $(if $(DOC_ID),$(DOC_ID),$(DOC_MODULE))
349 DOC_ENTITIES = legal.xml
351 DOC_FIGURES = figures/glabels-template-cd.png \
352 figures/glabels-template-label.png \
353 figures/glabels-template-layout.png \
354 figures/main-window-empty.png \
355 figures/merge-ex1-1.png \
356 figures/merge-ex1-2.png \
357 figures/merge-ex1-3.png \
358 figures/merge-ex1-4.png \
359 figures/merge-ex2-1.png \
360 figures/merge-ex2-2.png \
361 figures/merge-ex2-3.png \
362 figures/merge-ex2-4.png \
363 figures/merge-ex3-1.png \
364 figures/merge-ex3-2.png \
365 figures/object-editor-sidebar.png \
366 figures/print-copies.png \
367 figures/print-merge.png
369 DOC_LINGUAS = cs de es fr
373 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(top_srcdir)/gnome-doc-utils.make $(am__configure_deps)
375 case '$(am__configure_deps)' in \
377 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
378 && { if test -f $@; then exit 0; else break; fi; }; \
382 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu help/Makefile'; \
383 $(am__cd) $(top_srcdir) && \
384 $(AUTOMAKE) --gnu help/Makefile
386 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
389 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
391 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
392 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
395 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
396 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
398 $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
399 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
400 $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
401 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
402 $(am__aclocal_m4_deps):
416 distdir: $(DISTFILES)
417 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
418 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
419 list='$(DISTFILES)'; \
420 dist_files=`for file in $$list; do echo $$file; done | \
421 sed -e "s|^$$srcdirstrip/||;t" \
422 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
423 case $$dist_files in \
424 */*) $(MKDIR_P) `echo "$$dist_files" | \
425 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
428 for file in $$dist_files; do \
429 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
430 if test -d $$d/$$file; then \
431 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
432 if test -d "$(distdir)/$$file"; then \
433 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
435 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
436 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
437 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
439 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
441 test -f "$(distdir)/$$file" \
442 || cp -p $$d/$$file "$(distdir)/$$file" \
446 $(MAKE) $(AM_MAKEFLAGS) \
447 top_distdir="$(top_distdir)" distdir="$(distdir)" \
454 install-exec: install-exec-am
455 install-data: install-data-am
456 uninstall: uninstall-am
459 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
461 installcheck: installcheck-am
463 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
464 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
465 `test -z '$(STRIP)' || \
466 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
472 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
473 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
475 maintainer-clean-generic:
476 @echo "This command is intended for maintainers to use"
477 @echo "it deletes files that may require special tools to rebuild."
480 clean-am: clean-generic clean-libtool clean-local mostlyclean-am
482 distclean: distclean-am
484 distclean-am: clean-am distclean-generic distclean-local
498 install-data-am: install-data-local
500 install-dvi: install-dvi-am
506 install-html: install-html-am
510 install-info: install-info-am
516 install-pdf: install-pdf-am
520 install-ps: install-ps-am
526 maintainer-clean: maintainer-clean-am
528 maintainer-clean-am: distclean-am maintainer-clean-generic \
529 maintainer-clean-local
531 mostlyclean: mostlyclean-am
533 mostlyclean-am: mostlyclean-generic mostlyclean-libtool \
544 uninstall-am: uninstall-local
546 .MAKE: install-am install-strip
548 .PHONY: all all-am check check-am clean clean-generic clean-libtool \
549 clean-local dist-hook distclean distclean-generic \
550 distclean-libtool distclean-local distdir dvi dvi-am html \
551 html-am info info-am install install-am install-data \
552 install-data-am install-data-local install-dvi install-dvi-am \
553 install-exec install-exec-am install-html install-html-am \
554 install-info install-info-am install-man install-pdf \
555 install-pdf-am install-ps install-ps-am install-strip \
556 installcheck installcheck-am installdirs maintainer-clean \
557 maintainer-clean-generic maintainer-clean-local mostlyclean \
558 mostlyclean-generic mostlyclean-libtool mostlyclean-local pdf \
559 pdf-am ps ps-am uninstall uninstall-am uninstall-local
566 $(DOC_H_FILE): $(DOC_H_DOCS);
567 @rm -f $@.tmp; touch $@.tmp;
568 echo 'const gchar* documentation_credits[] = {' >> $@.tmp
569 list='$(DOC_H_DOCS)'; for doc in $$list; do \
570 xmlpath="`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`:$(srcdir)/`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`"; \
571 if ! test -f "$$doc"; then doc="$(srcdir)/$$doc"; fi; \
572 xsltproc --path "$$xmlpath" $(_credits) $$doc; \
574 | 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}}' \
575 | sed -e 's/\\/\\\\/' -e 's/"/\\"/' -e 's/\(.*\)/\t"\1",/' >> $@.tmp
576 echo ' NULL' >> $@.tmp
579 list='$(DOC_H_DOCS)'; for doc in $$list; do \
580 xmlpath="`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`:$(srcdir)/`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`"; \
581 if ! test -f "$$doc"; then doc="$(srcdir)/$$doc"; fi; \
582 docid=`echo "$$doc" | sed -e 's/.*\/\([^/]*\)\.xml/\1/' \
583 | sed -e 's/[^a-zA-Z_]/_/g' | tr 'a-z' 'A-Z'`; \
585 ids=`xsltproc --xinclude --path "$$xmlpath" $(_ids) $$doc`; \
586 for id in $$ids; do \
587 echo '#define HELP_'`echo $$docid`'_'`echo $$id \
588 | sed -e 's/[^a-zA-Z_]/_/g' | tr 'a-z' 'A-Z'`' "'$$id'"' >> $@.tmp; \
592 cp $@.tmp $@ && rm -f $@.tmp
595 @HAVE_GNOME_DOC_UTILS_FALSE@ @echo "*** GNOME Doc Utils must be installed in order to make dist"
596 @HAVE_GNOME_DOC_UTILS_FALSE@ @false
598 .PHONY: dist-doc-header
599 dist-doc-header: $(DOC_H_FILE)
600 @if test -f "$(DOC_H_FILE)"; then d=; else d="$(srcdir)/"; fi; \
601 echo "$(INSTALL_DATA) $${d}$(DOC_H_FILE) $(distdir)/$(DOC_H_FILE)"; \
602 $(INSTALL_DATA) "$${d}$(DOC_H_FILE)" "$(distdir)/$(DOC_H_FILE)";
604 doc-dist-hook: dist-check-gdu $(if $(DOC_H_FILE),dist-doc-header)
606 .PHONY: clean-doc-header
607 clean-local: $(_clean_doc_header)
608 distclean-local: $(_clean_doc_header)
609 mostlyclean-local: $(_clean_doc_header)
610 maintainer-clean-local: $(_clean_doc_header)
616 ################################################################################
630 DOC_FORMATS ?= docbook
634 ################################################################################
636 _xml2po ?= `which xml2po`
638 _db2html ?= `$(PKG_CONFIG) --variable db2html gnome-doc-utils`
639 _db2omf ?= `$(PKG_CONFIG) --variable db2omf gnome-doc-utils`
640 _malrng ?= `$(PKG_CONFIG) --variable malrng gnome-doc-utils`
641 _chunks ?= `$(PKG_CONFIG) --variable xmldir gnome-doc-utils`/gnome/xslt/docbook/utils/chunks.xsl
642 _credits ?= `$(PKG_CONFIG) --variable xmldir gnome-doc-utils`/gnome/xslt/docbook/utils/credits.xsl
643 _ids ?= `$(PKG_CONFIG) --variable xmldir gnome-doc-utils`/gnome/xslt/docbook/utils/ids.xsl
644 @ENABLE_SK_TRUE@_skpkgdatadir ?= `scrollkeeper-config --pkgdatadir`
645 @ENABLE_SK_TRUE@_sklocalstatedir ?= `scrollkeeper-config --pkglocalstatedir`
646 @ENABLE_SK_TRUE@_skcontentslist ?= $(_skpkgdatadir)/Templates/C/scrollkeeper_cl.xml
648 $(_DOC_OMF_DB) : $(_DOC_OMF_IN)
649 $(_DOC_OMF_DB) : $(DOC_MODULE)-%.omf : %/$(DOC_MODULE).xml
650 @test "x$(_ENABLE_SK)" != "xtrue" -o -f "$(_skcontentslist)" || { \
651 echo "The file '$(_skcontentslist)' does not exist." >&2; \
652 echo "Please check your ScrollKeeper installation." >&2; \
654 xsltproc -o $@ $(call db2omf_args,$@,$<,'docbook') || { rm -f "$@"; exit 1; }
656 $(_DOC_OMF_HTML) : $(_DOC_OMF_IN)
657 $(_DOC_OMF_HTML) : $(DOC_MODULE)-html-%.omf : %/$(DOC_MODULE).xml
658 @ENABLE_SK_TRUE@ @test "x$(_ENABLE_SK)" != "xtrue" -o -f "$(_skcontentslist)" || { \
659 @ENABLE_SK_TRUE@ echo "The file '$(_skcontentslist)' does not exist" >&2; \
660 @ENABLE_SK_TRUE@ echo "Please check your ScrollKeeper installation." >&2; \
661 @ENABLE_SK_TRUE@ exit 1; }
662 xsltproc -o $@ $(call db2omf_args,$@,$<,'xhtml') || { rm -f "$@"; exit 1; }
671 @if ! test -d $(dir $@); then \
672 echo "mkdir $(dir $@)"; \
675 @if test ! -f $@ -a -f $(srcdir)/$@; then \
676 echo "cp $(srcdir)/$@ $@"; \
677 cp "$(srcdir)/$@" "$@"; \
680 list='$(_DOC_C_DOCS_NOENT)'; for doc in $$list; do \
681 docs="$$docs $(_DOC_ABS_SRCDIR)/$$doc"; \
683 if ! test -f $@; then \
684 echo "(cd $(dir $@) && \
685 $(_xml2po) -m $(_xml2po_mode) -e $$docs > $(notdir $@).tmp && \
686 cp $(notdir $@).tmp $(notdir $@) && rm -f $(notdir $@).tmp)"; \
688 $(_xml2po) -m $(_xml2po_mode) -e $$docs > $(notdir $@).tmp && \
689 cp $(notdir $@).tmp $(notdir $@) && rm -f $(notdir $@).tmp); \
691 echo "(cd $(dir $@) && \
692 $(_xml2po) -m $(_xml2po_mode) -e -u $(notdir $@) $$docs)"; \
694 $(_xml2po) -m $(_xml2po_mode) -e -u $(notdir $@) $$docs); \
697 # FIXME: fix the dependancy
698 # FIXME: hook xml2po up
699 $(_DOC_LC_DOCS) : $(_DOC_POFILES)
700 $(_DOC_LC_DOCS) : $(_DOC_C_DOCS)
701 if ! test -d $(dir $@); then mkdir $(dir $@); fi
702 if [ -f "C/$(notdir $@)" ]; then d="../"; else d="$(_DOC_ABS_SRCDIR)/"; fi; \
703 po="$(dir $@)$(patsubst %/$(notdir $@),%,$@).po"; \
704 if [ -f "$${po}" ]; then po="../$${po}"; else po="$(_DOC_ABS_SRCDIR)/$${po}"; fi; \
706 $(_xml2po) -m $(_xml2po_mode) -e -p "$${po}" \
707 "$${d}C/$(notdir $@)" > $(notdir $@).tmp && \
708 cp $(notdir $@).tmp $(notdir $@) && rm -f $(notdir $@).tmp)
711 $(_DOC_POT): $(_DOC_C_DOCS_NOENT)
712 $(_xml2po) -m $(_xml2po_mode) -e -o $@ $^
714 $(_DOC_HTML_TOPS): $(_DOC_C_DOCS) $(_DOC_LC_DOCS)
715 xsltproc -o $@ --xinclude --param db.chunk.chunk_top "false()" --stringparam db.chunk.basename "$(DOC_MODULE)" --stringparam db.chunk.extension ".xhtml" $(_db2html) $(patsubst %.xhtml,%.xml,$@)
717 ################################################################################
720 $(_DOC_C_DOCS) $(_DOC_LC_DOCS) \
721 $(_DOC_OMF_ALL) $(_DOC_DSK_ALL) \
722 $(_DOC_HTML_ALL) $(_DOC_POFILES)
724 ################################################################################
726 .PHONY: clean-doc-omf clean-doc-dsk clean-doc-lc clean-doc-dir
728 clean-doc-omf: ; rm -f $(_DOC_OMF_DB) $(_DOC_OMF_HTML)
729 clean-doc-dsk: ; rm -f $(_DOC_DSK_DB) $(_DOC_DSK_HTML)
731 rm -f $(_DOC_LC_DOCS)
732 @list='$(_DOC_POFILES)'; for po in $$list; do \
733 if ! test "$$po" -ef "$(srcdir)/$$po"; then \
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) $(_DOC_LC_DOCS) $(_DOC_POFILES)'; \
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"; \
793 dist-doc-figs: $(_DOC_SRC_FIGURES)
794 @list='$(_DOC_C_FIGURES) $(_DOC_LC_FIGURES)'; \
795 for fig in $$list; do \
796 if test -f "$$fig"; then d=; else d="$(srcdir)/"; fi; \
797 if test -f "$$d$$fig"; then \
798 figdir=`echo $$fig | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`; \
799 if ! test -d "$(distdir)/$$figdir"; then \
800 echo "$(mkinstalldirs) $(distdir)/$$figdir"; \
801 $(mkinstalldirs) "$(distdir)/$$figdir"; \
803 echo "$(INSTALL_DATA) $$d$$fig $(distdir)/$$fig"; \
804 $(INSTALL_DATA) "$$d$$fig" "$(distdir)/$$fig"; \
809 @if test -f "$(_DOC_OMF_IN)"; then d=; else d="$(srcdir)/"; fi; \
810 echo "$(INSTALL_DATA) $$d$(_DOC_OMF_IN) $(distdir)/$(notdir $(_DOC_OMF_IN))"; \
811 $(INSTALL_DATA) "$$d$(_DOC_OMF_IN)" "$(distdir)/$(notdir $(_DOC_OMF_IN))"
814 @if test -f "$(_DOC_DSK_IN)"; then d=; else d="$(srcdir)/"; fi; \
815 echo "$(INSTALL_DATA) $$d$(_DOC_DSK_IN) $(distdir)/$(notdir $(_DOC_DSK_IN))"; \
816 $(INSTALL_DATA) "$$d$(_DOC_DSK_IN)" "$(distdir)/$(notdir $(_DOC_DSK_IN))"
818 ################################################################################
820 .PHONY: check-doc-docs check-doc-omf
822 $(if $(DOC_MODULE),check-doc-docs) \
823 $(if $(DOC_ID),check-doc-pages) \
824 $(if $(_DOC_OMF_IN),check-doc-omf)
826 check-doc-docs: $(_DOC_C_DOCS) $(_DOC_LC_DOCS)
827 @for lc in C $(_DOC_REAL_LINGUAS); do \
833 xmlpath="$$lc:$(srcdir)/$$lc"; \
835 echo "xmllint --noout --noent --path $$xmlpath --xinclude --postvalid $$d$$lc/$(DOC_MODULE).xml"; \
836 xmllint --noout --noent --path "$$xmlpath" --xinclude --postvalid "$$d$$lc/$(DOC_MODULE).xml"; \
839 check-doc-pages: $(_DOC_C_PAGES) $(_DOC_LC_PAGES)
840 for lc in C $(_DOC_REAL_LINGUAS); do \
846 xmlpath="$$lc:$(srcdir)/$$lc"; \
848 for page in $(DOC_PAGES); do \
849 echo "xmllint --noout --noent --path $$xmlpath --xinclude --relaxng $(_malrng) $$d$$lc/$$page"; \
850 xmllint --noout --noent --path "$$xmlpath" --xinclude --relaxng "$(_malrng)" "$$d$$lc/$$page"; \
854 check-doc-omf: $(_DOC_OMF_ALL)
855 @list='$(_DOC_OMF_ALL)'; for omf in $$list; do \
856 echo "xmllint --noout --xinclude --dtdvalid 'http://scrollkeeper.sourceforge.net/dtds/scrollkeeper-omf-1.0/scrollkeeper-omf.dtd' $$omf"; \
857 xmllint --noout --xinclude --dtdvalid 'http://scrollkeeper.sourceforge.net/dtds/scrollkeeper-omf-1.0/scrollkeeper-omf.dtd' $$omf; \
860 ################################################################################
862 .PHONY: install-doc-docs install-doc-html install-doc-figs install-doc-omf install-doc-dsk
864 install-data-local: \
865 $(if $(DOC_MODULE)$(DOC_ID),install-doc-docs) \
866 $(if $(_DOC_HTML_ALL),install-doc-html) \
867 $(if $(_DOC_C_FIGURES),install-doc-figs) \
868 $(if $(_DOC_OMF_IN),install-doc-omf)
869 # $(if $(_DOC_DSK_IN),install-doc-dsk)
872 @for lc in C $(_DOC_REAL_LINGUAS); do \
873 echo "$(mkinstalldirs) $(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$lc"; \
874 $(mkinstalldirs) $(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$lc; \
876 @list='$(_DOC_C_DOCS) $(_DOC_LC_DOCS)'; for doc in $$list; do \
877 if test -f "$$doc"; then d=; else d="$(srcdir)/"; fi; \
878 docdir="$$lc/"`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`; \
879 docdir="$(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$docdir"; \
880 if ! test -d "$$docdir"; then \
881 echo "$(mkinstalldirs) $$docdir"; \
882 $(mkinstalldirs) "$$docdir"; \
884 echo "$(INSTALL_DATA) $$d$$doc $(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$doc"; \
885 $(INSTALL_DATA) $$d$$doc $(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$doc; \
889 @list='$(patsubst C/%,%,$(_DOC_C_FIGURES))'; for fig in $$list; do \
890 for lc in C $(_DOC_REAL_LINGUAS); do \
892 if test -f "$$lc/$$fig"; then \
893 figfile="$$lc/$$fig"; \
894 elif test -f "$(srcdir)/$$lc/$$fig"; then \
895 figfile="$(srcdir)/$$lc/$$fig"; \
899 figdir="$$lc/"`echo $$fig | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`; \
900 figdir="$(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$figdir"; \
901 if ! test -d "$$figdir"; then \
902 echo "$(mkinstalldirs) $$figdir"; \
903 $(mkinstalldirs) "$$figdir"; \
905 figbase=`echo $$fig | sed -e 's/^.*\///'`; \
906 if $$figsymlink; then \
907 echo "cd $$figdir && $(LN_S) -f ../../C/$$fig $$figbase"; \
908 ( cd "$$figdir" && $(LN_S) -f "../../C/$$fig" "$$figbase" ); \
910 echo "$(INSTALL_DATA) $$figfile $$figdir$$figbase"; \
911 $(INSTALL_DATA) "$$figfile" "$$figdir$$figbase"; \
920 $(mkinstalldirs) $(DESTDIR)$(OMF_DIR)/$(_doc_install_dir)
921 @list='$(_DOC_OMF_ALL)'; for omf in $$list; do \
922 echo "$(INSTALL_DATA) $$omf $(DESTDIR)$(OMF_DIR)/$(_doc_install_dir)/$$omf"; \
923 $(INSTALL_DATA) $$omf $(DESTDIR)$(OMF_DIR)/$(_doc_install_dir)/$$omf; \
925 @if test "x$(_ENABLE_SK)" = "xtrue"; then \
926 echo "scrollkeeper-update -p $(DESTDIR)$(_sklocalstatedir) -o $(DESTDIR)$(OMF_DIR)/$(_doc_install_dir)"; \
927 scrollkeeper-update -p "$(DESTDIR)$(_sklocalstatedir)" -o "$(DESTDIR)$(OMF_DIR)/$(_doc_install_dir)"; \
933 ################################################################################
935 .PHONY: uninstall-doc-docs uninstall-doc-html uninstall-doc-figs uninstall-doc-omf uninstall-doc-dsk
937 $(if $(DOC_MODULE)$(DOC_ID),uninstall-doc-docs) \
938 $(if $(_DOC_HTML_ALL),uninstall-doc-html) \
939 $(if $(_DOC_C_FIGURES),uninstall-doc-figs) \
940 $(if $(_DOC_OMF_IN),uninstall-doc-omf)
941 # $(if $(_DOC_DSK_IN),uninstall-doc-dsk)
944 @list='$(_DOC_C_DOCS) $(_DOC_LC_DOCS)'; for doc in $$list; do \
945 echo " rm -f $(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$doc"; \
946 rm -f "$(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$doc"; \
950 @list='$(_DOC_C_FIGURES) $(_DOC_LC_FIGURES)'; for fig in $$list; do \
951 echo "rm -f $(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$fig"; \
952 rm -f "$(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$fig"; \
956 @list='$(_DOC_OMF_ALL)'; for omf in $$list; do \
957 if test "x$(_ENABLE_SK)" = "xtrue"; then \
958 echo "scrollkeeper-uninstall -p $(_sklocalstatedir) $(DESTDIR)$(OMF_DIR)/$(_doc_install_dir)/$$omf"; \
959 scrollkeeper-uninstall -p "$(_sklocalstatedir)" "$(DESTDIR)$(OMF_DIR)/$(_doc_install_dir)/$$omf"; \
961 echo "rm -f $(DESTDIR)$(OMF_DIR)/$(_doc_install_dir)/$$omf"; \
962 rm -f "$(DESTDIR)$(OMF_DIR)/$(_doc_install_dir)/$$omf"; \
965 dist-hook: doc-dist-hook
967 # Tell versions [3.59,3.63) of GNU make to not export all variables.
968 # Otherwise a system limit (for SysV at least) may be exceeded.