~ubuntu-branches/ubuntu/trusty/gq/trusty

« back to all changes in this revision

Viewing changes to help/gq-manual/Makefile.in

  • Committer: Bazaar Package Importer
  • Author(s): Barry deFreese
  • Date: 2009-10-25 23:34:56 UTC
  • mfrom: (1.1.4 upstream) (3.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20091025233456-i794n3yg2cff930j
Tags: 1.3.4-1
* QA upload.
  + Set maintainer to Debian QA Group <packages@qa.debian.org>.
* New upstream release. (Closes: #534705).
  + Does not segfault on amd64. (Closes: #444312).
  + Remove all existing patches and change patch system to quilt.
  + Replace dpatch build-dep with quilt.
* 01_desktop_file.diff - Remove encoding and bogus categories 
  from desktop file.
* Copy in config.{sub,guess} on configure, rm them on clean.
  + Add build-dep on autotools-dev.
* Make clean not ignore errors.
* Add copyright holders and version path to GPL (GPL-2).
* Update watch file to use SF redirector. (Closes: #449749).
* Bump debhelper build-dep and compat to 5.
* Bump Standards Version to 3.8.3.
  + Menu policy transition.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Makefile.in generated by automake 1.10 from Makefile.am.
 
2
# @configure_input@
 
3
 
 
4
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
 
5
# 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
 
6
# This Makefile.in is free software; the Free Software Foundation
 
7
# gives unlimited permission to copy and/or distribute it,
 
8
# with or without modifications, as long as this notice is preserved.
 
9
 
 
10
# This program is distributed in the hope that it will be useful,
 
11
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
 
12
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
 
13
# PARTICULAR PURPOSE.
 
14
 
 
15
@SET_MAKE@
 
16
 
 
17
# gnome-doc-utils.make - make magic for building documentation
 
18
# Copyright (C) 2004-2005 Shaun McCance <shaunm@gnome.org>
 
19
#
 
20
# This program is free software; you can redistribute it and/or modify
 
21
# it under the terms of the GNU General Public License as published by
 
22
# the Free Software Foundation; either version 2 of the License, or
 
23
# (at your option) any later version.
 
24
#
 
25
# This program is distributed in the hope that it will be useful,
 
26
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
27
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
28
# GNU General Public License for more details.
 
29
#
 
30
# You should have received a copy of the GNU General Public License
 
31
# along with this program; if not, write to the Free Software Foundation,
 
32
# Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
33
#
 
34
# As a special exception to the GNU General Public License, if you
 
35
# distribute this file as part of a program that contains a
 
36
# configuration script generated by Autoconf, you may include it under
 
37
# the same distribution terms that you use for the rest of that program.
 
38
 
 
39
################################################################################
 
40
VPATH = @srcdir@
 
41
pkgdatadir = $(datadir)/@PACKAGE@
 
42
pkglibdir = $(libdir)/@PACKAGE@
 
43
pkgincludedir = $(includedir)/@PACKAGE@
 
44
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
 
45
install_sh_DATA = $(install_sh) -c -m 644
 
46
install_sh_PROGRAM = $(install_sh) -c
 
47
install_sh_SCRIPT = $(install_sh) -c
 
48
INSTALL_HEADER = $(INSTALL_DATA)
 
49
transform = $(program_transform_name)
 
50
NORMAL_INSTALL = :
 
51
PRE_INSTALL = :
 
52
POST_INSTALL = :
 
53
NORMAL_UNINSTALL = :
 
54
PRE_UNINSTALL = :
 
55
POST_UNINSTALL = :
 
56
build_triplet = @build@
 
57
host_triplet = @host@
 
58
DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
 
59
        $(top_srcdir)/gnome-doc-utils.make
 
60
subdir = help/gq-manual
 
61
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
 
62
am__aclocal_m4_deps = $(top_srcdir)/macros/aclocal-include.m4 \
 
63
        $(top_srcdir)/macros/herzi-cflags.m4 \
 
64
        $(top_srcdir)/macros/herzi-gettext.m4 \
 
65
        $(top_srcdir)/macros/herzi-prefix.m4 \
 
66
        $(top_srcdir)/macros/objc.m4 $(top_srcdir)/acinclude.m4 \
 
67
        $(top_srcdir)/configure.in
 
68
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
 
69
        $(ACLOCAL_M4)
 
70
mkinstalldirs = $(install_sh) -d
 
71
CONFIG_HEADER = $(top_builddir)/config.h
 
72
CONFIG_CLEAN_FILES =
 
73
SOURCES =
 
74
DIST_SOURCES =
 
75
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
 
76
ACLOCAL = @ACLOCAL@
 
77
ALL_LINGUAS = @ALL_LINGUAS@
 
78
AMTAR = @AMTAR@
 
79
AUTOCONF = @AUTOCONF@
 
80
AUTOHEADER = @AUTOHEADER@
 
81
AUTOMAKE = @AUTOMAKE@
 
82
AWK = @AWK@
 
83
CATALOGS = @CATALOGS@
 
84
CATOBJEXT = @CATOBJEXT@
 
85
CC = @CC@
 
86
CCDEPMODE = @CCDEPMODE@
 
87
CFLAGS = @CFLAGS@
 
88
CPP = @CPP@
 
89
CPPFLAGS = @CPPFLAGS@
 
90
CRYPTO_CFLAGS = @CRYPTO_CFLAGS@
 
91
CRYPTO_LIBS = @CRYPTO_LIBS@
 
92
CYGPATH_W = @CYGPATH_W@
 
93
DATADIRNAME = @DATADIRNAME@
 
94
DEFINE_LDAP_DEPRECATED = @DEFINE_LDAP_DEPRECATED@
 
95
DEFS = @DEFS@
 
96
DEPDIR = @DEPDIR@
 
97
DISTCHECK_CONFIGURE_FLAGS = @DISTCHECK_CONFIGURE_FLAGS@
 
98
DOC_USER_FORMATS = @DOC_USER_FORMATS@
 
99
ECHO_C = @ECHO_C@
 
100
ECHO_N = @ECHO_N@
 
101
ECHO_T = @ECHO_T@
 
102
EGREP = @EGREP@
 
103
EXEEXT = @EXEEXT@
 
104
GETTEXT_PACKAGE = @GETTEXT_PACKAGE@
 
105
GLIB_GENMARSHAL = @GLIB_GENMARSHAL@
 
106
GLIB_MKENUMS = @GLIB_MKENUMS@
 
107
GMOFILES = @GMOFILES@
 
108
GMSGFMT = @GMSGFMT@
 
109
GQ_CFLAGS = @GQ_CFLAGS@
 
110
GQ_LIBS = @GQ_LIBS@
 
111
GREP = @GREP@
 
112
HELP_DIR = @HELP_DIR@
 
113
INSTALL = @INSTALL@
 
114
INSTALL_DATA = @INSTALL_DATA@
 
115
INSTALL_PROGRAM = @INSTALL_PROGRAM@
 
116
INSTALL_SCRIPT = @INSTALL_SCRIPT@
 
117
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
 
118
INSTOBJEXT = @INSTOBJEXT@
 
119
INTLLIBS = @INTLLIBS@
 
120
INTLTOOL_CAVES_RULE = @INTLTOOL_CAVES_RULE@
 
121
INTLTOOL_DESKTOP_RULE = @INTLTOOL_DESKTOP_RULE@
 
122
INTLTOOL_DIRECTORY_RULE = @INTLTOOL_DIRECTORY_RULE@
 
123
INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@
 
124
INTLTOOL_KBD_RULE = @INTLTOOL_KBD_RULE@
 
125
INTLTOOL_KEYS_RULE = @INTLTOOL_KEYS_RULE@
 
126
INTLTOOL_MERGE = @INTLTOOL_MERGE@
 
127
INTLTOOL_OAF_RULE = @INTLTOOL_OAF_RULE@
 
128
INTLTOOL_PERL = @INTLTOOL_PERL@
 
129
INTLTOOL_POLICY_RULE = @INTLTOOL_POLICY_RULE@
 
130
INTLTOOL_PONG_RULE = @INTLTOOL_PONG_RULE@
 
131
INTLTOOL_PROP_RULE = @INTLTOOL_PROP_RULE@
 
132
INTLTOOL_SCHEMAS_RULE = @INTLTOOL_SCHEMAS_RULE@
 
133
INTLTOOL_SERVER_RULE = @INTLTOOL_SERVER_RULE@
 
134
INTLTOOL_SERVICE_RULE = @INTLTOOL_SERVICE_RULE@
 
135
INTLTOOL_SHEET_RULE = @INTLTOOL_SHEET_RULE@
 
136
INTLTOOL_SOUNDLIST_RULE = @INTLTOOL_SOUNDLIST_RULE@
 
137
INTLTOOL_THEME_RULE = @INTLTOOL_THEME_RULE@
 
138
INTLTOOL_UI_RULE = @INTLTOOL_UI_RULE@
 
139
INTLTOOL_UPDATE = @INTLTOOL_UPDATE@
 
140
INTLTOOL_XAM_RULE = @INTLTOOL_XAM_RULE@
 
141
INTLTOOL_XML_NOMERGE_RULE = @INTLTOOL_XML_NOMERGE_RULE@
 
142
INTLTOOL_XML_RULE = @INTLTOOL_XML_RULE@
 
143
LDFLAGS = @LDFLAGS@
 
144
LIBGCRYPT_CFLAGS = @LIBGCRYPT_CFLAGS@
 
145
LIBGCRYPT_CONFIG = @LIBGCRYPT_CONFIG@
 
146
LIBGCRYPT_LIBS = @LIBGCRYPT_LIBS@
 
147
LIBOBJS = @LIBOBJS@
 
148
LIBS = @LIBS@
 
149
LTLIBOBJS = @LTLIBOBJS@
 
150
MAKEINFO = @MAKEINFO@
 
151
MKDIR_P = @MKDIR_P@
 
152
MKINSTALLDIRS = @MKINSTALLDIRS@
 
153
MSGFMT = @MSGFMT@
 
154
MSGFMT_OPTS = @MSGFMT_OPTS@
 
155
OBJC = @OBJC@
 
156
OBJCDEPMODE = @OBJCDEPMODE@
 
157
OBJC_LDFLAGS = @OBJC_LDFLAGS@
 
158
OBJEXT = @OBJEXT@
 
159
OMF_DIR = @OMF_DIR@
 
160
PACKAGE = @PACKAGE@
 
161
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
 
162
PACKAGE_LOCALE_DIR = @PACKAGE_LOCALE_DIR@
 
163
PACKAGE_NAME = @PACKAGE_NAME@
 
164
PACKAGE_PREFIX = @PACKAGE_PREFIX@
 
165
PACKAGE_STRING = @PACKAGE_STRING@
 
166
PACKAGE_TARNAME = @PACKAGE_TARNAME@
 
167
PACKAGE_VERSION = @PACKAGE_VERSION@
 
168
PATH_SEPARATOR = @PATH_SEPARATOR@
 
169
PKG_CONFIG = @PKG_CONFIG@
 
170
POFILES = @POFILES@
 
171
POSUB = @POSUB@
 
172
PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@
 
173
PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@
 
174
SET_MAKE = @SET_MAKE@
 
175
SHELL = @SHELL@
 
176
STRIP = @STRIP@
 
177
USE_NLS = @USE_NLS@
 
178
VERSION = @VERSION@
 
179
WERROR_CFLAGS = @WERROR_CFLAGS@
 
180
XARGS = @XARGS@
 
181
XGETTEXT = @XGETTEXT@
 
182
abs_builddir = @abs_builddir@
 
183
abs_srcdir = @abs_srcdir@
 
184
abs_top_builddir = @abs_top_builddir@
 
185
abs_top_srcdir = @abs_top_srcdir@
 
186
ac_ct_CC = @ac_ct_CC@
 
187
ac_ct_OBJC = @ac_ct_OBJC@
 
188
am__include = @am__include@
 
189
am__leading_dot = @am__leading_dot@
 
190
am__quote = @am__quote@
 
191
am__tar = @am__tar@
 
192
am__untar = @am__untar@
 
193
bindir = @bindir@
 
194
build = @build@
 
195
build_alias = @build_alias@
 
196
build_cpu = @build_cpu@
 
197
build_os = @build_os@
 
198
build_vendor = @build_vendor@
 
199
builddir = @builddir@
 
200
datadir = @datadir@
 
201
datarootdir = @datarootdir@
 
202
docdir = @docdir@
 
203
dvidir = @dvidir@
 
204
enable_update_mimedb = @enable_update_mimedb@
 
205
exec_prefix = @exec_prefix@
 
206
host = @host@
 
207
host_alias = @host_alias@
 
208
host_cpu = @host_cpu@
 
209
host_os = @host_os@
 
210
host_vendor = @host_vendor@
 
211
htmldir = @htmldir@
 
212
includedir = @includedir@
 
213
infodir = @infodir@
 
214
install_sh = @install_sh@
 
215
libdir = @libdir@
 
216
libexecdir = @libexecdir@
 
217
localedir = @localedir@
 
218
localstatedir = @localstatedir@
 
219
mandir = @mandir@
 
220
mkdir_p = @mkdir_p@
 
221
oldincludedir = @oldincludedir@
 
222
pdfdir = @pdfdir@
 
223
prefix = @prefix@
 
224
program_transform_name = @program_transform_name@
 
225
psdir = @psdir@
 
226
sbindir = @sbindir@
 
227
sharedstatedir = @sharedstatedir@
 
228
srcdir = @srcdir@
 
229
sysconfdir = @sysconfdir@
 
230
target_alias = @target_alias@
 
231
top_builddir = @top_builddir@
 
232
top_srcdir = @top_srcdir@
 
233
_clean_doc_header = $(if $(DOC_H_FILE),clean-doc-header)
 
234
_DOC_REAL_FORMATS = $(if $(DOC_USER_FORMATS),$(DOC_USER_FORMATS),$(DOC_FORMATS))
 
235
_DOC_REAL_LINGUAS = $(if $(filter environment,$(origin LINGUAS)),               \
 
236
        $(filter $(LINGUAS),$(DOC_LINGUAS)),                                    \
 
237
        $(DOC_LINGUAS))
 
238
 
 
239
_DOC_ABS_SRCDIR = @abs_srcdir@
 
240
@ENABLE_SK_TRUE@_ENABLE_SK = true
 
241
 
 
242
################################################################################
 
243
db2omf_args = \
 
244
        --stringparam db2omf.basename $(DOC_MODULE)                             \
 
245
        --stringparam db2omf.format $(3)                                        \
 
246
        --stringparam db2omf.dtd                                                \
 
247
        $(shell xmllint --format $(2) | grep -h PUBLIC | head -n 1              \
 
248
                | sed -e 's/.*PUBLIC \(\"[^\"]*\"\).*/\1/')                     \
 
249
        --stringparam db2omf.lang $(notdir $(patsubst %/$(notdir $(2)),%,$(2))) \
 
250
        --stringparam db2omf.omf_dir "$(OMF_DIR)"                               \
 
251
        --stringparam db2omf.help_dir "$(HELP_DIR)"                             \
 
252
        --stringparam db2omf.omf_in "$(_DOC_OMF_IN)"                            \
 
253
        $(if $(_ENABLE_SK),                                                     \
 
254
          --stringparam db2omf.scrollkeeper_cl "$(_skcontentslist)")            \
 
255
        $(_db2omf) $(2)
 
256
 
 
257
_DOC_OMF_IN = $(if $(DOC_MODULE),$(wildcard $(_DOC_ABS_SRCDIR)/$(DOC_MODULE).omf.in))
 
258
_DOC_OMF_DB = $(if $(_DOC_OMF_IN),                                              \
 
259
        $(foreach lc,C $(_DOC_REAL_LINGUAS),$(DOC_MODULE)-$(lc).omf))
 
260
 
 
261
_DOC_OMF_HTML = $(if $(_DOC_OMF_IN),                                            \
 
262
        $(foreach lc,C $(_DOC_REAL_LINGUAS),$(DOC_MODULE)-html-$(lc).omf))
 
263
 
 
264
 
 
265
# FIXME
 
266
_DOC_OMF_ALL = \
 
267
        $(if $(filter docbook,$(_DOC_REAL_FORMATS)),$(_DOC_OMF_DB))             \
 
268
        $(if $(filter html HTML,$(_DOC_REAL_FORMATS)),$(_DOC_OMF_HTML))
 
269
 
 
270
 
 
271
################################################################################
 
272
_DOC_C_MODULE = $(if $(DOC_MODULE),C/$(DOC_MODULE).xml)
 
273
_DOC_C_ENTITIES = $(foreach ent,$(DOC_ENTITIES),C/$(ent))
 
274
_DOC_C_INCLUDES = $(foreach inc,$(DOC_INCLUDES),C/$(inc))
 
275
_DOC_C_DOCS = \
 
276
        $(_DOC_C_ENTITIES)      $(_DOC_C_INCLUDES)                      \
 
277
        $(_DOC_C_MODULE)
 
278
 
 
279
_DOC_C_DOCS_NOENT = \
 
280
        $(_DOC_C_MODULE)        $(_DOC_C_INCLUDES)
 
281
 
 
282
_DOC_C_FIGURES = $(if $(DOC_FIGURES),                                   \
 
283
        $(foreach fig,$(DOC_FIGURES),C/$(fig)),                         \
 
284
        $(patsubst $(srcdir)/%,%,$(wildcard $(srcdir)/C/figures/*.png)))
 
285
 
 
286
 
 
287
# FIXME: probably have to shell escape to determine the file names
 
288
_DOC_C_HTML = $(foreach f,                                              \
 
289
        $(shell xsltproc --xinclude                                     \
 
290
          --stringparam db.chunk.basename "$(DOC_MODULE)"               \
 
291
          $(_chunks) "C/$(DOC_MODULE).xml"),                            \
 
292
        C/$(f).xhtml)
 
293
 
 
294
 
 
295
###############################################################################
 
296
_DOC_POFILES = $(if $(DOC_MODULE),                                              \
 
297
        $(foreach lc,$(_DOC_REAL_LINGUAS),$(lc)/$(lc).po))
 
298
 
 
299
_DOC_LC_MODULES = $(if $(DOC_MODULE),                                           \
 
300
        $(foreach lc,$(_DOC_REAL_LINGUAS),$(lc)/$(DOC_MODULE).xml))
 
301
 
 
302
_DOC_LC_INCLUDES = \
 
303
        $(foreach lc,$(_DOC_REAL_LINGUAS),$(foreach inc,$(_DOC_C_INCLUDES),     \
 
304
                $(lc)/$(notdir $(inc)) ))
 
305
 
 
306
 
 
307
# FIXME: probably have to shell escape to determine the file names
 
308
_DOC_LC_HTML = \
 
309
        $(foreach lc,$(_DOC_REAL_LINGUAS),$(foreach doc,$(_DOC_C_HTML),         \
 
310
                $(lc)/$(notdir $(doc)) ))
 
311
 
 
312
_DOC_LC_DOCS = \
 
313
        $(_DOC_LC_MODULES)      $(_DOC_LC_INCLUDES)                             \
 
314
        $(if $(filter html HTML,$(_DOC_REAL_FORMATS)),$(_DOC_LC_HTML))
 
315
 
 
316
_DOC_LC_FIGURES = $(foreach lc,$(_DOC_REAL_LINGUAS),                            \
 
317
        $(patsubst C/%,$(lc)/%,$(_DOC_C_FIGURES)) )
 
318
 
 
319
_DOC_SRC_FIGURES = \
 
320
        $(foreach fig,$(_DOC_C_FIGURES), $(foreach lc,C $(_DOC_REAL_LINGUAS),   \
 
321
                $(wildcard $(srcdir)/$(lc)/$(patsubst C/%,%,$(fig))) ))
 
322
 
 
323
_DOC_POT = $(if $(DOC_MODULE),$(DOC_MODULE).pot)
 
324
 
 
325
################################################################################
 
326
_DOC_HTML_ALL = $(if $(filter html HTML,$(_DOC_REAL_FORMATS)), \
 
327
        $(_DOC_C_HTML) $(_DOC_LC_HTML))
 
328
 
 
329
_DOC_HTML_TOPS = $(foreach lc,C $(_DOC_REAL_LINGUAS),$(lc)/$(DOC_MODULE).xhtml)
 
330
_clean_omf = $(if $(_DOC_OMF_IN),clean-doc-omf)
 
331
_clean_dsk = $(if $(_DOC_DSK_IN),clean-doc-dsk)
 
332
_clean_lc = $(if $(_DOC_REAL_LINGUAS),clean-doc-lc)
 
333
_clean_dir = $(if $(DOC_MODULE),clean-doc-dir)
 
334
DOC_MODULE = gq-manual
 
335
DOC_INCLUDES = legal.xml
 
336
DOC_LINGUAS = de
 
337
all: all-am
 
338
 
 
339
.SUFFIXES:
 
340
$(srcdir)/Makefile.in:  $(srcdir)/Makefile.am $(top_srcdir)/gnome-doc-utils.make $(am__configure_deps)
 
341
        @for dep in $?; do \
 
342
          case '$(am__configure_deps)' in \
 
343
            *$$dep*) \
 
344
              cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
 
345
                && exit 0; \
 
346
              exit 1;; \
 
347
          esac; \
 
348
        done; \
 
349
        echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu  help/gq-manual/Makefile'; \
 
350
        cd $(top_srcdir) && \
 
351
          $(AUTOMAKE) --gnu  help/gq-manual/Makefile
 
352
.PRECIOUS: Makefile
 
353
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
 
354
        @case '$?' in \
 
355
          *config.status*) \
 
356
            cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
 
357
          *) \
 
358
            echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
 
359
            cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
 
360
        esac;
 
361
 
 
362
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
 
363
        cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
 
364
 
 
365
$(top_srcdir)/configure:  $(am__configure_deps)
 
366
        cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
 
367
$(ACLOCAL_M4):  $(am__aclocal_m4_deps)
 
368
        cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
 
369
tags: TAGS
 
370
TAGS:
 
371
 
 
372
ctags: CTAGS
 
373
CTAGS:
 
374
 
 
375
 
 
376
distdir: $(DISTFILES)
 
377
        @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
 
378
        topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
 
379
        list='$(DISTFILES)'; \
 
380
          dist_files=`for file in $$list; do echo $$file; done | \
 
381
          sed -e "s|^$$srcdirstrip/||;t" \
 
382
              -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
 
383
        case $$dist_files in \
 
384
          */*) $(MKDIR_P) `echo "$$dist_files" | \
 
385
                           sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
 
386
                           sort -u` ;; \
 
387
        esac; \
 
388
        for file in $$dist_files; do \
 
389
          if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
 
390
          if test -d $$d/$$file; then \
 
391
            dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
 
392
            if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
 
393
              cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
 
394
            fi; \
 
395
            cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
 
396
          else \
 
397
            test -f $(distdir)/$$file \
 
398
            || cp -p $$d/$$file $(distdir)/$$file \
 
399
            || exit 1; \
 
400
          fi; \
 
401
        done
 
402
        $(MAKE) $(AM_MAKEFLAGS) \
 
403
          top_distdir="$(top_distdir)" distdir="$(distdir)" \
 
404
          dist-hook
 
405
check-am: all-am
 
406
check: check-am
 
407
all-am: Makefile
 
408
installdirs:
 
409
install: install-am
 
410
install-exec: install-exec-am
 
411
install-data: install-data-am
 
412
uninstall: uninstall-am
 
413
 
 
414
install-am: all-am
 
415
        @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
 
416
 
 
417
installcheck: installcheck-am
 
418
install-strip:
 
419
        $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
 
420
          install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
 
421
          `test -z '$(STRIP)' || \
 
422
            echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
 
423
mostlyclean-generic:
 
424
 
 
425
clean-generic:
 
426
 
 
427
distclean-generic:
 
428
        -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
 
429
 
 
430
maintainer-clean-generic:
 
431
        @echo "This command is intended for maintainers to use"
 
432
        @echo "it deletes files that may require special tools to rebuild."
 
433
clean: clean-am
 
434
 
 
435
clean-am: clean-generic clean-local mostlyclean-am
 
436
 
 
437
distclean: distclean-am
 
438
        -rm -f Makefile
 
439
distclean-am: clean-am distclean-generic distclean-local
 
440
 
 
441
dvi: dvi-am
 
442
 
 
443
dvi-am:
 
444
 
 
445
html: html-am
 
446
 
 
447
info: info-am
 
448
 
 
449
info-am:
 
450
 
 
451
install-data-am: install-data-local
 
452
 
 
453
install-dvi: install-dvi-am
 
454
 
 
455
install-exec-am:
 
456
 
 
457
install-html: install-html-am
 
458
 
 
459
install-info: install-info-am
 
460
 
 
461
install-man:
 
462
 
 
463
install-pdf: install-pdf-am
 
464
 
 
465
install-ps: install-ps-am
 
466
 
 
467
installcheck-am:
 
468
 
 
469
maintainer-clean: maintainer-clean-am
 
470
        -rm -f Makefile
 
471
maintainer-clean-am: distclean-am maintainer-clean-generic \
 
472
        maintainer-clean-local
 
473
 
 
474
mostlyclean: mostlyclean-am
 
475
 
 
476
mostlyclean-am: mostlyclean-generic mostlyclean-local
 
477
 
 
478
pdf: pdf-am
 
479
 
 
480
pdf-am:
 
481
 
 
482
ps: ps-am
 
483
 
 
484
ps-am:
 
485
 
 
486
uninstall-am: uninstall-local
 
487
 
 
488
.MAKE: install-am install-strip
 
489
 
 
490
.PHONY: all all-am check check-am clean clean-generic clean-local \
 
491
        dist-hook distclean distclean-generic distclean-local distdir \
 
492
        dvi dvi-am html html-am info info-am install install-am \
 
493
        install-data install-data-am install-data-local install-dvi \
 
494
        install-dvi-am install-exec install-exec-am install-html \
 
495
        install-html-am install-info install-info-am install-man \
 
496
        install-pdf install-pdf-am install-ps install-ps-am \
 
497
        install-strip installcheck installcheck-am installdirs \
 
498
        maintainer-clean maintainer-clean-generic \
 
499
        maintainer-clean-local mostlyclean mostlyclean-generic \
 
500
        mostlyclean-local pdf pdf-am ps ps-am uninstall uninstall-am \
 
501
        uninstall-local
 
502
 
 
503
 
 
504
DOC_H_FILE ?=
 
505
 
 
506
DOC_H_DOCS ?=
 
507
 
 
508
$(DOC_H_FILE): $(DOC_H_DOCS);
 
509
        @rm -f $@.tmp; touch $@.tmp;
 
510
        echo 'const gchar* documentation_credits[] = {' >> $@.tmp
 
511
        list='$(DOC_H_DOCS)'; for doc in $$list; do \
 
512
          xmlpath="`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`:$(srcdir)/`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`"; \
 
513
          if ! test -f "$$doc"; then doc="$(srcdir)/$$doc"; fi; \
 
514
          xsltproc --path "$$xmlpath" $(_credits) $$doc; \
 
515
        done | sort | uniq \
 
516
          | 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}}' \
 
517
          | sed -e 's/\\/\\\\/' -e 's/"/\\"/' -e 's/\(.*\)/\t"\1",/' >> $@.tmp
 
518
        echo '  NULL' >> $@.tmp
 
519
        echo '};' >> $@.tmp
 
520
        echo >> $@.tmp
 
521
        list='$(DOC_H_DOCS)'; for doc in $$list; do \
 
522
          xmlpath="`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`:$(srcdir)/`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`"; \
 
523
          if ! test -f "$$doc"; then doc="$(srcdir)/$$doc"; fi; \
 
524
          docid=`echo "$$doc" | sed -e 's/.*\/\([^/]*\)\.xml/\1/' \
 
525
            | sed -e 's/[^a-zA-Z_]/_/g' | tr 'a-z' 'A-Z'`; \
 
526
          echo $$xmlpath; \
 
527
          ids=`xsltproc --xinclude --path "$$xmlpath" $(_ids) $$doc`; \
 
528
          for id in $$ids; do \
 
529
            echo '#define HELP_'`echo $$docid`'_'`echo $$id \
 
530
              | sed -e 's/[^a-zA-Z_]/_/g' | tr 'a-z' 'A-Z'`' "'$$id'"' >> $@.tmp; \
 
531
          done; \
 
532
          echo >> $@.tmp; \
 
533
        done;
 
534
        cp $@.tmp $@ && rm -f $@.tmp
 
535
 
 
536
dist-check-gdu:
 
537
@HAVE_GNOME_DOC_UTILS_FALSE@    @echo "*** GNOME Doc Utils must be installed in order to make dist"
 
538
@HAVE_GNOME_DOC_UTILS_FALSE@    @false
 
539
 
 
540
.PHONY: dist-doc-header
 
541
dist-doc-header: $(DOC_H_FILE)
 
542
        @if test -f "$(DOC_H_FILE)"; then d=; else d="$(srcdir)/"; fi; \
 
543
        echo "$(INSTALL_DATA) $${d}$(DOC_H_FILE) $(distdir)/$(DOC_H_FILE)"; \
 
544
        $(INSTALL_DATA) "$${d}$(DOC_H_FILE)" "$(distdir)/$(DOC_H_FILE)";
 
545
 
 
546
doc-dist-hook: dist-check-gdu $(if $(DOC_H_FILE),dist-doc-header)
 
547
 
 
548
.PHONY: clean-doc-header
 
549
clean-local: $(_clean_doc_header)
 
550
distclean-local: $(_clean_doc_header)
 
551
mostlyclean-local: $(_clean_doc_header)
 
552
maintainer-clean-local: $(_clean_doc_header)
 
553
clean-doc-header:
 
554
        rm -f $(DOC_H_FILE)
 
555
 
 
556
all: $(DOC_H_FILE)
 
557
 
 
558
################################################################################
 
559
 
 
560
DOC_MODULE ?=
 
561
 
 
562
DOC_ENTITIES ?=
 
563
 
 
564
DOC_INCLUDES ?=
 
565
 
 
566
DOC_FIGURES ?=
 
567
 
 
568
DOC_FORMATS ?= docbook
 
569
 
 
570
DOC_LINGUAS ?=
 
571
 
 
572
################################################################################
 
573
 
 
574
_xml2po ?= `which xml2po`
 
575
 
 
576
_db2html ?= `$(PKG_CONFIG) --variable db2html gnome-doc-utils`
 
577
_db2omf  ?= `$(PKG_CONFIG) --variable db2omf gnome-doc-utils`
 
578
_chunks  ?= `$(PKG_CONFIG) --variable xmldir gnome-doc-utils`/gnome/xslt/docbook/utils/chunks.xsl
 
579
_credits ?= `$(PKG_CONFIG) --variable xmldir gnome-doc-utils`/gnome/xslt/docbook/utils/credits.xsl
 
580
_ids ?= `$(PKG_CONFIG) --variable xmldir gnome-doc-utils`/gnome/xslt/docbook/utils/ids.xsl
 
581
@ENABLE_SK_TRUE@_skpkgdatadir ?= `scrollkeeper-config --pkgdatadir`
 
582
@ENABLE_SK_TRUE@_sklocalstatedir ?= `scrollkeeper-config --pkglocalstatedir`
 
583
@ENABLE_SK_TRUE@_skcontentslist ?= $(_skpkgdatadir)/Templates/C/scrollkeeper_cl.xml
 
584
 
 
585
$(_DOC_OMF_DB) : $(_DOC_OMF_IN)
 
586
$(_DOC_OMF_DB) : $(DOC_MODULE)-%.omf : %/$(DOC_MODULE).xml
 
587
        @test "x$(_ENABLE_SK)" != "xtrue" -o -f "$(_skcontentslist)" || {       \
 
588
          echo "The file '$(_skcontentslist)' does not exist." >&2;             \
 
589
          echo "Please check your ScrollKeeper installation." >&2;              \
 
590
          exit 1; }
 
591
        xsltproc -o $@ $(call db2omf_args,$@,$<,'docbook') || { rm -f "$@"; exit 1; }
 
592
 
 
593
$(_DOC_OMF_HTML) : $(_DOC_OMF_IN)
 
594
$(_DOC_OMF_HTML) : $(DOC_MODULE)-html-%.omf : %/$(DOC_MODULE).xml
 
595
@ENABLE_SK_TRUE@        @test "x$(_ENABLE_SK)" != "xtrue" -o -f "$(_skcontentslist)" || {       \
 
596
@ENABLE_SK_TRUE@          echo "The file '$(_skcontentslist)' does not exist" >&2;              \
 
597
@ENABLE_SK_TRUE@          echo "Please check your ScrollKeeper installation." >&2;              \
 
598
@ENABLE_SK_TRUE@          exit 1; }
 
599
        xsltproc -o $@ $(call db2omf_args,$@,$<,'xhtml') || { rm -f "$@"; exit 1; }
 
600
 
 
601
.PHONY: omf
 
602
omf: $(_DOC_OMF_ALL)
 
603
 
 
604
.PHONY: po
 
605
po: $(_DOC_POFILES)
 
606
 
 
607
$(_DOC_POFILES):
 
608
        @if ! test -d $(dir $@); then \
 
609
          echo "mkdir $(dir $@)"; \
 
610
          mkdir "$(dir $@)"; \
 
611
        fi
 
612
        @if test ! -f $@ -a -f $(srcdir)/$@; then \
 
613
          echo "cp $(srcdir)/$@ $@"; \
 
614
          cp "$(srcdir)/$@" "$@"; \
 
615
        fi;
 
616
        @docs=; \
 
617
        list='$(_DOC_C_DOCS_NOENT)'; for doc in $$list; do \
 
618
          docs="$$docs $(_DOC_ABS_SRCDIR)/$$doc"; \
 
619
        done; \
 
620
        if ! test -f $@; then \
 
621
          echo "(cd $(dir $@) && \
 
622
            $(_xml2po) -e $$docs > $(notdir $@).tmp && \
 
623
            cp $(notdir $@).tmp $(notdir $@) && rm -f $(notdir $@).tmp)"; \
 
624
          (cd $(dir $@) && \
 
625
            $(_xml2po) -e $$docs > $(notdir $@).tmp && \
 
626
            cp $(notdir $@).tmp $(notdir $@) && rm -f $(notdir $@).tmp); \
 
627
        else \
 
628
          echo "(cd $(dir $@) && \
 
629
            $(_xml2po) -e -u $(notdir $@) $$docs)"; \
 
630
          (cd $(dir $@) && \
 
631
            $(_xml2po) -e -u $(notdir $@) $$docs); \
 
632
        fi
 
633
 
 
634
# FIXME: fix the dependancy
 
635
# FIXME: hook xml2po up
 
636
$(_DOC_LC_DOCS) : $(_DOC_POFILES)
 
637
$(_DOC_LC_DOCS) : $(_DOC_C_DOCS)
 
638
        if ! test -d $(dir $@); then mkdir $(dir $@); fi
 
639
        if [ -f "C/$(notdir $@)" ]; then d="../"; else d="$(_DOC_ABS_SRCDIR)/"; fi; \
 
640
        (cd $(dir $@) && \
 
641
          $(_xml2po) -e -p \
 
642
            "$${d}$(dir $@)$(patsubst %/$(notdir $@),%,$@).po" \
 
643
            "$${d}C/$(notdir $@)" > $(notdir $@).tmp && \
 
644
            cp $(notdir $@).tmp $(notdir $@) && rm -f $(notdir $@).tmp)
 
645
.PHONY: pot
 
646
pot: $(_DOC_POT)
 
647
$(_DOC_POT): $(_DOC_C_DOCS_NOENT)
 
648
        $(_xml2po) -e -o $@ $^
 
649
 
 
650
$(_DOC_HTML_TOPS): $(_DOC_C_DOCS) $(_DOC_LC_DOCS)
 
651
        xsltproc -o $@ --xinclude --param db.chunk.chunk_top "false()" --stringparam db.chunk.basename "$(DOC_MODULE)" --stringparam db.chunk.extension ".xhtml" $(_db2html) $(patsubst %.xhtml,%.xml,$@)
 
652
 
 
653
################################################################################
 
654
 
 
655
all:                                                    \
 
656
        $(_DOC_C_DOCS)          $(_DOC_LC_DOCS)         \
 
657
        $(_DOC_OMF_ALL)         $(_DOC_DSK_ALL)         \
 
658
        $(_DOC_HTML_ALL)        $(_DOC_POFILES)
 
659
 
 
660
.PHONY: clean-doc-omf clean-doc-dsk clean-doc-lc clean-doc-dir
 
661
 
 
662
clean-doc-omf: ; rm -f $(_DOC_OMF_DB) $(_DOC_OMF_HTML)
 
663
clean-doc-dsk: ; rm -f $(_DOC_DSK_DB) $(_DOC_DSK_HTML)
 
664
clean-doc-lc:
 
665
        rm -f $(_DOC_LC_DOCS)
 
666
        @list='$(_DOC_POFILES)'; for po in $$list; do \
 
667
          if ! test "$$po" -ef "$(srcdir)/$$po"; then \
 
668
            echo "rm -f $$po"; \
 
669
            rm -f "$$po"; \
 
670
          fi; \
 
671
        done
 
672
        @for lc in C $(_DOC_REAL_LINGUAS); do \
 
673
          if test -f "$$lc/.xml2po.mo"; then \
 
674
            echo "rm -f $$lc/.xml2po.mo"; \
 
675
            rm -f "$$lc/.xml2po.mo"; \
 
676
          fi; \
 
677
        done
 
678
clean-doc-dir:
 
679
        @for lc in C $(_DOC_REAL_LINGUAS); do \
 
680
          for dir in `find $$lc -depth -type d`; do \
 
681
            if ! test $$dir -ef $(srcdir)/$$dir; then \
 
682
              echo "rmdir $$dir"; \
 
683
              rmdir "$$dir"; \
 
684
           fi; \
 
685
          done; \
 
686
        done
 
687
 
 
688
clean-local:                                            \
 
689
        $(_clean_omf)           $(_clean_dsk)           \
 
690
        $(_clean_lc)            $(_clean_dir)
 
691
distclean-local:                                        \
 
692
        $(_clean_omf)           $(_clean_dsk)           \
 
693
        $(_clean_lc)            $(_clean_dir)
 
694
mostlyclean-local:                                      \
 
695
        $(_clean_omf)           $(_clean_dsk)           \
 
696
        $(_clean_lc)            $(_clean_dir)
 
697
maintainer-clean-local:                                 \
 
698
        $(_clean_omf)           $(_clean_dsk)           \
 
699
        $(_clean_lc)            $(_clean_dir)
 
700
 
 
701
.PHONY: dist-doc-docs dist-doc-figs dist-doc-omf dist-doc-dsk
 
702
doc-dist-hook:                                  \
 
703
        $(if $(DOC_MODULE),dist-doc-docs)       \
 
704
        $(if $(_DOC_C_FIGURES),dist-doc-figs)   \
 
705
        $(if $(_DOC_OMF_IN),dist-doc-omf)
 
706
#       $(if $(_DOC_DSK_IN),dist-doc-dsk)
 
707
 
 
708
dist-doc-docs: $(_DOC_C_DOCS) $(_DOC_LC_DOCS) $(_DOC_POFILES)
 
709
        @for lc in C $(_DOC_REAL_LINGUAS); do \
 
710
          echo " $(mkinstalldirs) $(distdir)/$$lc"; \
 
711
          $(mkinstalldirs) "$(distdir)/$$lc"; \
 
712
        done
 
713
        @list='$(_DOC_C_DOCS) $(_DOC_LC_DOCS) $(_DOC_POFILES)'; \
 
714
        for doc in $$list; do \
 
715
          if test -f "$$doc"; then d=; else d="$(srcdir)/"; fi; \
 
716
            docdir=`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`; \
 
717
            if ! test -d "$(distdir)/$$docdir"; then \
 
718
              echo "$(mkinstalldirs) $(distdir)/$$docdir"; \
 
719
              $(mkinstalldirs) "$(distdir)/$$docdir"; \
 
720
            fi; \
 
721
          echo "$(INSTALL_DATA) $$d$$doc $(distdir)/$$doc"; \
 
722
          $(INSTALL_DATA) "$$d$$doc" "$(distdir)/$$doc"; \
 
723
        done
 
724
 
 
725
dist-doc-figs: $(_DOC_SRC_FIGURES)
 
726
        @list='$(_DOC_C_FIGURES) $(_DOC_LC_FIGURES)'; \
 
727
        for fig in $$list; do \
 
728
          if test -f "$$fig"; then d=; else d="$(srcdir)/"; fi; \
 
729
          if test -f "$$d$$fig"; then \
 
730
            figdir=`echo $$fig | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`; \
 
731
            if ! test -d "$(distdir)/$$figdir"; then \
 
732
              echo "$(mkinstalldirs) $(distdir)/$$figdir"; \
 
733
              $(mkinstalldirs) "$(distdir)/$$figdir"; \
 
734
            fi; \
 
735
            echo "$(INSTALL_DATA) $$d$$fig $(distdir)/$$fig"; \
 
736
            $(INSTALL_DATA) "$$d$$fig" "$(distdir)/$$fig"; \
 
737
          fi; \
 
738
        done;
 
739
 
 
740
dist-doc-omf:
 
741
        @if test -f "$(_DOC_OMF_IN)"; then d=; else d="$(srcdir)/"; fi; \
 
742
        echo "$(INSTALL_DATA) $$d$(_DOC_OMF_IN) $(distdir)/$(notdir $(_DOC_OMF_IN))"; \
 
743
        $(INSTALL_DATA) "$$d$(_DOC_OMF_IN)" "$(distdir)/$(notdir $(_DOC_OMF_IN))"
 
744
 
 
745
dist-doc-dsk:
 
746
        @if test -f "$(_DOC_DSK_IN)"; then d=; else d="$(srcdir)/"; fi; \
 
747
        echo "$(INSTALL_DATA) $$d$(_DOC_DSK_IN) $(distdir)/$(notdir $(_DOC_DSK_IN))"; \
 
748
        $(INSTALL_DATA) "$$d$(_DOC_DSK_IN)" "$(distdir)/$(notdir $(_DOC_DSK_IN))"
 
749
 
 
750
.PHONY: check-doc-docs check-doc-omf
 
751
check:                                                  \
 
752
        $(if $(DOC_MODULE),check-doc-docs)              \
 
753
        $(if $(_DOC_OMF_IN),check-doc-omf)
 
754
 
 
755
check-doc-docs: $(_DOC_C_DOCS) $(_DOC_LC_DOCS)
 
756
        @for lc in C $(_DOC_REAL_LINGUAS); do \
 
757
          if test -f "$$lc"; \
 
758
            then d=; \
 
759
            xmlpath="$$lc"; \
 
760
          else \
 
761
            d="$(srcdir)/"; \
 
762
            xmlpath="$$lc:$(srcdir)/$$lc"; \
 
763
          fi; \
 
764
          echo "xmllint --noout --noent --path $$xmlpath --xinclude --postvalid $$d$$lc/$(DOC_MODULE).xml"; \
 
765
          xmllint --noout --noent --path "$$xmlpath" --xinclude --postvalid "$$d$$lc/$(DOC_MODULE).xml"; \
 
766
        done
 
767
 
 
768
check-doc-omf: $(_DOC_OMF_ALL)
 
769
        @list='$(_DOC_OMF_ALL)'; for omf in $$list; do \
 
770
          echo "xmllint --noout --dtdvalid 'http://scrollkeeper.sourceforge.net/dtds/scrollkeeper-omf-1.0/scrollkeeper-omf.dtd' $$omf"; \
 
771
          xmllint --noout --dtdvalid 'http://scrollkeeper.sourceforge.net/dtds/scrollkeeper-omf-1.0/scrollkeeper-omf.dtd' $$omf; \
 
772
        done
 
773
 
 
774
.PHONY: install-doc-docs install-doc-html install-doc-figs install-doc-omf install-doc-dsk
 
775
install-data-local:                                     \
 
776
        $(if $(DOC_MODULE),install-doc-docs)            \
 
777
        $(if $(_DOC_HTML_ALL),install-doc-html)         \
 
778
        $(if $(_DOC_C_FIGURES),install-doc-figs)        \
 
779
        $(if $(_DOC_OMF_IN),install-doc-omf)
 
780
#       $(if $(_DOC_DSK_IN),install-doc-dsk)
 
781
 
 
782
install-doc-docs:
 
783
        @for lc in C $(_DOC_REAL_LINGUAS); do \
 
784
          echo "$(mkinstalldirs) $(DESTDIR)$(HELP_DIR)/$(DOC_MODULE)/$$lc"; \
 
785
          $(mkinstalldirs) $(DESTDIR)$(HELP_DIR)/$(DOC_MODULE)/$$lc; \
 
786
        done
 
787
        @list='$(_DOC_C_DOCS) $(_DOC_LC_DOCS)'; for doc in $$list; do \
 
788
          if test -f "$$doc"; then d=; else d="$(srcdir)/"; fi; \
 
789
          docdir="$$lc/"`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`; \
 
790
          docdir="$(DESTDIR)$(HELP_DIR)/$(DOC_MODULE)/$$docdir"; \
 
791
          if ! test -d "$$docdir"; then \
 
792
            echo "$(mkinstalldirs) $$docdir"; \
 
793
            $(mkinstalldirs) "$$docdir"; \
 
794
          fi; \
 
795
          echo "$(INSTALL_DATA) $$d$$doc $(DESTDIR)$(HELP_DIR)/$(DOC_MODULE)/$$doc"; \
 
796
          $(INSTALL_DATA) $$d$$doc $(DESTDIR)$(HELP_DIR)/$(DOC_MODULE)/$$doc; \
 
797
        done
 
798
 
 
799
install-doc-figs:
 
800
        @list='$(patsubst C/%,%,$(_DOC_C_FIGURES))'; for fig in $$list; do \
 
801
          for lc in C $(_DOC_REAL_LINGUAS); do \
 
802
            if test -f "$$lc/$$fig"; then \
 
803
              figfile="$$lc/$$fig"; \
 
804
            elif test -f "$(srcdir)/$$lc/$$fig"; then \
 
805
              figfile="$(srcdir)/$$lc/$$fig"; \
 
806
            elif test -f "C/$$fig"; then \
 
807
              figfile="C/$$fig"; \
 
808
            else \
 
809
              figfile="$(srcdir)/C/$$fig"; \
 
810
            fi; \
 
811
            figdir="$$lc/"`echo $$fig | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`; \
 
812
            figdir="$(DESTDIR)$(HELP_DIR)/$(DOC_MODULE)/$$figdir"; \
 
813
            if ! test -d "$$figdir"; then \
 
814
              echo "$(mkinstalldirs) $$figdir"; \
 
815
              $(mkinstalldirs) "$$figdir"; \
 
816
            fi; \
 
817
            figbase=`echo $$fig | sed -e 's/^.*\///'`; \
 
818
            echo "$(INSTALL_DATA) $$figfile $$figdir$$figbase"; \
 
819
            $(INSTALL_DATA) "$$figfile" "$$figdir$$figbase"; \
 
820
          done; \
 
821
        done
 
822
 
 
823
install-doc-html:
 
824
        echo install-html
 
825
 
 
826
install-doc-omf:
 
827
        $(mkinstalldirs) $(DESTDIR)$(OMF_DIR)/$(DOC_MODULE)
 
828
        @list='$(_DOC_OMF_ALL)'; for omf in $$list; do \
 
829
          echo "$(INSTALL_DATA) $$omf $(DESTDIR)$(OMF_DIR)/$(DOC_MODULE)/$$omf"; \
 
830
          $(INSTALL_DATA) $$omf $(DESTDIR)$(OMF_DIR)/$(DOC_MODULE)/$$omf; \
 
831
        done
 
832
        @if test "x$(_ENABLE_SK)" = "xtrue"; then \
 
833
          echo "scrollkeeper-update -p $(DESTDIR)$(_sklocalstatedir) -o $(DESTDIR)$(OMF_DIR)/$(DOC_MODULE)"; \
 
834
          scrollkeeper-update -p "$(DESTDIR)$(_sklocalstatedir)" -o "$(DESTDIR)$(OMF_DIR)/$(DOC_MODULE)"; \
 
835
        fi;
 
836
 
 
837
install-doc-dsk:
 
838
        echo install-dsk
 
839
 
 
840
.PHONY: uninstall-doc-docs uninstall-doc-html uninstall-doc-figs uninstall-doc-omf uninstall-doc-dsk
 
841
uninstall-local:                                        \
 
842
        $(if $(DOC_MODULE),uninstall-doc-docs)          \
 
843
        $(if $(_DOC_HTML_ALL),uninstall-doc-html)       \
 
844
        $(if $(_DOC_C_FIGURES),uninstall-doc-figs)      \
 
845
        $(if $(_DOC_OMF_IN),uninstall-doc-omf)
 
846
#       $(if $(_DOC_DSK_IN),uninstall-doc-dsk)
 
847
 
 
848
uninstall-doc-docs:
 
849
        @list='$(_DOC_C_DOCS) $(_DOC_LC_DOCS)'; for doc in $$list; do \
 
850
          echo " rm -f $(DESTDIR)$(HELP_DIR)/$(DOC_MODULE)/$$doc"; \
 
851
          rm -f "$(DESTDIR)$(HELP_DIR)/$(DOC_MODULE)/$$doc"; \
 
852
        done
 
853
 
 
854
uninstall-doc-figs:
 
855
        @list='$(_DOC_C_FIGURES) $(_DOC_LC_FIGURES)'; for fig in $$list; do \
 
856
          echo "rm -f $(DESTDIR)$(HELP_DIR)/$(DOC_MODULE)/$$fig"; \
 
857
          rm -f "$(DESTDIR)$(HELP_DIR)/$(DOC_MODULE)/$$fig"; \
 
858
        done;
 
859
 
 
860
uninstall-doc-omf:
 
861
        @list='$(_DOC_OMF_ALL)'; for omf in $$list; do \
 
862
          if test "x$(_ENABLE_SK)" = "xtrue"; then \
 
863
            echo "scrollkeeper-uninstall -p $(_sklocalstatedir) $(DESTDIR)$(OMF_DIR)/$(DOC_MODULE)/$$omf"; \
 
864
            scrollkeeper-uninstall -p "$(_sklocalstatedir)" "$(DESTDIR)$(OMF_DIR)/$(DOC_MODULE)/$$omf"; \
 
865
          fi; \
 
866
          echo "rm -f $(DESTDIR)$(OMF_DIR)/$(DOC_MODULE)/$$omf"; \
 
867
          rm -f "$(DESTDIR)$(OMF_DIR)/$(DOC_MODULE)/$$omf"; \
 
868
        done
 
869
dist-hook: doc-dist-hook
 
870
# Tell versions [3.59,3.63) of GNU make to not export all variables.
 
871
# Otherwise a system limit (for SysV at least) may be exceeded.
 
872
.NOEXPORT: