~ubuntu-branches/ubuntu/lucid/sabayon/lucid

« back to all changes in this revision

Viewing changes to help/Makefile.in

  • Committer: Bazaar Package Importer
  • Author(s): Scott Balneaves
  • Date: 2009-12-28 16:58:21 UTC
  • mfrom: (1.1.16 upstream)
  • Revision ID: james.westby@ubuntu.com-20091228165821-38riqcxr41abmelj
Tags: 2.29.5~rc1-0ubuntu1
* New upstream release
  - Depend on Pessulus
  - Added manual
  - Fixed several crasher bugs
  - Added apply by group
  - Symlinks now saved in zipfile
* debian
  - Updated deps in control
  - removed sabayon.8, sabayon-apply.8, install.manpages (upstream man)

Show diffs side-by-side

added added

removed removed

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