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 ChangeLog
63 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
64 am__aclocal_m4_deps = $(top_srcdir)/m4/gnome-doc-utils.m4 \
65 $(top_srcdir)/m4/intltool.m4 $(top_srcdir)/m4/libtool.m4 \
66 $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
67 $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
68 $(top_srcdir)/configure.in
69 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
71 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
72 CONFIG_HEADER = $(top_builddir)/config.h
74 CONFIG_CLEAN_VPATH_FILES =
77 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
78 am__vpath_adj = case $$p in \
79 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
82 am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
84 am__nobase_strip_setup = \
85 srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
87 for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
88 am__nobase_list = $(am__nobase_strip_setup); \
89 for p in $$list; do echo "$$p $$p"; done | \
90 sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
91 $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
92 if (++n[$$2] == $(am__install_max)) \
93 { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
94 END { for (dir in files) print dir, files[dir] }'
96 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
97 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
98 man1dir = $(mandir)/man1
99 am__installdirs = "$(DESTDIR)$(man1dir)"
102 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
104 ACLOCAL_AMFLAGS = @ACLOCAL_AMFLAGS@
105 ALL_LINGUAS = @ALL_LINGUAS@
108 AUTOCONF = @AUTOCONF@
109 AUTOHEADER = @AUTOHEADER@
110 AUTOMAKE = @AUTOMAKE@
112 CATALOGS = @CATALOGS@
113 CATOBJEXT = @CATOBJEXT@
115 CCDEPMODE = @CCDEPMODE@
118 CPPFLAGS = @CPPFLAGS@
119 CYGPATH_W = @CYGPATH_W@
120 DATADIRNAME = @DATADIRNAME@
123 DISABLE_DEPRECATED = @DISABLE_DEPRECATED@
124 DISABLE_DEPRECATED_CFLAGS = @DISABLE_DEPRECATED_CFLAGS@
125 DISTCHECK_CONFIGURE_FLAGS = @DISTCHECK_CONFIGURE_FLAGS@
126 DOC_USER_FORMATS = @DOC_USER_FORMATS@
127 DSYMUTIL = @DSYMUTIL@
135 GCONFTOOL = @GCONFTOOL@
136 GCONF_EDITOR_CFLAGS = @GCONF_EDITOR_CFLAGS@
137 GCONF_EDITOR_LIBS = @GCONF_EDITOR_LIBS@
138 GCONF_SCHEMA_CONFIG_SOURCE = @GCONF_SCHEMA_CONFIG_SOURCE@
139 GCONF_SCHEMA_FILE_DIR = @GCONF_SCHEMA_FILE_DIR@
140 GETTEXT_PACKAGE = @GETTEXT_PACKAGE@
141 GLIB_GENMARSHAL = @GLIB_GENMARSHAL@
142 GMOFILES = @GMOFILES@
145 HELP_DIR = @HELP_DIR@
147 INSTALL_DATA = @INSTALL_DATA@
148 INSTALL_PROGRAM = @INSTALL_PROGRAM@
149 INSTALL_SCRIPT = @INSTALL_SCRIPT@
150 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
151 INSTOBJEXT = @INSTOBJEXT@
152 INTLLIBS = @INTLLIBS@
153 INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@
154 INTLTOOL_MERGE = @INTLTOOL_MERGE@
155 INTLTOOL_PERL = @INTLTOOL_PERL@
156 INTLTOOL_UPDATE = @INTLTOOL_UPDATE@
164 LTLIBOBJS = @LTLIBOBJS@
166 MAKEINFO = @MAKEINFO@
168 MKINSTALLDIRS = @MKINSTALLDIRS@
170 MSGFMT_OPTS = @MSGFMT_OPTS@
171 MSGMERGE = @MSGMERGE@
180 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
181 PACKAGE_NAME = @PACKAGE_NAME@
182 PACKAGE_STRING = @PACKAGE_STRING@
183 PACKAGE_TARNAME = @PACKAGE_TARNAME@
184 PACKAGE_VERSION = @PACKAGE_VERSION@
185 PATH_SEPARATOR = @PATH_SEPARATOR@
186 PKG_CONFIG = @PKG_CONFIG@
189 PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@
190 PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@
193 SET_MAKE = @SET_MAKE@
198 WARN_CFLAGS = @WARN_CFLAGS@
199 XGETTEXT = @XGETTEXT@
200 abs_builddir = @abs_builddir@
201 abs_srcdir = @abs_srcdir@
202 abs_top_builddir = @abs_top_builddir@
203 abs_top_srcdir = @abs_top_srcdir@
204 ac_ct_CC = @ac_ct_CC@
205 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
206 am__include = @am__include@
207 am__leading_dot = @am__leading_dot@
208 am__quote = @am__quote@
210 am__untar = @am__untar@
213 build_alias = @build_alias@
214 build_cpu = @build_cpu@
215 build_os = @build_os@
216 build_vendor = @build_vendor@
217 builddir = @builddir@
219 datarootdir = @datarootdir@
222 exec_prefix = @exec_prefix@
224 host_alias = @host_alias@
225 host_cpu = @host_cpu@
227 host_vendor = @host_vendor@
229 includedir = @includedir@
231 install_sh = @install_sh@
233 libexecdir = @libexecdir@
234 localedir = @localedir@
235 localstatedir = @localstatedir@
239 oldincludedir = @oldincludedir@
242 program_transform_name = @program_transform_name@
245 sharedstatedir = @sharedstatedir@
247 sysconfdir = @sysconfdir@
248 target_alias = @target_alias@
249 top_build_prefix = @top_build_prefix@
250 top_builddir = @top_builddir@
251 top_srcdir = @top_srcdir@
252 _clean_doc_header = $(if $(DOC_H_FILE),clean-doc-header)
253 _DOC_REAL_FORMATS = $(if $(DOC_USER_FORMATS),$(DOC_USER_FORMATS),$(DOC_FORMATS))
254 _DOC_REAL_LINGUAS = $(if $(filter environment,$(origin LINGUAS)), \
255 $(filter $(LINGUAS),$(DOC_LINGUAS)), \
258 _DOC_ABS_SRCDIR = @abs_srcdir@
259 _xml2po_mode = $(if $(DOC_ID),mallard,docbook)
260 @ENABLE_SK_TRUE@_ENABLE_SK = true
262 ################################################################################
264 --stringparam db2omf.basename $(DOC_MODULE) \
265 --stringparam db2omf.format $(3) \
266 --stringparam db2omf.dtd \
267 $(shell xmllint --format $(2) | grep -h PUBLIC | head -n 1 \
268 | sed -e 's/.*PUBLIC \(\"[^\"]*\"\).*/\1/') \
269 --stringparam db2omf.lang $(notdir $(patsubst %/$(notdir $(2)),%,$(2))) \
270 --stringparam db2omf.omf_dir "$(OMF_DIR)" \
271 --stringparam db2omf.help_dir "$(HELP_DIR)" \
272 --stringparam db2omf.omf_in "$(_DOC_OMF_IN)" \
273 $(if $(_ENABLE_SK), \
274 --stringparam db2omf.scrollkeeper_cl "$(_skcontentslist)") \
277 _DOC_OMF_IN = $(if $(DOC_MODULE),$(wildcard $(_DOC_ABS_SRCDIR)/$(DOC_MODULE).omf.in))
278 _DOC_OMF_DB = $(if $(_DOC_OMF_IN), \
279 $(foreach lc,C $(_DOC_REAL_LINGUAS),$(DOC_MODULE)-$(lc).omf))
281 _DOC_OMF_HTML = $(if $(_DOC_OMF_IN), \
282 $(foreach lc,C $(_DOC_REAL_LINGUAS),$(DOC_MODULE)-html-$(lc).omf))
287 $(if $(filter docbook,$(_DOC_REAL_FORMATS)),$(_DOC_OMF_DB)) \
288 $(if $(filter html HTML,$(_DOC_REAL_FORMATS)),$(_DOC_OMF_HTML))
291 ################################################################################
292 _DOC_C_MODULE = $(if $(DOC_MODULE),C/$(DOC_MODULE).xml)
293 _DOC_C_PAGES = $(foreach page,$(DOC_PAGES),C/$(page))
294 _DOC_C_ENTITIES = $(foreach ent,$(DOC_ENTITIES),C/$(ent))
295 _DOC_C_INCLUDES = $(foreach inc,$(DOC_INCLUDES),C/$(inc))
297 $(_DOC_C_ENTITIES) $(_DOC_C_INCLUDES) \
298 $(_DOC_C_PAGES) $(_DOC_C_MODULE)
300 _DOC_C_DOCS_NOENT = \
301 $(_DOC_C_MODULE) $(_DOC_C_INCLUDES) \
304 _DOC_C_FIGURES = $(if $(DOC_FIGURES), \
305 $(foreach fig,$(DOC_FIGURES),C/$(fig)), \
306 $(patsubst $(srcdir)/%,%,$(wildcard $(srcdir)/C/figures/*.png)))
309 # FIXME: probably have to shell escape to determine the file names
310 _DOC_C_HTML = $(foreach f, \
311 $(shell xsltproc --xinclude \
312 --stringparam db.chunk.basename "$(DOC_MODULE)" \
313 $(_chunks) "C/$(DOC_MODULE).xml"), \
317 ###############################################################################
318 _DOC_POFILES = $(if $(DOC_MODULE)$(DOC_ID), \
319 $(foreach lc,$(_DOC_REAL_LINGUAS),$(lc)/$(lc).po))
321 _DOC_LC_MODULES = $(if $(DOC_MODULE), \
322 $(foreach lc,$(_DOC_REAL_LINGUAS),$(lc)/$(DOC_MODULE).xml))
325 $(foreach lc,$(_DOC_REAL_LINGUAS),$(foreach page,$(_DOC_C_PAGES), \
326 $(lc)/$(notdir $(page)) ))
329 $(foreach lc,$(_DOC_REAL_LINGUAS),$(foreach inc,$(_DOC_C_INCLUDES), \
330 $(lc)/$(notdir $(inc)) ))
333 # FIXME: probably have to shell escape to determine the file names
335 $(foreach lc,$(_DOC_REAL_LINGUAS),$(foreach doc,$(_DOC_C_HTML), \
336 $(lc)/$(notdir $(doc)) ))
339 $(_DOC_LC_MODULES) $(_DOC_LC_INCLUDES) $(_DOC_LC_PAGES) \
340 $(if $(filter html HTML,$(_DOC_REAL_FORMATS)),$(_DOC_LC_HTML))
342 _DOC_LC_FIGURES = $(foreach lc,$(_DOC_REAL_LINGUAS), \
343 $(patsubst C/%,$(lc)/%,$(_DOC_C_FIGURES)) )
346 $(foreach fig,$(_DOC_C_FIGURES), $(foreach lc,C $(_DOC_REAL_LINGUAS), \
347 $(wildcard $(srcdir)/$(lc)/$(patsubst C/%,%,$(fig))) ))
349 _DOC_POT = $(if $(DOC_MODULE),$(DOC_MODULE).pot)
351 ################################################################################
352 _DOC_HTML_ALL = $(if $(filter html HTML,$(_DOC_REAL_FORMATS)), \
353 $(_DOC_C_HTML) $(_DOC_LC_HTML))
355 _DOC_HTML_TOPS = $(foreach lc,C $(_DOC_REAL_LINGUAS),$(lc)/$(DOC_MODULE).xhtml)
356 _clean_omf = $(if $(_DOC_OMF_IN),clean-doc-omf)
357 _clean_dsk = $(if $(_DOC_DSK_IN),clean-doc-dsk)
358 _clean_lc = $(if $(_DOC_REAL_LINGUAS),clean-doc-lc)
359 _clean_dir = $(if $(DOC_MODULE)$(DOC_ID),clean-doc-dir)
360 _doc_install_dir = $(if $(DOC_ID),$(DOC_ID),$(DOC_MODULE))
361 DOC_MODULE = gconf-editor
362 DOC_ENTITIES = legal.xml
364 DOC_FIGURES = figures/entry-blank.png \
365 figures/entry-bool.png \
366 figures/entry-list.png \
367 figures/entry-number.png \
368 figures/entry-schema.png \
369 figures/entry-string.png \
370 figures/gconf_editor_anno_window.png
372 DOC_LINGUAS = ca cs de el en_GB es fr it oc pt_BR ru sv th uk zh_CN
373 man_MANS = gconf-editor.1
374 EXTRA_DIST = $(man_MANS)
378 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(top_srcdir)/gnome-doc-utils.make $(am__configure_deps)
380 case '$(am__configure_deps)' in \
382 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
383 && { if test -f $@; then exit 0; else break; fi; }; \
387 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign docs/Makefile'; \
388 $(am__cd) $(top_srcdir) && \
389 $(AUTOMAKE) --foreign docs/Makefile
391 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
394 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
396 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
397 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
400 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
401 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
403 $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
404 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
405 $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
406 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
407 $(am__aclocal_m4_deps):
414 install-man1: $(man_MANS)
416 test -z "$(man1dir)" || $(MKDIR_P) "$(DESTDIR)$(man1dir)"
417 @list=''; test -n "$(man1dir)" || exit 0; \
418 { for i in $$list; do echo "$$i"; done; \
419 l2='$(man_MANS)'; for i in $$l2; do echo "$$i"; done | \
420 sed -n '/\.1[a-z]*$$/p'; \
421 } | while read p; do \
422 if test -f $$p; then d=; else d="$(srcdir)/"; fi; \
423 echo "$$d$$p"; echo "$$p"; \
425 sed -e 'n;s,.*/,,;p;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \
426 -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,' | \
427 sed 'N;N;s,\n, ,g' | { \
428 list=; while read file base inst; do \
429 if test "$$base" = "$$inst"; then list="$$list $$file"; else \
430 echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man1dir)/$$inst'"; \
431 $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man1dir)/$$inst" || exit $$?; \
434 for i in $$list; do echo "$$i"; done | $(am__base_list) | \
435 while read files; do \
436 test -z "$$files" || { \
437 echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(man1dir)'"; \
438 $(INSTALL_DATA) $$files "$(DESTDIR)$(man1dir)" || exit $$?; }; \
443 @list=''; test -n "$(man1dir)" || exit 0; \
444 files=`{ for i in $$list; do echo "$$i"; done; \
445 l2='$(man_MANS)'; for i in $$l2; do echo "$$i"; done | \
446 sed -n '/\.1[a-z]*$$/p'; \
447 } | sed -e 's,.*/,,;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \
448 -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \
449 test -z "$$files" || { \
450 echo " ( cd '$(DESTDIR)$(man1dir)' && rm -f" $$files ")"; \
451 cd "$(DESTDIR)$(man1dir)" && rm -f $$files; }
459 distdir: $(DISTFILES)
460 @list='$(MANS)'; if test -n "$$list"; then \
461 list=`for p in $$list; do \
462 if test -f $$p; then d=; else d="$(srcdir)/"; fi; \
463 if test -f "$$d$$p"; then echo "$$d$$p"; else :; fi; done`; \
464 if test -n "$$list" && \
465 grep 'ab help2man is required to generate this page' $$list >/dev/null; then \
466 echo "error: found man pages containing the \`missing help2man' replacement text:" >&2; \
467 grep -l 'ab help2man is required to generate this page' $$list | sed 's/^/ /' >&2; \
468 echo " to fix them, install help2man, remove and regenerate the man pages;" >&2; \
469 echo " typically \`make maintainer-clean' will remove them" >&2; \
473 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
474 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
475 list='$(DISTFILES)'; \
476 dist_files=`for file in $$list; do echo $$file; done | \
477 sed -e "s|^$$srcdirstrip/||;t" \
478 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
479 case $$dist_files in \
480 */*) $(MKDIR_P) `echo "$$dist_files" | \
481 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
484 for file in $$dist_files; do \
485 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
486 if test -d $$d/$$file; then \
487 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
488 if test -d "$(distdir)/$$file"; then \
489 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
491 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
492 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
493 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
495 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
497 test -f "$(distdir)/$$file" \
498 || cp -p $$d/$$file "$(distdir)/$$file" \
502 $(MAKE) $(AM_MAKEFLAGS) \
503 top_distdir="$(top_distdir)" distdir="$(distdir)" \
507 all-am: Makefile $(MANS)
509 for dir in "$(DESTDIR)$(man1dir)"; do \
510 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
513 install-exec: install-exec-am
514 install-data: install-data-am
515 uninstall: uninstall-am
518 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
520 installcheck: installcheck-am
522 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
523 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
524 `test -z '$(STRIP)' || \
525 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
531 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
532 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
534 maintainer-clean-generic:
535 @echo "This command is intended for maintainers to use"
536 @echo "it deletes files that may require special tools to rebuild."
539 clean-am: clean-generic clean-libtool clean-local mostlyclean-am
541 distclean: distclean-am
543 distclean-am: clean-am distclean-generic distclean-local
557 install-data-am: install-data-local install-man
559 install-dvi: install-dvi-am
565 install-html: install-html-am
569 install-info: install-info-am
573 install-man: install-man1
575 install-pdf: install-pdf-am
579 install-ps: install-ps-am
585 maintainer-clean: maintainer-clean-am
587 maintainer-clean-am: distclean-am maintainer-clean-generic \
588 maintainer-clean-local
590 mostlyclean: mostlyclean-am
592 mostlyclean-am: mostlyclean-generic mostlyclean-libtool \
603 uninstall-am: uninstall-local uninstall-man
605 uninstall-man: uninstall-man1
607 .MAKE: install-am install-strip
609 .PHONY: all all-am check check-am clean clean-generic clean-libtool \
610 clean-local dist-hook distclean distclean-generic \
611 distclean-libtool distclean-local distdir dvi dvi-am html \
612 html-am info info-am install install-am install-data \
613 install-data-am install-data-local install-dvi install-dvi-am \
614 install-exec install-exec-am install-html install-html-am \
615 install-info install-info-am install-man install-man1 \
616 install-pdf install-pdf-am install-ps install-ps-am \
617 install-strip installcheck installcheck-am installdirs \
618 maintainer-clean maintainer-clean-generic \
619 maintainer-clean-local mostlyclean mostlyclean-generic \
620 mostlyclean-libtool mostlyclean-local pdf pdf-am ps ps-am \
621 uninstall uninstall-am uninstall-local uninstall-man \
629 $(DOC_H_FILE): $(DOC_H_DOCS);
630 @rm -f $@.tmp; touch $@.tmp;
631 echo 'const gchar* documentation_credits[] = {' >> $@.tmp
632 list='$(DOC_H_DOCS)'; for doc in $$list; do \
633 xmlpath="`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`:$(srcdir)/`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`"; \
634 if ! test -f "$$doc"; then doc="$(srcdir)/$$doc"; fi; \
635 xsltproc --path "$$xmlpath" $(_credits) $$doc; \
637 | 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}}' \
638 | sed -e 's/\\/\\\\/' -e 's/"/\\"/' -e 's/\(.*\)/\t"\1",/' >> $@.tmp
639 echo ' NULL' >> $@.tmp
642 list='$(DOC_H_DOCS)'; for doc in $$list; do \
643 xmlpath="`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`:$(srcdir)/`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`"; \
644 if ! test -f "$$doc"; then doc="$(srcdir)/$$doc"; fi; \
645 docid=`echo "$$doc" | sed -e 's/.*\/\([^/]*\)\.xml/\1/' \
646 | sed -e 's/[^a-zA-Z_]/_/g' | tr 'a-z' 'A-Z'`; \
648 ids=`xsltproc --xinclude --path "$$xmlpath" $(_ids) $$doc`; \
649 for id in $$ids; do \
650 echo '#define HELP_'`echo $$docid`'_'`echo $$id \
651 | sed -e 's/[^a-zA-Z_]/_/g' | tr 'a-z' 'A-Z'`' "'$$id'"' >> $@.tmp; \
655 cp $@.tmp $@ && rm -f $@.tmp
658 @HAVE_GNOME_DOC_UTILS_FALSE@ @echo "*** GNOME Doc Utils must be installed in order to make dist"
659 @HAVE_GNOME_DOC_UTILS_FALSE@ @false
661 .PHONY: dist-doc-header
662 dist-doc-header: $(DOC_H_FILE)
663 @if test -f "$(DOC_H_FILE)"; then d=; else d="$(srcdir)/"; fi; \
664 echo "$(INSTALL_DATA) $${d}$(DOC_H_FILE) $(distdir)/$(DOC_H_FILE)"; \
665 $(INSTALL_DATA) "$${d}$(DOC_H_FILE)" "$(distdir)/$(DOC_H_FILE)";
667 doc-dist-hook: dist-check-gdu $(if $(DOC_H_FILE),dist-doc-header)
669 .PHONY: clean-doc-header
670 clean-local: $(_clean_doc_header)
671 distclean-local: $(_clean_doc_header)
672 mostlyclean-local: $(_clean_doc_header)
673 maintainer-clean-local: $(_clean_doc_header)
679 ################################################################################
693 DOC_FORMATS ?= docbook
697 ################################################################################
699 _xml2po ?= `which xml2po`
701 _db2html ?= `$(PKG_CONFIG) --variable db2html gnome-doc-utils`
702 _db2omf ?= `$(PKG_CONFIG) --variable db2omf gnome-doc-utils`
703 _malrng ?= `$(PKG_CONFIG) --variable malrng gnome-doc-utils`
704 _chunks ?= `$(PKG_CONFIG) --variable xmldir gnome-doc-utils`/gnome/xslt/docbook/utils/chunks.xsl
705 _credits ?= `$(PKG_CONFIG) --variable xmldir gnome-doc-utils`/gnome/xslt/docbook/utils/credits.xsl
706 _ids ?= `$(PKG_CONFIG) --variable xmldir gnome-doc-utils`/gnome/xslt/docbook/utils/ids.xsl
707 @ENABLE_SK_TRUE@_skpkgdatadir ?= `scrollkeeper-config --pkgdatadir`
708 @ENABLE_SK_TRUE@_sklocalstatedir ?= `scrollkeeper-config --pkglocalstatedir`
709 @ENABLE_SK_TRUE@_skcontentslist ?= $(_skpkgdatadir)/Templates/C/scrollkeeper_cl.xml
711 $(_DOC_OMF_DB) : $(_DOC_OMF_IN)
712 $(_DOC_OMF_DB) : $(DOC_MODULE)-%.omf : %/$(DOC_MODULE).xml
713 @test "x$(_ENABLE_SK)" != "xtrue" -o -f "$(_skcontentslist)" || { \
714 echo "The file '$(_skcontentslist)' does not exist." >&2; \
715 echo "Please check your ScrollKeeper installation." >&2; \
717 xsltproc -o $@ $(call db2omf_args,$@,$<,'docbook') || { rm -f "$@"; exit 1; }
719 $(_DOC_OMF_HTML) : $(_DOC_OMF_IN)
720 $(_DOC_OMF_HTML) : $(DOC_MODULE)-html-%.omf : %/$(DOC_MODULE).xml
721 @ENABLE_SK_TRUE@ @test "x$(_ENABLE_SK)" != "xtrue" -o -f "$(_skcontentslist)" || { \
722 @ENABLE_SK_TRUE@ echo "The file '$(_skcontentslist)' does not exist" >&2; \
723 @ENABLE_SK_TRUE@ echo "Please check your ScrollKeeper installation." >&2; \
724 @ENABLE_SK_TRUE@ exit 1; }
725 xsltproc -o $@ $(call db2omf_args,$@,$<,'xhtml') || { rm -f "$@"; exit 1; }
734 @if ! test -d $(dir $@); then \
735 echo "mkdir $(dir $@)"; \
738 @if test ! -f $@ -a -f $(srcdir)/$@; then \
739 echo "cp $(srcdir)/$@ $@"; \
740 cp "$(srcdir)/$@" "$@"; \
743 list='$(_DOC_C_DOCS_NOENT)'; for doc in $$list; do \
744 docs="$$docs $(_DOC_ABS_SRCDIR)/$$doc"; \
746 if ! test -f $@; then \
747 echo "(cd $(dir $@) && \
748 $(_xml2po) -m $(_xml2po_mode) -e $$docs > $(notdir $@).tmp && \
749 cp $(notdir $@).tmp $(notdir $@) && rm -f $(notdir $@).tmp)"; \
751 $(_xml2po) -m $(_xml2po_mode) -e $$docs > $(notdir $@).tmp && \
752 cp $(notdir $@).tmp $(notdir $@) && rm -f $(notdir $@).tmp); \
754 echo "(cd $(dir $@) && \
755 $(_xml2po) -m $(_xml2po_mode) -e -u $(notdir $@) $$docs)"; \
757 $(_xml2po) -m $(_xml2po_mode) -e -u $(notdir $@) $$docs); \
760 # FIXME: fix the dependancy
761 # FIXME: hook xml2po up
762 $(_DOC_LC_DOCS) : $(_DOC_POFILES)
763 $(_DOC_LC_DOCS) : $(_DOC_C_DOCS)
764 if ! test -d $(dir $@); then mkdir $(dir $@); fi
765 if [ -f "C/$(notdir $@)" ]; then d="../"; else d="$(_DOC_ABS_SRCDIR)/"; fi; \
766 po="$(dir $@)$(patsubst %/$(notdir $@),%,$@).po"; \
767 if [ -f "$${po}" ]; then po="../$${po}"; else po="$(_DOC_ABS_SRCDIR)/$${po}"; fi; \
769 $(_xml2po) -m $(_xml2po_mode) -e -p "$${po}" \
770 "$${d}C/$(notdir $@)" > $(notdir $@).tmp && \
771 cp $(notdir $@).tmp $(notdir $@) && rm -f $(notdir $@).tmp)
774 $(_DOC_POT): $(_DOC_C_DOCS_NOENT)
775 $(_xml2po) -m $(_xml2po_mode) -e -o $@ $^
777 $(_DOC_HTML_TOPS): $(_DOC_C_DOCS) $(_DOC_LC_DOCS)
778 xsltproc -o $@ --xinclude --param db.chunk.chunk_top "false()" --stringparam db.chunk.basename "$(DOC_MODULE)" --stringparam db.chunk.extension ".xhtml" $(_db2html) $(patsubst %.xhtml,%.xml,$@)
780 ################################################################################
783 $(_DOC_C_DOCS) $(_DOC_LC_DOCS) \
784 $(_DOC_OMF_ALL) $(_DOC_DSK_ALL) \
785 $(_DOC_HTML_ALL) $(_DOC_POFILES)
787 ################################################################################
789 .PHONY: clean-doc-omf clean-doc-dsk clean-doc-lc clean-doc-dir
791 clean-doc-omf: ; rm -f $(_DOC_OMF_DB) $(_DOC_OMF_HTML)
792 clean-doc-dsk: ; rm -f $(_DOC_DSK_DB) $(_DOC_DSK_HTML)
794 rm -f $(_DOC_LC_DOCS)
795 @list='$(_DOC_POFILES)'; for po in $$list; do \
796 if ! test "$$po" -ef "$(srcdir)/$$po"; then \
801 @for lc in C $(_DOC_REAL_LINGUAS); do \
802 if test -f "$$lc/.xml2po.mo"; then \
803 echo "rm -f $$lc/.xml2po.mo"; \
804 rm -f "$$lc/.xml2po.mo"; \
808 @for lc in C $(_DOC_REAL_LINGUAS); do \
809 for dir in `find $$lc -depth -type d`; do \
810 if ! test $$dir -ef $(srcdir)/$$dir; then \
811 echo "rmdir $$dir"; \
818 $(_clean_omf) $(_clean_dsk) \
819 $(_clean_lc) $(_clean_dir)
821 $(_clean_omf) $(_clean_dsk) \
822 $(_clean_lc) $(_clean_dir)
824 $(_clean_omf) $(_clean_dsk) \
825 $(_clean_lc) $(_clean_dir)
826 maintainer-clean-local: \
827 $(_clean_omf) $(_clean_dsk) \
828 $(_clean_lc) $(_clean_dir)
830 ################################################################################
832 .PHONY: dist-doc-docs dist-doc-pages dist-doc-figs dist-doc-omf dist-doc-dsk
834 $(if $(DOC_MODULE)$(DOC_ID),dist-doc-docs) \
835 $(if $(_DOC_C_FIGURES),dist-doc-figs) \
836 $(if $(_DOC_OMF_IN),dist-doc-omf)
837 # $(if $(_DOC_DSK_IN),dist-doc-dsk)
839 dist-doc-docs: $(_DOC_C_DOCS) $(_DOC_LC_DOCS) $(_DOC_POFILES)
840 @for lc in C $(_DOC_REAL_LINGUAS); do \
841 echo " $(mkinstalldirs) $(distdir)/$$lc"; \
842 $(mkinstalldirs) "$(distdir)/$$lc"; \
844 @list='$(_DOC_C_DOCS) $(_DOC_LC_DOCS) $(_DOC_POFILES)'; \
845 for doc in $$list; do \
846 if test -f "$$doc"; then d=; else d="$(srcdir)/"; fi; \
847 docdir=`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`; \
848 if ! test -d "$(distdir)/$$docdir"; then \
849 echo "$(mkinstalldirs) $(distdir)/$$docdir"; \
850 $(mkinstalldirs) "$(distdir)/$$docdir"; \
852 echo "$(INSTALL_DATA) $$d$$doc $(distdir)/$$doc"; \
853 $(INSTALL_DATA) "$$d$$doc" "$(distdir)/$$doc"; \
856 dist-doc-figs: $(_DOC_SRC_FIGURES)
857 @list='$(_DOC_C_FIGURES) $(_DOC_LC_FIGURES)'; \
858 for fig in $$list; do \
859 if test -f "$$fig"; then d=; else d="$(srcdir)/"; fi; \
860 if test -f "$$d$$fig"; then \
861 figdir=`echo $$fig | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`; \
862 if ! test -d "$(distdir)/$$figdir"; then \
863 echo "$(mkinstalldirs) $(distdir)/$$figdir"; \
864 $(mkinstalldirs) "$(distdir)/$$figdir"; \
866 echo "$(INSTALL_DATA) $$d$$fig $(distdir)/$$fig"; \
867 $(INSTALL_DATA) "$$d$$fig" "$(distdir)/$$fig"; \
872 @if test -f "$(_DOC_OMF_IN)"; then d=; else d="$(srcdir)/"; fi; \
873 echo "$(INSTALL_DATA) $$d$(_DOC_OMF_IN) $(distdir)/$(notdir $(_DOC_OMF_IN))"; \
874 $(INSTALL_DATA) "$$d$(_DOC_OMF_IN)" "$(distdir)/$(notdir $(_DOC_OMF_IN))"
877 @if test -f "$(_DOC_DSK_IN)"; then d=; else d="$(srcdir)/"; fi; \
878 echo "$(INSTALL_DATA) $$d$(_DOC_DSK_IN) $(distdir)/$(notdir $(_DOC_DSK_IN))"; \
879 $(INSTALL_DATA) "$$d$(_DOC_DSK_IN)" "$(distdir)/$(notdir $(_DOC_DSK_IN))"
881 ################################################################################
883 .PHONY: check-doc-docs check-doc-omf
885 $(if $(DOC_MODULE),check-doc-docs) \
886 $(if $(DOC_ID),check-doc-pages) \
887 $(if $(_DOC_OMF_IN),check-doc-omf)
889 check-doc-docs: $(_DOC_C_DOCS) $(_DOC_LC_DOCS)
890 @for lc in C $(_DOC_REAL_LINGUAS); do \
896 xmlpath="$$lc:$(srcdir)/$$lc"; \
898 echo "xmllint --noout --noent --path $$xmlpath --xinclude --postvalid $$d$$lc/$(DOC_MODULE).xml"; \
899 xmllint --noout --noent --path "$$xmlpath" --xinclude --postvalid "$$d$$lc/$(DOC_MODULE).xml"; \
902 check-doc-pages: $(_DOC_C_PAGES) $(_DOC_LC_PAGES)
903 for lc in C $(_DOC_REAL_LINGUAS); do \
909 xmlpath="$$lc:$(srcdir)/$$lc"; \
911 for page in $(DOC_PAGES); do \
912 echo "xmllint --noout --noent --path $$xmlpath --xinclude --relaxng $(_malrng) $$d$$lc/$$page"; \
913 xmllint --noout --noent --path "$$xmlpath" --xinclude --relaxng "$(_malrng)" "$$d$$lc/$$page"; \
917 check-doc-omf: $(_DOC_OMF_ALL)
918 @list='$(_DOC_OMF_ALL)'; for omf in $$list; do \
919 echo "xmllint --noout --xinclude --dtdvalid 'http://scrollkeeper.sourceforge.net/dtds/scrollkeeper-omf-1.0/scrollkeeper-omf.dtd' $$omf"; \
920 xmllint --noout --xinclude --dtdvalid 'http://scrollkeeper.sourceforge.net/dtds/scrollkeeper-omf-1.0/scrollkeeper-omf.dtd' $$omf; \
923 ################################################################################
925 .PHONY: install-doc-docs install-doc-html install-doc-figs install-doc-omf install-doc-dsk
927 install-data-local: \
928 $(if $(DOC_MODULE)$(DOC_ID),install-doc-docs) \
929 $(if $(_DOC_HTML_ALL),install-doc-html) \
930 $(if $(_DOC_C_FIGURES),install-doc-figs) \
931 $(if $(_DOC_OMF_IN),install-doc-omf)
932 # $(if $(_DOC_DSK_IN),install-doc-dsk)
935 @for lc in C $(_DOC_REAL_LINGUAS); do \
936 echo "$(mkinstalldirs) $(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$lc"; \
937 $(mkinstalldirs) $(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$lc; \
939 @list='$(_DOC_C_DOCS) $(_DOC_LC_DOCS)'; for doc in $$list; do \
940 if test -f "$$doc"; then d=; else d="$(srcdir)/"; fi; \
941 docdir="$$lc/"`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`; \
942 docdir="$(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$docdir"; \
943 if ! test -d "$$docdir"; then \
944 echo "$(mkinstalldirs) $$docdir"; \
945 $(mkinstalldirs) "$$docdir"; \
947 echo "$(INSTALL_DATA) $$d$$doc $(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$doc"; \
948 $(INSTALL_DATA) $$d$$doc $(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$doc; \
952 @list='$(patsubst C/%,%,$(_DOC_C_FIGURES))'; for fig in $$list; do \
953 for lc in C $(_DOC_REAL_LINGUAS); do \
955 if test -f "$$lc/$$fig"; then \
956 figfile="$$lc/$$fig"; \
957 elif test -f "$(srcdir)/$$lc/$$fig"; then \
958 figfile="$(srcdir)/$$lc/$$fig"; \
962 figdir="$$lc/"`echo $$fig | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`; \
963 figdir="$(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$figdir"; \
964 if ! test -d "$$figdir"; then \
965 echo "$(mkinstalldirs) $$figdir"; \
966 $(mkinstalldirs) "$$figdir"; \
968 figbase=`echo $$fig | sed -e 's/^.*\///'`; \
969 if $$figsymlink; then \
970 echo "cd $$figdir && $(LN_S) -f ../../C/$$fig $$figbase"; \
971 ( cd "$$figdir" && $(LN_S) -f "../../C/$$fig" "$$figbase" ); \
973 echo "$(INSTALL_DATA) $$figfile $$figdir$$figbase"; \
974 $(INSTALL_DATA) "$$figfile" "$$figdir$$figbase"; \
983 $(mkinstalldirs) $(DESTDIR)$(OMF_DIR)/$(_doc_install_dir)
984 @list='$(_DOC_OMF_ALL)'; for omf in $$list; do \
985 echo "$(INSTALL_DATA) $$omf $(DESTDIR)$(OMF_DIR)/$(_doc_install_dir)/$$omf"; \
986 $(INSTALL_DATA) $$omf $(DESTDIR)$(OMF_DIR)/$(_doc_install_dir)/$$omf; \
988 @if test "x$(_ENABLE_SK)" = "xtrue"; then \
989 echo "scrollkeeper-update -p $(DESTDIR)$(_sklocalstatedir) -o $(DESTDIR)$(OMF_DIR)/$(_doc_install_dir)"; \
990 scrollkeeper-update -p "$(DESTDIR)$(_sklocalstatedir)" -o "$(DESTDIR)$(OMF_DIR)/$(_doc_install_dir)"; \
996 ################################################################################
998 .PHONY: uninstall-doc-docs uninstall-doc-html uninstall-doc-figs uninstall-doc-omf uninstall-doc-dsk
1000 $(if $(DOC_MODULE)$(DOC_ID),uninstall-doc-docs) \
1001 $(if $(_DOC_HTML_ALL),uninstall-doc-html) \
1002 $(if $(_DOC_C_FIGURES),uninstall-doc-figs) \
1003 $(if $(_DOC_OMF_IN),uninstall-doc-omf)
1004 # $(if $(_DOC_DSK_IN),uninstall-doc-dsk)
1007 @list='$(_DOC_C_DOCS) $(_DOC_LC_DOCS)'; for doc in $$list; do \
1008 echo " rm -f $(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$doc"; \
1009 rm -f "$(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$doc"; \
1013 @list='$(_DOC_C_FIGURES) $(_DOC_LC_FIGURES)'; for fig in $$list; do \
1014 echo "rm -f $(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$fig"; \
1015 rm -f "$(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$fig"; \
1019 @list='$(_DOC_OMF_ALL)'; for omf in $$list; do \
1020 if test "x$(_ENABLE_SK)" = "xtrue"; then \
1021 echo "scrollkeeper-uninstall -p $(_sklocalstatedir) $(DESTDIR)$(OMF_DIR)/$(_doc_install_dir)/$$omf"; \
1022 scrollkeeper-uninstall -p "$(_sklocalstatedir)" "$(DESTDIR)$(OMF_DIR)/$(_doc_install_dir)/$$omf"; \
1024 echo "rm -f $(DESTDIR)$(OMF_DIR)/$(_doc_install_dir)/$$omf"; \
1025 rm -f "$(DESTDIR)$(OMF_DIR)/$(_doc_install_dir)/$$omf"; \
1027 dist-hook: doc-dist-hook
1029 # Tell versions [3.59,3.63) of GNU make to not export all variables.
1030 # Otherwise a system limit (for SysV at least) may be exceeded.