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.ac
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 =
71 AM_V_GEN = $(am__v_GEN_$(V))
72 am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
73 am__v_GEN_0 = @echo " GEN " $@;
74 AM_V_at = $(am__v_at_$(V))
75 am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))
79 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
81 ALL_LINGUAS = @ALL_LINGUAS@
83 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
86 AUTOHEADER = @AUTOHEADER@
89 CAIRO_REQUIRED = @CAIRO_REQUIRED@
91 CATOBJEXT = @CATOBJEXT@
93 CCDEPMODE = @CCDEPMODE@
97 CYGPATH_W = @CYGPATH_W@
98 DATADIRNAME = @DATADIRNAME@
101 DISABLE_DEPRECATED_CFLAGS = @DISABLE_DEPRECATED_CFLAGS@
102 DISTCHECK_CONFIGURE_FLAGS = @DISTCHECK_CONFIGURE_FLAGS@
104 DOC_USER_FORMATS = @DOC_USER_FORMATS@
105 DSYMUTIL = @DSYMUTIL@
113 GDK_PIXBUF_CSOURCE = @GDK_PIXBUF_CSOURCE@
114 GETTEXT_PACKAGE = @GETTEXT_PACKAGE@
115 GLABELS_BRANCH = @GLABELS_BRANCH@
116 GLABELS_CFLAGS = @GLABELS_CFLAGS@
117 GLABELS_LIBS = @GLABELS_LIBS@
118 GLIB_COMPILE_SCHEMAS = @GLIB_COMPILE_SCHEMAS@
119 GLIB_GENMARSHAL = @GLIB_GENMARSHAL@
120 GLIB_REQUIRED = @GLIB_REQUIRED@
121 GMOFILES = @GMOFILES@
124 GSETTINGS_DISABLE_SCHEMAS_COMPILE = @GSETTINGS_DISABLE_SCHEMAS_COMPILE@
125 GTKDOC_CHECK = @GTKDOC_CHECK@
126 GTKDOC_MKPDF = @GTKDOC_MKPDF@
127 GTKDOC_REBASE = @GTKDOC_REBASE@
128 GTK_REQUIRED = @GTK_REQUIRED@
129 GTK_UPDATE_ICON_CACHE = @GTK_UPDATE_ICON_CACHE@
130 HELP_DIR = @HELP_DIR@
131 HTML_DIR = @HTML_DIR@
133 INSTALL_DATA = @INSTALL_DATA@
134 INSTALL_PROGRAM = @INSTALL_PROGRAM@
135 INSTALL_SCRIPT = @INSTALL_SCRIPT@
136 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
137 INSTOBJEXT = @INSTOBJEXT@
138 INTLLIBS = @INTLLIBS@
139 INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@
140 INTLTOOL_MERGE = @INTLTOOL_MERGE@
141 INTLTOOL_PERL = @INTLTOOL_PERL@
142 INTLTOOL_UPDATE = @INTLTOOL_UPDATE@
145 LIBBARCODE_CFLAGS = @LIBBARCODE_CFLAGS@
146 LIBBARCODE_LIBS = @LIBBARCODE_LIBS@
147 LIBBARCODE_REQUIRED = @LIBBARCODE_REQUIRED@
148 LIBEBOOK_CFLAGS = @LIBEBOOK_CFLAGS@
149 LIBEBOOK_LIBS = @LIBEBOOK_LIBS@
150 LIBEBOOK_REQUIRED = @LIBEBOOK_REQUIRED@
151 LIBGLABELS_API_VERSION = @LIBGLABELS_API_VERSION@
152 LIBGLABELS_BRANCH = @LIBGLABELS_BRANCH@
153 LIBGLABELS_CFLAGS = @LIBGLABELS_CFLAGS@
154 LIBGLABELS_LIBS = @LIBGLABELS_LIBS@
155 LIBGLBARCODE_API_VERSION = @LIBGLBARCODE_API_VERSION@
156 LIBGLBARCODE_BRANCH = @LIBGLBARCODE_BRANCH@
157 LIBGLBARCODE_CFLAGS = @LIBGLBARCODE_CFLAGS@
158 LIBGLBARCODE_LIBS = @LIBGLBARCODE_LIBS@
159 LIBIEC16022_CFLAGS = @LIBIEC16022_CFLAGS@
160 LIBIEC16022_LIBS = @LIBIEC16022_LIBS@
161 LIBIEC16022_REQUIRED = @LIBIEC16022_REQUIRED@
163 LIBQRENCODE_CFLAGS = @LIBQRENCODE_CFLAGS@
164 LIBQRENCODE_LIBS = @LIBQRENCODE_LIBS@
165 LIBQRENCODE_REQUIRED = @LIBQRENCODE_REQUIRED@
166 LIBRSVG_REQUIRED = @LIBRSVG_REQUIRED@
169 LIBXML_REQUIRED = @LIBXML_REQUIRED@
170 LIBZINT_CFLAGS = @LIBZINT_CFLAGS@
171 LIBZINT_LIBS = @LIBZINT_LIBS@
172 LIBZINT_REQUIRED = @LIBZINT_REQUIRED@
175 LTLIBOBJS = @LTLIBOBJS@
177 MAKEINFO = @MAKEINFO@
178 MANIFEST_TOOL = @MANIFEST_TOOL@
180 MKINSTALLDIRS = @MKINSTALLDIRS@
182 MSGFMT_OPTS = @MSGFMT_OPTS@
183 MSGMERGE = @MSGMERGE@
192 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
193 PACKAGE_NAME = @PACKAGE_NAME@
194 PACKAGE_STRING = @PACKAGE_STRING@
195 PACKAGE_TARNAME = @PACKAGE_TARNAME@
196 PACKAGE_URL = @PACKAGE_URL@
197 PACKAGE_VERSION = @PACKAGE_VERSION@
198 PANGO_REQUIRED = @PANGO_REQUIRED@
199 PATH_SEPARATOR = @PATH_SEPARATOR@
200 PKG_CONFIG = @PKG_CONFIG@
201 PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
202 PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
205 PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@
206 PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@
209 SET_MAKE = @SET_MAKE@
214 WARN_CFLAGS = @WARN_CFLAGS@
215 XGETTEXT = @XGETTEXT@
216 abs_builddir = @abs_builddir@
217 abs_srcdir = @abs_srcdir@
218 abs_top_builddir = @abs_top_builddir@
219 abs_top_srcdir = @abs_top_srcdir@
220 ac_ct_AR = @ac_ct_AR@
221 ac_ct_CC = @ac_ct_CC@
222 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
223 am__include = @am__include@
224 am__leading_dot = @am__leading_dot@
225 am__quote = @am__quote@
227 am__untar = @am__untar@
230 build_alias = @build_alias@
231 build_cpu = @build_cpu@
232 build_os = @build_os@
233 build_vendor = @build_vendor@
234 builddir = @builddir@
236 datarootdir = @datarootdir@
239 exec_prefix = @exec_prefix@
240 gsettingsschemadir = @gsettingsschemadir@
242 host_alias = @host_alias@
243 host_cpu = @host_cpu@
245 host_vendor = @host_vendor@
247 includedir = @includedir@
249 install_sh = @install_sh@
251 libexecdir = @libexecdir@
252 localedir = @localedir@
253 localstatedir = @localstatedir@
256 oldincludedir = @oldincludedir@
259 program_transform_name = @program_transform_name@
262 sharedstatedir = @sharedstatedir@
264 sysconfdir = @sysconfdir@
265 target_alias = @target_alias@
266 top_build_prefix = @top_build_prefix@
267 top_builddir = @top_builddir@
268 top_srcdir = @top_srcdir@
269 _clean_doc_header = $(if $(DOC_H_FILE),clean-doc-header)
270 _DOC_REAL_FORMATS = $(if $(DOC_USER_FORMATS),$(DOC_USER_FORMATS),$(DOC_FORMATS))
271 _DOC_REAL_LINGUAS = $(if $(filter environment,$(origin LINGUAS)), \
272 $(filter $(LINGUAS),$(DOC_LINGUAS)), \
275 _DOC_ABS_SRCDIR = @abs_srcdir@
276 _xml2po_mode = $(if $(DOC_ID),mallard,docbook)
277 @ENABLE_SK_TRUE@_ENABLE_SK = true
279 ################################################################################
281 --stringparam db2omf.basename $(DOC_MODULE) \
282 --stringparam db2omf.format $(3) \
283 --stringparam db2omf.dtd \
284 $(shell xmllint --format $(2) | grep -h PUBLIC | head -n 1 \
285 | sed -e 's/.*PUBLIC \(\"[^\"]*\"\).*/\1/') \
286 --stringparam db2omf.lang $(notdir $(patsubst %/$(notdir $(2)),%,$(2))) \
287 --stringparam db2omf.omf_dir "$(OMF_DIR)" \
288 --stringparam db2omf.help_dir "$(HELP_DIR)" \
289 --stringparam db2omf.omf_in "$(_DOC_OMF_IN)" \
290 $(if $(_ENABLE_SK), \
291 --stringparam db2omf.scrollkeeper_cl "$(_skcontentslist)") \
294 _DOC_OMF_IN = $(if $(DOC_MODULE),$(wildcard $(_DOC_ABS_SRCDIR)/$(DOC_MODULE).omf.in))
295 _DOC_OMF_DB = $(if $(_DOC_OMF_IN), \
296 $(foreach lc,C $(_DOC_REAL_LINGUAS),$(DOC_MODULE)-$(lc).omf))
298 _DOC_OMF_HTML = $(if $(_DOC_OMF_IN), \
299 $(foreach lc,C $(_DOC_REAL_LINGUAS),$(DOC_MODULE)-html-$(lc).omf))
304 $(if $(filter docbook,$(_DOC_REAL_FORMATS)),$(_DOC_OMF_DB)) \
305 $(if $(filter html HTML,$(_DOC_REAL_FORMATS)),$(_DOC_OMF_HTML))
308 ################################################################################
309 _DOC_C_MODULE = $(if $(DOC_MODULE),C/$(DOC_MODULE).xml)
310 _DOC_C_PAGES = $(foreach page,$(DOC_PAGES),C/$(page))
311 _DOC_C_ENTITIES = $(foreach ent,$(DOC_ENTITIES),C/$(ent))
312 _DOC_C_INCLUDES = $(foreach inc,$(DOC_INCLUDES),C/$(inc))
314 $(_DOC_C_ENTITIES) $(_DOC_C_INCLUDES) \
315 $(_DOC_C_PAGES) $(_DOC_C_MODULE)
317 _DOC_C_DOCS_NOENT = \
318 $(_DOC_C_MODULE) $(_DOC_C_INCLUDES) \
321 _DOC_C_FIGURES = $(if $(DOC_FIGURES), \
322 $(foreach fig,$(DOC_FIGURES),C/$(fig)), \
323 $(patsubst $(srcdir)/%,%,$(wildcard $(srcdir)/C/figures/*.png)))
326 # FIXME: probably have to shell escape to determine the file names
327 _DOC_C_HTML = $(foreach f, \
328 $(shell xsltproc --xinclude \
329 --stringparam db.chunk.basename "$(DOC_MODULE)" \
330 $(_chunks) "C/$(DOC_MODULE).xml"), \
334 ###############################################################################
335 _DOC_POFILES = $(if $(DOC_MODULE)$(DOC_ID), \
336 $(foreach lc,$(_DOC_REAL_LINGUAS),$(lc)/$(lc).po))
338 _DOC_MOFILES = $(patsubst %.po,%.mo,$(_DOC_POFILES))
339 _DOC_LC_MODULES = $(if $(DOC_MODULE), \
340 $(foreach lc,$(_DOC_REAL_LINGUAS),$(lc)/$(DOC_MODULE).xml))
343 $(foreach lc,$(_DOC_REAL_LINGUAS),$(foreach page,$(_DOC_C_PAGES), \
344 $(lc)/$(notdir $(page)) ))
347 $(foreach lc,$(_DOC_REAL_LINGUAS),$(foreach inc,$(_DOC_C_INCLUDES), \
348 $(lc)/$(notdir $(inc)) ))
351 # FIXME: probably have to shell escape to determine the file names
353 $(foreach lc,$(_DOC_REAL_LINGUAS),$(foreach doc,$(_DOC_C_HTML), \
354 $(lc)/$(notdir $(doc)) ))
357 $(_DOC_LC_MODULES) $(_DOC_LC_INCLUDES) $(_DOC_LC_PAGES) \
358 $(if $(filter html HTML,$(_DOC_REAL_FORMATS)),$(_DOC_LC_HTML))
360 _DOC_LC_FIGURES = $(foreach lc,$(_DOC_REAL_LINGUAS), \
361 $(patsubst C/%,$(lc)/%,$(_DOC_C_FIGURES)) )
364 $(foreach fig,$(_DOC_C_FIGURES), $(foreach lc,C $(_DOC_REAL_LINGUAS), \
365 $(wildcard $(srcdir)/$(lc)/$(patsubst C/%,%,$(fig))) ))
367 _DOC_POT = $(if $(DOC_MODULE),$(DOC_MODULE).pot,$(if $(DOC_ID),$(DOC_ID).pot))
369 ################################################################################
370 _DOC_HTML_ALL = $(if $(filter html HTML,$(_DOC_REAL_FORMATS)), \
371 $(_DOC_C_HTML) $(_DOC_LC_HTML))
373 _DOC_HTML_TOPS = $(foreach lc,C $(_DOC_REAL_LINGUAS),$(lc)/$(DOC_MODULE).xhtml)
374 _clean_omf = $(if $(_DOC_OMF_IN),clean-doc-omf)
375 _clean_dsk = $(if $(_DOC_DSK_IN),clean-doc-dsk)
376 _clean_lc = $(if $(_DOC_REAL_LINGUAS),clean-doc-lc)
377 _clean_dir = $(if $(DOC_MODULE)$(DOC_ID),clean-doc-dir)
378 _doc_install_dir = $(if $(DOC_ID),$(DOC_ID),$(DOC_MODULE))
379 DOC_ID = $(GLABELS_BRANCH)
381 figures/glabels-logo.png \
382 figures/glabels-template-cd-label.png \
383 figures/glabels-template-circle-label.png \
384 figures/glabels-template-ellipse-label.png \
385 figures/glabels-template-layout.png \
386 figures/glabels-template-rect-label.png \
387 figures/introduction-glabels-main-window.png \
388 figures/main-window-empty.png \
389 figures/merge-ex1-1.png \
390 figures/merge-ex1-2.png \
391 figures/merge-ex1-3.png \
392 figures/merge-ex1-4.png \
393 figures/merge-ex2-1.png \
394 figures/merge-ex2-2.png \
395 figures/merge-ex2-3.png \
396 figures/merge-ex2-4.png \
397 figures/object-editor-sidebar.png \
398 figures/print-copies.png \
399 figures/print-merge.png \
400 figures/skip-fields-output.png \
401 figures/skip-fields-screenshot.png
408 customtemplate.page \
426 DOC_LINGUAS = cs de es fr nl sl
430 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(top_srcdir)/gnome-doc-utils.make $(am__configure_deps)
432 case '$(am__configure_deps)' in \
434 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
435 && { if test -f $@; then exit 0; else break; fi; }; \
439 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu help/Makefile'; \
440 $(am__cd) $(top_srcdir) && \
441 $(AUTOMAKE) --gnu help/Makefile
443 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
446 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
448 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
449 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
452 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
453 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
455 $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
456 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
457 $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
458 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
459 $(am__aclocal_m4_deps):
473 distdir: $(DISTFILES)
474 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
475 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
476 list='$(DISTFILES)'; \
477 dist_files=`for file in $$list; do echo $$file; done | \
478 sed -e "s|^$$srcdirstrip/||;t" \
479 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
480 case $$dist_files in \
481 */*) $(MKDIR_P) `echo "$$dist_files" | \
482 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
485 for file in $$dist_files; do \
486 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
487 if test -d $$d/$$file; then \
488 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
489 if test -d "$(distdir)/$$file"; then \
490 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
492 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
493 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
494 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
496 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
498 test -f "$(distdir)/$$file" \
499 || cp -p $$d/$$file "$(distdir)/$$file" \
503 $(MAKE) $(AM_MAKEFLAGS) \
504 top_distdir="$(top_distdir)" distdir="$(distdir)" \
511 install-exec: install-exec-am
512 install-data: install-data-am
513 uninstall: uninstall-am
516 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
518 installcheck: installcheck-am
520 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
521 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
522 `test -z '$(STRIP)' || \
523 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
529 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
530 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
532 maintainer-clean-generic:
533 @echo "This command is intended for maintainers to use"
534 @echo "it deletes files that may require special tools to rebuild."
537 clean-am: clean-generic clean-libtool clean-local mostlyclean-am
539 distclean: distclean-am
541 distclean-am: clean-am distclean-generic distclean-local
555 install-data-am: install-data-local
557 install-dvi: install-dvi-am
563 install-html: install-html-am
567 install-info: install-info-am
573 install-pdf: install-pdf-am
577 install-ps: install-ps-am
583 maintainer-clean: maintainer-clean-am
585 maintainer-clean-am: distclean-am maintainer-clean-generic \
586 maintainer-clean-local
588 mostlyclean: mostlyclean-am
590 mostlyclean-am: mostlyclean-generic mostlyclean-libtool \
601 uninstall-am: uninstall-local
603 .MAKE: install-am install-strip
605 .PHONY: all all-am check check-am clean clean-generic clean-libtool \
606 clean-local dist-hook distclean distclean-generic \
607 distclean-libtool distclean-local distdir dvi dvi-am html \
608 html-am info info-am install install-am install-data \
609 install-data-am install-data-local install-dvi install-dvi-am \
610 install-exec install-exec-am install-html install-html-am \
611 install-info install-info-am install-man install-pdf \
612 install-pdf-am install-ps install-ps-am install-strip \
613 installcheck installcheck-am installdirs maintainer-clean \
614 maintainer-clean-generic maintainer-clean-local mostlyclean \
615 mostlyclean-generic mostlyclean-libtool mostlyclean-local pdf \
616 pdf-am ps ps-am uninstall uninstall-am uninstall-local
623 $(DOC_H_FILE): $(DOC_H_DOCS);
624 @rm -f $@.tmp; touch $@.tmp;
625 echo 'const gchar* documentation_credits[] = {' >> $@.tmp
626 list='$(DOC_H_DOCS)'; for doc in $$list; do \
627 xmlpath="`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`:$(srcdir)/`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`"; \
628 if ! test -f "$$doc"; then doc="$(srcdir)/$$doc"; fi; \
629 xsltproc --path "$$xmlpath" $(_credits) $$doc; \
631 | 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}}' \
632 | sed -e 's/\\/\\\\/' -e 's/"/\\"/' -e 's/\(.*\)/\t"\1",/' >> $@.tmp
633 echo ' NULL' >> $@.tmp
636 list='$(DOC_H_DOCS)'; for doc in $$list; do \
637 xmlpath="`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`:$(srcdir)/`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`"; \
638 if ! test -f "$$doc"; then doc="$(srcdir)/$$doc"; fi; \
639 docid=`echo "$$doc" | sed -e 's/.*\/\([^/]*\)\.xml/\1/' \
640 | sed -e 's/[^a-zA-Z_]/_/g' | tr 'a-z' 'A-Z'`; \
642 ids=`xsltproc --xinclude --path "$$xmlpath" $(_ids) $$doc`; \
643 for id in $$ids; do \
644 echo '#define HELP_'`echo $$docid`'_'`echo $$id \
645 | sed -e 's/[^a-zA-Z_]/_/g' | tr 'a-z' 'A-Z'`' "'$$id'"' >> $@.tmp; \
649 cp $@.tmp $@ && rm -f $@.tmp
652 @HAVE_GNOME_DOC_UTILS_FALSE@ @echo "*** GNOME Doc Utils must be installed in order to make dist"
653 @HAVE_GNOME_DOC_UTILS_FALSE@ @false
655 .PHONY: dist-doc-header
656 dist-doc-header: $(DOC_H_FILE)
657 @if test -f "$(DOC_H_FILE)"; then d=; else d="$(srcdir)/"; fi; \
658 echo "$(INSTALL_DATA) $${d}$(DOC_H_FILE) $(distdir)/$(DOC_H_FILE)"; \
659 $(INSTALL_DATA) "$${d}$(DOC_H_FILE)" "$(distdir)/$(DOC_H_FILE)";
661 doc-dist-hook: dist-check-gdu $(if $(DOC_H_FILE),dist-doc-header)
663 .PHONY: clean-doc-header
664 clean-local: $(_clean_doc_header)
665 distclean-local: $(_clean_doc_header)
666 mostlyclean-local: $(_clean_doc_header)
667 maintainer-clean-local: $(_clean_doc_header)
673 ################################################################################
687 DOC_FORMATS ?= docbook
691 ################################################################################
693 _xml2po ?= `which xml2po`
695 _db2html ?= `$(PKG_CONFIG) --variable db2html gnome-doc-utils`
696 _db2omf ?= `$(PKG_CONFIG) --variable db2omf gnome-doc-utils`
697 _malrng ?= `$(PKG_CONFIG) --variable malrng gnome-doc-utils`
698 _chunks ?= `$(PKG_CONFIG) --variable xmldir gnome-doc-utils`/gnome/xslt/docbook/utils/chunks.xsl
699 _credits ?= `$(PKG_CONFIG) --variable xmldir gnome-doc-utils`/gnome/xslt/docbook/utils/credits.xsl
700 _ids ?= $(shell $(PKG_CONFIG) --variable xmldir gnome-doc-utils)/gnome/xslt/docbook/utils/ids.xsl
701 @ENABLE_SK_TRUE@_skpkgdatadir ?= `scrollkeeper-config --pkgdatadir`
702 @ENABLE_SK_TRUE@_sklocalstatedir ?= `scrollkeeper-config --pkglocalstatedir`
703 @ENABLE_SK_TRUE@_skcontentslist ?= $(_skpkgdatadir)/Templates/C/scrollkeeper_cl.xml
705 $(_DOC_OMF_DB) : $(_DOC_OMF_IN)
706 $(_DOC_OMF_DB) : $(DOC_MODULE)-%.omf : %/$(DOC_MODULE).xml
707 @test "x$(_ENABLE_SK)" != "xtrue" -o -f "$(_skcontentslist)" || { \
708 echo "The file '$(_skcontentslist)' does not exist." >&2; \
709 echo "Please check your ScrollKeeper installation." >&2; \
711 xsltproc -o $@ $(call db2omf_args,$@,$<,'docbook') || { rm -f "$@"; exit 1; }
713 $(_DOC_OMF_HTML) : $(_DOC_OMF_IN)
714 $(_DOC_OMF_HTML) : $(DOC_MODULE)-html-%.omf : %/$(DOC_MODULE).xml
715 @ENABLE_SK_TRUE@ @test "x$(_ENABLE_SK)" != "xtrue" -o -f "$(_skcontentslist)" || { \
716 @ENABLE_SK_TRUE@ echo "The file '$(_skcontentslist)' does not exist" >&2; \
717 @ENABLE_SK_TRUE@ echo "Please check your ScrollKeeper installation." >&2; \
718 @ENABLE_SK_TRUE@ exit 1; }
719 xsltproc -o $@ $(call db2omf_args,$@,$<,'xhtml') || { rm -f "$@"; exit 1; }
731 @if ! test -d $(dir $@); then \
732 echo "mkdir $(dir $@)"; \
735 @if test ! -f $@ -a -f $(srcdir)/$@; then \
736 echo "cp $(srcdir)/$@ $@"; \
737 cp "$(srcdir)/$@" "$@"; \
740 list='$(_DOC_C_DOCS_NOENT)'; for doc in $$list; do \
741 docs="$$docs $(_DOC_ABS_SRCDIR)/$$doc"; \
743 if ! test -f $@; then \
744 echo "(cd $(dir $@) && \
745 $(_xml2po) -m $(_xml2po_mode) -e $$docs > $(notdir $@).tmp && \
746 cp $(notdir $@).tmp $(notdir $@) && rm -f $(notdir $@).tmp)"; \
748 $(_xml2po) -m $(_xml2po_mode) -e $$docs > $(notdir $@).tmp && \
749 cp $(notdir $@).tmp $(notdir $@) && rm -f $(notdir $@).tmp); \
751 echo "(cd $(dir $@) && \
752 $(_xml2po) -m $(_xml2po_mode) -e -u $(notdir $@) $$docs)"; \
754 $(_xml2po) -m $(_xml2po_mode) -e -u $(notdir $@) $$docs); \
757 $(_DOC_MOFILES): %.mo: %.po
758 @if ! test -d $(dir $@); then \
759 echo "mkdir $(dir $@)"; \
764 # FIXME: fix the dependancy
765 # FIXME: hook xml2po up
766 $(_DOC_LC_DOCS) : $(_DOC_MOFILES)
767 $(_DOC_LC_DOCS) : $(_DOC_C_DOCS)
768 if ! test -d $(dir $@); then mkdir $(dir $@); fi
769 if [ -f "C/$(notdir $@)" ]; then d="../"; else d="$(_DOC_ABS_SRCDIR)/"; fi; \
770 mo="$(dir $@)$(patsubst %/$(notdir $@),%,$@).mo"; \
771 if [ -f "$${mo}" ]; then mo="../$${mo}"; else mo="$(_DOC_ABS_SRCDIR)/$${mo}"; fi; \
773 $(_xml2po) -m $(_xml2po_mode) -e -t "$${mo}" \
774 "$${d}C/$(notdir $@)" > $(notdir $@).tmp && \
775 cp $(notdir $@).tmp $(notdir $@) && rm -f $(notdir $@).tmp)
778 $(_DOC_POT): $(_DOC_C_DOCS_NOENT)
779 $(_xml2po) -m $(_xml2po_mode) -e -o $@ $^
781 $(_DOC_HTML_TOPS): $(_DOC_C_DOCS) $(_DOC_LC_DOCS)
782 xsltproc -o $@ --xinclude --param db.chunk.chunk_top "false()" --stringparam db.chunk.basename "$(DOC_MODULE)" --stringparam db.chunk.extension ".xhtml" $(_db2html) $(patsubst %.xhtml,%.xml,$@)
784 ################################################################################
787 $(_DOC_C_DOCS) $(_DOC_LC_DOCS) \
788 $(_DOC_OMF_ALL) $(_DOC_DSK_ALL) \
789 $(_DOC_HTML_ALL) $(_DOC_POFILES)
791 ################################################################################
793 .PHONY: clean-doc-omf clean-doc-dsk clean-doc-lc clean-doc-dir
795 clean-doc-omf: ; rm -f $(_DOC_OMF_DB) $(_DOC_OMF_HTML)
796 clean-doc-dsk: ; rm -f $(_DOC_DSK_DB) $(_DOC_DSK_HTML)
798 rm -f $(_DOC_LC_DOCS)
799 rm -f $(_DOC_MOFILES)
800 @list='$(_DOC_POFILES)'; for po in $$list; do \
801 if ! test "$$po" -ef "$(srcdir)/$$po"; then \
806 # .xml2.po.mo cleaning is obsolete as of 0.18.1 and could be removed in 0.20.x
807 @for lc in C $(_DOC_REAL_LINGUAS); do \
808 if test -f "$$lc/.xml2po.mo"; then \
809 echo "rm -f $$lc/.xml2po.mo"; \
810 rm -f "$$lc/.xml2po.mo"; \
813 clean-doc-dir: clean-doc-lc
814 @for lc in C $(_DOC_REAL_LINGUAS); do \
815 for dir in `find $$lc -depth -type d`; do \
816 if ! test $$dir -ef $(srcdir)/$$dir; then \
817 echo "rmdir $$dir"; \
824 $(_clean_omf) $(_clean_dsk) \
825 $(_clean_lc) $(_clean_dir)
827 $(_clean_omf) $(_clean_dsk) \
828 $(_clean_lc) $(_clean_dir)
830 $(_clean_omf) $(_clean_dsk) \
831 $(_clean_lc) $(_clean_dir)
832 maintainer-clean-local: \
833 $(_clean_omf) $(_clean_dsk) \
834 $(_clean_lc) $(_clean_dir)
836 ################################################################################
838 .PHONY: dist-doc-docs dist-doc-pages dist-doc-figs dist-doc-omf dist-doc-dsk
840 $(if $(DOC_MODULE)$(DOC_ID),dist-doc-docs) \
841 $(if $(_DOC_C_FIGURES),dist-doc-figs) \
842 $(if $(_DOC_OMF_IN),dist-doc-omf)
843 # $(if $(_DOC_DSK_IN),dist-doc-dsk)
845 dist-doc-docs: $(_DOC_C_DOCS) $(_DOC_LC_DOCS) $(_DOC_POFILES)
846 @for lc in C $(_DOC_REAL_LINGUAS); do \
847 echo " $(mkinstalldirs) $(distdir)/$$lc"; \
848 $(mkinstalldirs) "$(distdir)/$$lc"; \
850 @list='$(_DOC_C_DOCS) $(_DOC_LC_DOCS) $(_DOC_POFILES)'; \
851 for doc in $$list; do \
852 if test -f "$$doc"; then d=; else d="$(srcdir)/"; fi; \
853 docdir=`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`; \
854 if ! test -d "$(distdir)/$$docdir"; then \
855 echo "$(mkinstalldirs) $(distdir)/$$docdir"; \
856 $(mkinstalldirs) "$(distdir)/$$docdir"; \
858 echo "$(INSTALL_DATA) $$d$$doc $(distdir)/$$doc"; \
859 $(INSTALL_DATA) "$$d$$doc" "$(distdir)/$$doc"; \
862 dist-doc-figs: $(_DOC_SRC_FIGURES)
863 @list='$(_DOC_C_FIGURES) $(_DOC_LC_FIGURES)'; \
864 for fig in $$list; do \
865 if test -f "$$fig"; then d=; else d="$(srcdir)/"; fi; \
866 if test -f "$$d$$fig"; then \
867 figdir=`echo $$fig | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`; \
868 if ! test -d "$(distdir)/$$figdir"; then \
869 echo "$(mkinstalldirs) $(distdir)/$$figdir"; \
870 $(mkinstalldirs) "$(distdir)/$$figdir"; \
872 echo "$(INSTALL_DATA) $$d$$fig $(distdir)/$$fig"; \
873 $(INSTALL_DATA) "$$d$$fig" "$(distdir)/$$fig"; \
878 @if test -f "$(_DOC_OMF_IN)"; then d=; else d="$(srcdir)/"; fi; \
879 echo "$(INSTALL_DATA) $$d$(_DOC_OMF_IN) $(distdir)/$(notdir $(_DOC_OMF_IN))"; \
880 $(INSTALL_DATA) "$$d$(_DOC_OMF_IN)" "$(distdir)/$(notdir $(_DOC_OMF_IN))"
883 @if test -f "$(_DOC_DSK_IN)"; then d=; else d="$(srcdir)/"; fi; \
884 echo "$(INSTALL_DATA) $$d$(_DOC_DSK_IN) $(distdir)/$(notdir $(_DOC_DSK_IN))"; \
885 $(INSTALL_DATA) "$$d$(_DOC_DSK_IN)" "$(distdir)/$(notdir $(_DOC_DSK_IN))"
887 ################################################################################
889 .PHONY: check-doc-docs check-doc-omf
891 $(if $(DOC_MODULE),check-doc-docs) \
892 $(if $(DOC_ID),check-doc-pages) \
893 $(if $(_DOC_OMF_IN),check-doc-omf)
895 check-doc-docs: $(_DOC_C_DOCS) $(_DOC_LC_DOCS)
896 @for lc in C $(_DOC_REAL_LINGUAS); do \
902 xmlpath="$$lc:$(srcdir)/$$lc"; \
904 echo "xmllint --noout --noent --path $$xmlpath --xinclude --postvalid $$d$$lc/$(DOC_MODULE).xml"; \
905 xmllint --noout --noent --path "$$xmlpath" --xinclude --postvalid "$$d$$lc/$(DOC_MODULE).xml"; \
908 check-doc-pages: $(_DOC_C_PAGES) $(_DOC_LC_PAGES)
909 for lc in C $(_DOC_REAL_LINGUAS); do \
915 xmlpath="$$lc:$(srcdir)/$$lc"; \
917 for page in $(DOC_PAGES); do \
918 echo "xmllint --noout --noent --path $$xmlpath --xinclude --relaxng $(_malrng) $$d$$lc/$$page"; \
919 xmllint --noout --noent --path "$$xmlpath" --xinclude --relaxng "$(_malrng)" "$$d$$lc/$$page"; \
923 check-doc-omf: $(_DOC_OMF_ALL)
924 @list='$(_DOC_OMF_ALL)'; for omf in $$list; do \
925 echo "xmllint --noout --xinclude --dtdvalid 'http://scrollkeeper.sourceforge.net/dtds/scrollkeeper-omf-1.0/scrollkeeper-omf.dtd' $$omf"; \
926 xmllint --noout --xinclude --dtdvalid 'http://scrollkeeper.sourceforge.net/dtds/scrollkeeper-omf-1.0/scrollkeeper-omf.dtd' $$omf; \
929 ################################################################################
931 .PHONY: install-doc-docs install-doc-html install-doc-figs install-doc-omf install-doc-dsk
933 install-data-local: \
934 $(if $(DOC_MODULE)$(DOC_ID),install-doc-docs) \
935 $(if $(_DOC_HTML_ALL),install-doc-html) \
936 $(if $(_DOC_C_FIGURES),install-doc-figs) \
937 $(if $(_DOC_OMF_IN),install-doc-omf)
938 # $(if $(_DOC_DSK_IN),install-doc-dsk)
941 @for lc in C $(_DOC_REAL_LINGUAS); do \
942 echo "$(mkinstalldirs) $(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$lc"; \
943 $(mkinstalldirs) $(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$lc; \
945 @list='$(_DOC_C_DOCS) $(_DOC_LC_DOCS)'; for doc in $$list; do \
946 if test -f "$$doc"; then d=; else d="$(srcdir)/"; fi; \
947 docdir="$$lc/"`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`; \
948 docdir="$(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$docdir"; \
949 if ! test -d "$$docdir"; then \
950 echo "$(mkinstalldirs) $$docdir"; \
951 $(mkinstalldirs) "$$docdir"; \
953 echo "$(INSTALL_DATA) $$d$$doc $(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$doc"; \
954 $(INSTALL_DATA) $$d$$doc $(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$doc; \
958 @list='$(patsubst C/%,%,$(_DOC_C_FIGURES))'; for fig in $$list; do \
959 for lc in C $(_DOC_REAL_LINGUAS); do \
961 if test -f "$$lc/$$fig"; then \
962 figfile="$$lc/$$fig"; \
963 elif test -f "$(srcdir)/$$lc/$$fig"; then \
964 figfile="$(srcdir)/$$lc/$$fig"; \
968 figdir="$$lc/"`echo $$fig | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`; \
969 figdir="$(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$figdir"; \
970 if ! test -d "$$figdir"; then \
971 echo "$(mkinstalldirs) $$figdir"; \
972 $(mkinstalldirs) "$$figdir"; \
974 figbase=`echo $$fig | sed -e 's/^.*\///'`; \
975 if $$figsymlink; then \
976 echo "cd $$figdir && $(LN_S) -f ../../C/$$fig $$figbase"; \
977 ( cd "$$figdir" && $(LN_S) -f "../../C/$$fig" "$$figbase" ); \
979 echo "$(INSTALL_DATA) $$figfile $$figdir$$figbase"; \
980 $(INSTALL_DATA) "$$figfile" "$$figdir$$figbase"; \
989 $(mkinstalldirs) $(DESTDIR)$(OMF_DIR)/$(_doc_install_dir)
990 @list='$(_DOC_OMF_ALL)'; for omf in $$list; do \
991 echo "$(INSTALL_DATA) $$omf $(DESTDIR)$(OMF_DIR)/$(_doc_install_dir)/$$omf"; \
992 $(INSTALL_DATA) $$omf $(DESTDIR)$(OMF_DIR)/$(_doc_install_dir)/$$omf; \
994 @if test "x$(_ENABLE_SK)" = "xtrue"; then \
995 echo "scrollkeeper-update -p $(DESTDIR)$(_sklocalstatedir) -o $(DESTDIR)$(OMF_DIR)/$(_doc_install_dir)"; \
996 scrollkeeper-update -p "$(DESTDIR)$(_sklocalstatedir)" -o "$(DESTDIR)$(OMF_DIR)/$(_doc_install_dir)"; \
1002 ################################################################################
1004 .PHONY: uninstall-doc-docs uninstall-doc-html uninstall-doc-figs uninstall-doc-omf uninstall-doc-dsk
1006 $(if $(DOC_MODULE)$(DOC_ID),uninstall-doc-docs) \
1007 $(if $(_DOC_HTML_ALL),uninstall-doc-html) \
1008 $(if $(_DOC_C_FIGURES),uninstall-doc-figs) \
1009 $(if $(_DOC_OMF_IN),uninstall-doc-omf)
1010 # $(if $(_DOC_DSK_IN),uninstall-doc-dsk)
1013 @list='$(_DOC_C_DOCS) $(_DOC_LC_DOCS)'; for doc in $$list; do \
1014 echo " rm -f $(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$doc"; \
1015 rm -f "$(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$doc"; \
1019 @list='$(_DOC_C_FIGURES) $(_DOC_LC_FIGURES)'; for fig in $$list; do \
1020 echo "rm -f $(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$fig"; \
1021 rm -f "$(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$fig"; \
1025 @list='$(_DOC_OMF_ALL)'; for omf in $$list; do \
1026 if test "x$(_ENABLE_SK)" = "xtrue"; then \
1027 echo "scrollkeeper-uninstall -p $(_sklocalstatedir) $(DESTDIR)$(OMF_DIR)/$(_doc_install_dir)/$$omf"; \
1028 scrollkeeper-uninstall -p "$(_sklocalstatedir)" "$(DESTDIR)$(OMF_DIR)/$(_doc_install_dir)/$$omf"; \
1030 echo "rm -f $(DESTDIR)$(OMF_DIR)/$(_doc_install_dir)/$$omf"; \
1031 rm -f "$(DESTDIR)$(OMF_DIR)/$(_doc_install_dir)/$$omf"; \
1034 dist-hook: doc-dist-hook
1036 # Tell versions [3.59,3.63) of GNU make to not export all variables.
1037 # Otherwise a system limit (for SysV at least) may be exceeded.