~ubuntu-branches/debian/lenny/gsynaptics/lenny

« back to all changes in this revision

Viewing changes to help/Makefile.in

  • Committer: Bazaar Package Importer
  • Author(s): Michal Čihař
  • Date: 2008-06-18 11:24:03 UTC
  • mfrom: (3.1.3 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080618112403-ishc48mp2dkf2t40
Tags: 0.9.14-6
* Move fix for g_build_filename to separate patch.
* Add debian/README.source.
* Update to standards 3.8.0.

Show diffs side-by-side

added added

removed removed

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