initial commit
[gconf-editor] / docs / Makefile.in
1 # Makefile.in generated by automake 1.11 from Makefile.am.
2 # @configure_input@
3
4 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5 # 2003, 2004, 2005, 2006, 2007, 2008, 2009  Free Software Foundation,
6 # Inc.
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.
10
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
14 # PARTICULAR PURPOSE.
15
16 @SET_MAKE@
17
18 # gnome-doc-utils.make - make magic for building documentation
19 # Copyright (C) 2004-2005 Shaun McCance <shaunm@gnome.org>
20 #
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.
25 #
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.
30 #
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.
34 #
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.
39
40 ################################################################################
41 VPATH = @srcdir@
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)
52 NORMAL_INSTALL = :
53 PRE_INSTALL = :
54 POST_INSTALL = :
55 NORMAL_UNINSTALL = :
56 PRE_UNINSTALL = :
57 POST_UNINSTALL = :
58 build_triplet = @build@
59 host_triplet = @host@
60 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
61         $(top_srcdir)/gnome-doc-utils.make ChangeLog
62 subdir = docs
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) \
70         $(ACLOCAL_M4)
71 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
72 CONFIG_HEADER = $(top_builddir)/config.h
73 CONFIG_CLEAN_FILES =
74 CONFIG_CLEAN_VPATH_FILES =
75 SOURCES =
76 DIST_SOURCES =
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/||"`;; \
80     *) f=$$p;; \
81   esac;
82 am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
83 am__install_max = 40
84 am__nobase_strip_setup = \
85   srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
86 am__nobase_strip = \
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] }'
95 am__base_list = \
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)"
100 NROFF = nroff
101 MANS = $(man_MANS)
102 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
103 ACLOCAL = @ACLOCAL@
104 ACLOCAL_AMFLAGS = @ACLOCAL_AMFLAGS@
105 ALL_LINGUAS = @ALL_LINGUAS@
106 AMTAR = @AMTAR@
107 AR = @AR@
108 AUTOCONF = @AUTOCONF@
109 AUTOHEADER = @AUTOHEADER@
110 AUTOMAKE = @AUTOMAKE@
111 AWK = @AWK@
112 CATALOGS = @CATALOGS@
113 CATOBJEXT = @CATOBJEXT@
114 CC = @CC@
115 CCDEPMODE = @CCDEPMODE@
116 CFLAGS = @CFLAGS@
117 CPP = @CPP@
118 CPPFLAGS = @CPPFLAGS@
119 CYGPATH_W = @CYGPATH_W@
120 DATADIRNAME = @DATADIRNAME@
121 DEFS = @DEFS@
122 DEPDIR = @DEPDIR@
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@
128 DUMPBIN = @DUMPBIN@
129 ECHO_C = @ECHO_C@
130 ECHO_N = @ECHO_N@
131 ECHO_T = @ECHO_T@
132 EGREP = @EGREP@
133 EXEEXT = @EXEEXT@
134 FGREP = @FGREP@
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@
143 GMSGFMT = @GMSGFMT@
144 GREP = @GREP@
145 HELP_DIR = @HELP_DIR@
146 INSTALL = @INSTALL@
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@
157 LD = @LD@
158 LDFLAGS = @LDFLAGS@
159 LIBOBJS = @LIBOBJS@
160 LIBS = @LIBS@
161 LIBTOOL = @LIBTOOL@
162 LIPO = @LIPO@
163 LN_S = @LN_S@
164 LTLIBOBJS = @LTLIBOBJS@
165 MAINT = @MAINT@
166 MAKEINFO = @MAKEINFO@
167 MKDIR_P = @MKDIR_P@
168 MKINSTALLDIRS = @MKINSTALLDIRS@
169 MSGFMT = @MSGFMT@
170 MSGFMT_OPTS = @MSGFMT_OPTS@
171 MSGMERGE = @MSGMERGE@
172 NM = @NM@
173 NMEDIT = @NMEDIT@
174 OBJDUMP = @OBJDUMP@
175 OBJEXT = @OBJEXT@
176 OMF_DIR = @OMF_DIR@
177 OTOOL = @OTOOL@
178 OTOOL64 = @OTOOL64@
179 PACKAGE = @PACKAGE@
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@
187 POFILES = @POFILES@
188 POSUB = @POSUB@
189 PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@
190 PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@
191 RANLIB = @RANLIB@
192 SED = @SED@
193 SET_MAKE = @SET_MAKE@
194 SHELL = @SHELL@
195 STRIP = @STRIP@
196 USE_NLS = @USE_NLS@
197 VERSION = @VERSION@
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@
209 am__tar = @am__tar@
210 am__untar = @am__untar@
211 bindir = @bindir@
212 build = @build@
213 build_alias = @build_alias@
214 build_cpu = @build_cpu@
215 build_os = @build_os@
216 build_vendor = @build_vendor@
217 builddir = @builddir@
218 datadir = @datadir@
219 datarootdir = @datarootdir@
220 docdir = @docdir@
221 dvidir = @dvidir@
222 exec_prefix = @exec_prefix@
223 host = @host@
224 host_alias = @host_alias@
225 host_cpu = @host_cpu@
226 host_os = @host_os@
227 host_vendor = @host_vendor@
228 htmldir = @htmldir@
229 includedir = @includedir@
230 infodir = @infodir@
231 install_sh = @install_sh@
232 libdir = @libdir@
233 libexecdir = @libexecdir@
234 localedir = @localedir@
235 localstatedir = @localstatedir@
236 lt_ECHO = @lt_ECHO@
237 mandir = @mandir@
238 mkdir_p = @mkdir_p@
239 oldincludedir = @oldincludedir@
240 pdfdir = @pdfdir@
241 prefix = @prefix@
242 program_transform_name = @program_transform_name@
243 psdir = @psdir@
244 sbindir = @sbindir@
245 sharedstatedir = @sharedstatedir@
246 srcdir = @srcdir@
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)),                                    \
256         $(DOC_LINGUAS))
257
258 _DOC_ABS_SRCDIR = @abs_srcdir@
259 _xml2po_mode = $(if $(DOC_ID),mallard,docbook)
260 @ENABLE_SK_TRUE@_ENABLE_SK = true
261
262 ################################################################################
263 db2omf_args = \
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)")            \
275         $(_db2omf) $(2)
276
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))
280
281 _DOC_OMF_HTML = $(if $(_DOC_OMF_IN),                                            \
282         $(foreach lc,C $(_DOC_REAL_LINGUAS),$(DOC_MODULE)-html-$(lc).omf))
283
284
285 # FIXME
286 _DOC_OMF_ALL = \
287         $(if $(filter docbook,$(_DOC_REAL_FORMATS)),$(_DOC_OMF_DB))             \
288         $(if $(filter html HTML,$(_DOC_REAL_FORMATS)),$(_DOC_OMF_HTML))
289
290
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))
296 _DOC_C_DOCS = \
297         $(_DOC_C_ENTITIES)      $(_DOC_C_INCLUDES)                      \
298         $(_DOC_C_PAGES)         $(_DOC_C_MODULE)
299
300 _DOC_C_DOCS_NOENT = \
301         $(_DOC_C_MODULE)        $(_DOC_C_INCLUDES)                      \
302         $(_DOC_C_PAGES)
303
304 _DOC_C_FIGURES = $(if $(DOC_FIGURES),                                   \
305         $(foreach fig,$(DOC_FIGURES),C/$(fig)),                         \
306         $(patsubst $(srcdir)/%,%,$(wildcard $(srcdir)/C/figures/*.png)))
307
308
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"),                            \
314         C/$(f).xhtml)
315
316
317 ###############################################################################
318 _DOC_POFILES = $(if $(DOC_MODULE)$(DOC_ID),                                     \
319         $(foreach lc,$(_DOC_REAL_LINGUAS),$(lc)/$(lc).po))
320
321 _DOC_LC_MODULES = $(if $(DOC_MODULE),                                           \
322         $(foreach lc,$(_DOC_REAL_LINGUAS),$(lc)/$(DOC_MODULE).xml))
323
324 _DOC_LC_PAGES = \
325         $(foreach lc,$(_DOC_REAL_LINGUAS),$(foreach page,$(_DOC_C_PAGES),       \
326                 $(lc)/$(notdir $(page)) ))
327
328 _DOC_LC_INCLUDES = \
329         $(foreach lc,$(_DOC_REAL_LINGUAS),$(foreach inc,$(_DOC_C_INCLUDES),     \
330                 $(lc)/$(notdir $(inc)) ))
331
332
333 # FIXME: probably have to shell escape to determine the file names
334 _DOC_LC_HTML = \
335         $(foreach lc,$(_DOC_REAL_LINGUAS),$(foreach doc,$(_DOC_C_HTML),         \
336                 $(lc)/$(notdir $(doc)) ))
337
338 _DOC_LC_DOCS = \
339         $(_DOC_LC_MODULES)      $(_DOC_LC_INCLUDES)     $(_DOC_LC_PAGES)        \
340         $(if $(filter html HTML,$(_DOC_REAL_FORMATS)),$(_DOC_LC_HTML))
341
342 _DOC_LC_FIGURES = $(foreach lc,$(_DOC_REAL_LINGUAS),                            \
343         $(patsubst C/%,$(lc)/%,$(_DOC_C_FIGURES)) )
344
345 _DOC_SRC_FIGURES = \
346         $(foreach fig,$(_DOC_C_FIGURES), $(foreach lc,C $(_DOC_REAL_LINGUAS),   \
347                 $(wildcard $(srcdir)/$(lc)/$(patsubst C/%,%,$(fig))) ))
348
349 _DOC_POT = $(if $(DOC_MODULE),$(DOC_MODULE).pot)
350
351 ################################################################################
352 _DOC_HTML_ALL = $(if $(filter html HTML,$(_DOC_REAL_FORMATS)), \
353         $(_DOC_C_HTML) $(_DOC_LC_HTML))
354
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
363 DOC_INCLUDES = 
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
371
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)
375 all: all-am
376
377 .SUFFIXES:
378 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(top_srcdir)/gnome-doc-utils.make $(am__configure_deps)
379         @for dep in $?; do \
380           case '$(am__configure_deps)' in \
381             *$$dep*) \
382               ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
383                 && { if test -f $@; then exit 0; else break; fi; }; \
384               exit 1;; \
385           esac; \
386         done; \
387         echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign docs/Makefile'; \
388         $(am__cd) $(top_srcdir) && \
389           $(AUTOMAKE) --foreign docs/Makefile
390 .PRECIOUS: Makefile
391 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
392         @case '$?' in \
393           *config.status*) \
394             cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
395           *) \
396             echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
397             cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
398         esac;
399
400 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
401         cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
402
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):
408
409 mostlyclean-libtool:
410         -rm -f *.lo
411
412 clean-libtool:
413         -rm -rf .libs _libs
414 install-man1: $(man_MANS)
415         @$(NORMAL_INSTALL)
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"; \
424         done | \
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 $$?; \
432           fi; \
433         done; \
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 $$?; }; \
439         done; }
440
441 uninstall-man1:
442         @$(NORMAL_UNINSTALL)
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; }
452 tags: TAGS
453 TAGS:
454
455 ctags: CTAGS
456 CTAGS:
457
458
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; \
470             exit 1; \
471           else :; fi; \
472         else :; fi
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,/[^/]*$$,,' | \
482                            sort -u` ;; \
483         esac; \
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 {} \;; \
490             fi; \
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 {} \;; \
494             fi; \
495             cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
496           else \
497             test -f "$(distdir)/$$file" \
498             || cp -p $$d/$$file "$(distdir)/$$file" \
499             || exit 1; \
500           fi; \
501         done
502         $(MAKE) $(AM_MAKEFLAGS) \
503           top_distdir="$(top_distdir)" distdir="$(distdir)" \
504           dist-hook
505 check-am: all-am
506 check: check-am
507 all-am: Makefile $(MANS)
508 installdirs:
509         for dir in "$(DESTDIR)$(man1dir)"; do \
510           test -z "$$dir" || $(MKDIR_P) "$$dir"; \
511         done
512 install: install-am
513 install-exec: install-exec-am
514 install-data: install-data-am
515 uninstall: uninstall-am
516
517 install-am: all-am
518         @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
519
520 installcheck: installcheck-am
521 install-strip:
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
526 mostlyclean-generic:
527
528 clean-generic:
529
530 distclean-generic:
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)
533
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."
537 clean: clean-am
538
539 clean-am: clean-generic clean-libtool clean-local mostlyclean-am
540
541 distclean: distclean-am
542         -rm -f Makefile
543 distclean-am: clean-am distclean-generic distclean-local
544
545 dvi: dvi-am
546
547 dvi-am:
548
549 html: html-am
550
551 html-am:
552
553 info: info-am
554
555 info-am:
556
557 install-data-am: install-data-local install-man
558
559 install-dvi: install-dvi-am
560
561 install-dvi-am:
562
563 install-exec-am:
564
565 install-html: install-html-am
566
567 install-html-am:
568
569 install-info: install-info-am
570
571 install-info-am:
572
573 install-man: install-man1
574
575 install-pdf: install-pdf-am
576
577 install-pdf-am:
578
579 install-ps: install-ps-am
580
581 install-ps-am:
582
583 installcheck-am:
584
585 maintainer-clean: maintainer-clean-am
586         -rm -f Makefile
587 maintainer-clean-am: distclean-am maintainer-clean-generic \
588         maintainer-clean-local
589
590 mostlyclean: mostlyclean-am
591
592 mostlyclean-am: mostlyclean-generic mostlyclean-libtool \
593         mostlyclean-local
594
595 pdf: pdf-am
596
597 pdf-am:
598
599 ps: ps-am
600
601 ps-am:
602
603 uninstall-am: uninstall-local uninstall-man
604
605 uninstall-man: uninstall-man1
606
607 .MAKE: install-am install-strip
608
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 \
622         uninstall-man1
623
624
625 DOC_H_FILE ?=
626
627 DOC_H_DOCS ?=
628
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; \
636         done | sort | uniq \
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
640         echo '};' >> $@.tmp
641         echo >> $@.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'`; \
647           echo $$xmlpath; \
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; \
652           done; \
653           echo >> $@.tmp; \
654         done;
655         cp $@.tmp $@ && rm -f $@.tmp
656
657 dist-check-gdu:
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
660
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)";
666
667 doc-dist-hook: dist-check-gdu $(if $(DOC_H_FILE),dist-doc-header)
668
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)
674 clean-doc-header:
675         rm -f $(DOC_H_FILE)
676
677 all: $(DOC_H_FILE)
678
679 ################################################################################
680
681 DOC_MODULE ?=
682
683 DOC_ID ?=
684
685 DOC_PAGES ?=
686
687 DOC_ENTITIES ?=
688
689 DOC_INCLUDES ?=
690
691 DOC_FIGURES ?=
692
693 DOC_FORMATS ?= docbook
694
695 DOC_LINGUAS ?=
696
697 ################################################################################
698
699 _xml2po ?= `which xml2po`
700
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
710
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;              \
716           exit 1; }
717         xsltproc -o $@ $(call db2omf_args,$@,$<,'docbook') || { rm -f "$@"; exit 1; }
718
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; }
726
727 .PHONY: omf
728 omf: $(_DOC_OMF_ALL)
729
730 .PHONY: po
731 po: $(_DOC_POFILES)
732
733 $(_DOC_POFILES):
734         @if ! test -d $(dir $@); then \
735           echo "mkdir $(dir $@)"; \
736           mkdir "$(dir $@)"; \
737         fi
738         @if test ! -f $@ -a -f $(srcdir)/$@; then \
739           echo "cp $(srcdir)/$@ $@"; \
740           cp "$(srcdir)/$@" "$@"; \
741         fi;
742         @docs=; \
743         list='$(_DOC_C_DOCS_NOENT)'; for doc in $$list; do \
744           docs="$$docs $(_DOC_ABS_SRCDIR)/$$doc"; \
745         done; \
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)"; \
750           (cd $(dir $@) && \
751             $(_xml2po) -m $(_xml2po_mode) -e $$docs > $(notdir $@).tmp && \
752             cp $(notdir $@).tmp $(notdir $@) && rm -f $(notdir $@).tmp); \
753         else \
754           echo "(cd $(dir $@) && \
755             $(_xml2po) -m $(_xml2po_mode) -e -u $(notdir $@) $$docs)"; \
756           (cd $(dir $@) && \
757             $(_xml2po) -m $(_xml2po_mode) -e -u $(notdir $@) $$docs); \
758         fi
759
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; \
768         (cd $(dir $@) && \
769           $(_xml2po) -m $(_xml2po_mode) -e -p "$${po}" \
770             "$${d}C/$(notdir $@)" > $(notdir $@).tmp && \
771             cp $(notdir $@).tmp $(notdir $@) && rm -f $(notdir $@).tmp)
772 .PHONY: pot
773 pot: $(_DOC_POT)
774 $(_DOC_POT): $(_DOC_C_DOCS_NOENT)
775         $(_xml2po) -m $(_xml2po_mode) -e -o $@ $^
776
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,$@)
779
780 ################################################################################
781
782 all:                                                    \
783         $(_DOC_C_DOCS)          $(_DOC_LC_DOCS)         \
784         $(_DOC_OMF_ALL)         $(_DOC_DSK_ALL)         \
785         $(_DOC_HTML_ALL)        $(_DOC_POFILES)
786
787 ################################################################################
788
789 .PHONY: clean-doc-omf clean-doc-dsk clean-doc-lc clean-doc-dir
790
791 clean-doc-omf: ; rm -f $(_DOC_OMF_DB) $(_DOC_OMF_HTML)
792 clean-doc-dsk: ; rm -f $(_DOC_DSK_DB) $(_DOC_DSK_HTML)
793 clean-doc-lc:
794         rm -f $(_DOC_LC_DOCS)
795         @list='$(_DOC_POFILES)'; for po in $$list; do \
796           if ! test "$$po" -ef "$(srcdir)/$$po"; then \
797             echo "rm -f $$po"; \
798             rm -f "$$po"; \
799           fi; \
800         done
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"; \
805           fi; \
806         done
807 clean-doc-dir:
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"; \
812               rmdir "$$dir"; \
813            fi; \
814           done; \
815         done
816
817 clean-local:                                            \
818         $(_clean_omf)           $(_clean_dsk)           \
819         $(_clean_lc)            $(_clean_dir)
820 distclean-local:                                        \
821         $(_clean_omf)           $(_clean_dsk)           \
822         $(_clean_lc)            $(_clean_dir)
823 mostlyclean-local:                                      \
824         $(_clean_omf)           $(_clean_dsk)           \
825         $(_clean_lc)            $(_clean_dir)
826 maintainer-clean-local:                                 \
827         $(_clean_omf)           $(_clean_dsk)           \
828         $(_clean_lc)            $(_clean_dir)
829
830 ################################################################################
831
832 .PHONY: dist-doc-docs dist-doc-pages dist-doc-figs dist-doc-omf dist-doc-dsk
833 doc-dist-hook:                                          \
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)
838
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"; \
843         done
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"; \
851             fi; \
852           echo "$(INSTALL_DATA) $$d$$doc $(distdir)/$$doc"; \
853           $(INSTALL_DATA) "$$d$$doc" "$(distdir)/$$doc"; \
854         done
855
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"; \
865             fi; \
866             echo "$(INSTALL_DATA) $$d$$fig $(distdir)/$$fig"; \
867             $(INSTALL_DATA) "$$d$$fig" "$(distdir)/$$fig"; \
868           fi; \
869         done;
870
871 dist-doc-omf:
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))"
875
876 dist-doc-dsk:
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))"
880
881 ################################################################################
882
883 .PHONY: check-doc-docs check-doc-omf
884 check:                                                  \
885         $(if $(DOC_MODULE),check-doc-docs)              \
886         $(if $(DOC_ID),check-doc-pages)                 \
887         $(if $(_DOC_OMF_IN),check-doc-omf)
888
889 check-doc-docs: $(_DOC_C_DOCS) $(_DOC_LC_DOCS)
890         @for lc in C $(_DOC_REAL_LINGUAS); do \
891           if test -f "$$lc"; \
892             then d=; \
893             xmlpath="$$lc"; \
894           else \
895             d="$(srcdir)/"; \
896             xmlpath="$$lc:$(srcdir)/$$lc"; \
897           fi; \
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"; \
900         done
901
902 check-doc-pages: $(_DOC_C_PAGES) $(_DOC_LC_PAGES)
903         for lc in C $(_DOC_REAL_LINGUAS); do \
904           if test -f "$$lc"; \
905             then d=; \
906             xmlpath="$$lc"; \
907           else \
908             d="$(srcdir)/"; \
909             xmlpath="$$lc:$(srcdir)/$$lc"; \
910           fi; \
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"; \
914           done; \
915         done
916
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; \
921         done
922
923 ################################################################################
924
925 .PHONY: install-doc-docs install-doc-html install-doc-figs install-doc-omf install-doc-dsk
926
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)
933
934 install-doc-docs:
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; \
938         done
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"; \
946           fi; \
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; \
949         done
950
951 install-doc-figs:
952         @list='$(patsubst C/%,%,$(_DOC_C_FIGURES))'; for fig in $$list; do \
953           for lc in C $(_DOC_REAL_LINGUAS); do \
954             figsymlink=false; \
955             if test -f "$$lc/$$fig"; then \
956               figfile="$$lc/$$fig"; \
957             elif test -f "$(srcdir)/$$lc/$$fig"; then \
958               figfile="$(srcdir)/$$lc/$$fig"; \
959             else \
960               figsymlink=true; \
961             fi; \
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"; \
967             fi; \
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" ); \
972             else \
973               echo "$(INSTALL_DATA) $$figfile $$figdir$$figbase"; \
974               $(INSTALL_DATA) "$$figfile" "$$figdir$$figbase"; \
975             fi; \
976           done; \
977         done
978
979 install-doc-html:
980         echo install-html
981
982 install-doc-omf:
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; \
987         done
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)"; \
991         fi;
992
993 install-doc-dsk:
994         echo install-dsk
995
996 ################################################################################
997
998 .PHONY: uninstall-doc-docs uninstall-doc-html uninstall-doc-figs uninstall-doc-omf uninstall-doc-dsk
999 uninstall-local:                                        \
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)
1005
1006 uninstall-doc-docs:
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"; \
1010         done
1011
1012 uninstall-doc-figs:
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"; \
1016         done;
1017
1018 uninstall-doc-omf:
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"; \
1023           fi; \
1024           echo "rm -f $(DESTDIR)$(OMF_DIR)/$(_doc_install_dir)/$$omf"; \
1025           rm -f "$(DESTDIR)$(OMF_DIR)/$(_doc_install_dir)/$$omf"; \
1026         done
1027 dist-hook: doc-dist-hook
1028
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.
1031 .NOEXPORT: