~ubuntu-branches/ubuntu/feisty/gnome2-user-docs/feisty

« back to all changes in this revision

Viewing changes to gnome2-user-guide/Makefile.in

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Holbach
  • Date: 2006-02-21 10:04:03 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20060221100403-4nxwxg9fhoiglafw
Tags: 2.13.1.1-0ubuntu1
* New upstream release:
  - Added missing OMF files
* debian/rules:
  - added --disable-scrollkeeper.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am
 
1
# Makefile.in generated by automake 1.9.5 from Makefile.am.
 
2
# @configure_input@
2
3
 
3
 
# Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
 
4
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
 
5
# 2003, 2004, 2005  Free Software Foundation, Inc.
4
6
# This Makefile.in is free software; the Free Software Foundation
5
7
# gives unlimited permission to copy and/or distribute it,
6
8
# with or without modifications, as long as this notice is preserved.
10
12
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
11
13
# PARTICULAR PURPOSE.
12
14
 
13
 
 
14
 
SHELL = @SHELL@
15
 
 
 
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
################################################################################
16
40
srcdir = @srcdir@
17
41
top_srcdir = @top_srcdir@
18
42
VPATH = @srcdir@
19
 
prefix = @prefix@
20
 
exec_prefix = @exec_prefix@
21
 
 
22
 
bindir = @bindir@
23
 
sbindir = @sbindir@
24
 
libexecdir = @libexecdir@
25
 
datadir = @datadir@
26
 
sysconfdir = @sysconfdir@
27
 
sharedstatedir = @sharedstatedir@
28
 
localstatedir = @localstatedir@
29
 
libdir = @libdir@
30
 
infodir = @infodir@
31
 
mandir = @mandir@
32
 
includedir = @includedir@
33
 
oldincludedir = /usr/include
34
 
 
35
 
DESTDIR =
36
 
 
37
43
pkgdatadir = $(datadir)/@PACKAGE@
38
44
pkglibdir = $(libdir)/@PACKAGE@
39
45
pkgincludedir = $(includedir)/@PACKAGE@
40
 
 
41
46
top_builddir = ..
42
 
 
43
 
ACLOCAL = @ACLOCAL@
44
 
AUTOCONF = @AUTOCONF@
45
 
AUTOMAKE = @AUTOMAKE@
46
 
AUTOHEADER = @AUTOHEADER@
47
 
 
 
47
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
48
48
INSTALL = @INSTALL@
49
 
INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
50
 
INSTALL_DATA = @INSTALL_DATA@
51
 
INSTALL_SCRIPT = @INSTALL_SCRIPT@
52
 
transform = @program_transform_name@
53
 
 
 
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
54
NORMAL_INSTALL = :
55
55
PRE_INSTALL = :
56
56
POST_INSTALL = :
57
57
NORMAL_UNINSTALL = :
58
58
PRE_UNINSTALL = :
59
59
POST_UNINSTALL = :
60
 
host_alias = @host_alias@
61
 
host_triplet = @host@
62
 
CC = @CC@
63
 
HAVE_JW = @HAVE_JW@
64
 
HAVE_LIB = @HAVE_LIB@
65
 
JW = @JW@
66
 
LIB = @LIB@
67
 
LTLIB = @LTLIB@
 
60
DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
 
61
        $(top_srcdir)/gnome-doc-utils.make
 
62
subdir = gnome2-user-guide
 
63
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
 
64
am__aclocal_m4_deps = $(top_srcdir)/configure.in
 
65
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
 
66
        $(ACLOCAL_M4)
 
67
mkinstalldirs = $(install_sh) -d
 
68
CONFIG_CLEAN_FILES =
 
69
SOURCES =
 
70
DIST_SOURCES =
 
71
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
 
72
ACLOCAL = @ACLOCAL@
 
73
AMTAR = @AMTAR@
 
74
AUTOCONF = @AUTOCONF@
 
75
AUTOHEADER = @AUTOHEADER@
 
76
AUTOMAKE = @AUTOMAKE@
 
77
AWK = @AWK@
 
78
CYGPATH_W = @CYGPATH_W@
 
79
DEFS = @DEFS@
 
80
DOC_USER_FORMATS = @DOC_USER_FORMATS@
 
81
ECHO_C = @ECHO_C@
 
82
ECHO_N = @ECHO_N@
 
83
ECHO_T = @ECHO_T@
 
84
ENABLE_SK_FALSE = @ENABLE_SK_FALSE@
 
85
ENABLE_SK_TRUE = @ENABLE_SK_TRUE@
 
86
GDU_MODULE_VERSION_CHECK_CFLAGS = @GDU_MODULE_VERSION_CHECK_CFLAGS@
 
87
GDU_MODULE_VERSION_CHECK_LIBS = @GDU_MODULE_VERSION_CHECK_LIBS@
 
88
GNOME2_USER_DOCS_CFLAGS = @GNOME2_USER_DOCS_CFLAGS@
 
89
GNOME2_USER_DOCS_LIBS = @GNOME2_USER_DOCS_LIBS@
 
90
HELP_DIR = @HELP_DIR@
 
91
INSTALL_DATA = @INSTALL_DATA@
 
92
INSTALL_PROGRAM = @INSTALL_PROGRAM@
 
93
INSTALL_SCRIPT = @INSTALL_SCRIPT@
 
94
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
 
95
LIBOBJS = @LIBOBJS@
 
96
LIBS = @LIBS@
 
97
LTLIBOBJS = @LTLIBOBJS@
68
98
MAINT = @MAINT@
 
99
MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
 
100
MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
69
101
MAKEINFO = @MAKEINFO@
 
102
OMF_DIR = @OMF_DIR@
70
103
PACKAGE = @PACKAGE@
71
 
SCROLLKEEPER_CONFIG = @SCROLLKEEPER_CONFIG@
72
 
SCROLLKEEPER_REQUIRED = @SCROLLKEEPER_REQUIRED@
 
104
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
 
105
PACKAGE_NAME = @PACKAGE_NAME@
 
106
PACKAGE_STRING = @PACKAGE_STRING@
 
107
PACKAGE_TARNAME = @PACKAGE_TARNAME@
 
108
PACKAGE_VERSION = @PACKAGE_VERSION@
 
109
PATH_SEPARATOR = @PATH_SEPARATOR@
 
110
PKG_CONFIG = @PKG_CONFIG@
 
111
SET_MAKE = @SET_MAKE@
 
112
SHELL = @SHELL@
 
113
STRIP = @STRIP@
73
114
VERSION = @VERSION@
74
 
 
75
 
SUBDIRS = C
76
 
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
77
 
CONFIG_CLEAN_FILES = 
78
 
DIST_COMMON =  Makefile.am Makefile.in
79
 
 
80
 
 
81
 
DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
82
 
 
83
 
TAR = tar
84
 
GZIP_ENV = --best
85
 
all: all-redirect
 
115
ac_ct_STRIP = @ac_ct_STRIP@
 
116
am__leading_dot = @am__leading_dot@
 
117
am__tar = @am__tar@
 
118
am__untar = @am__untar@
 
119
bindir = @bindir@
 
120
build_alias = @build_alias@
 
121
datadir = @datadir@
 
122
exec_prefix = @exec_prefix@
 
123
host_alias = @host_alias@
 
124
includedir = @includedir@
 
125
infodir = @infodir@
 
126
install_sh = @install_sh@
 
127
libdir = @libdir@
 
128
libexecdir = @libexecdir@
 
129
localstatedir = @localstatedir@
 
130
mandir = @mandir@
 
131
mkdir_p = @mkdir_p@
 
132
oldincludedir = @oldincludedir@
 
133
prefix = @prefix@
 
134
program_transform_name = @program_transform_name@
 
135
sbindir = @sbindir@
 
136
sharedstatedir = @sharedstatedir@
 
137
sysconfdir = @sysconfdir@
 
138
target_alias = @target_alias@
 
139
_clean_doc_header = $(if $(DOC_H_FILE),clean-doc-header)
 
140
_DOC_REAL_FORMATS = $(if $(DOC_USER_FORMATS),$(DOC_USER_FORMATS),$(DOC_FORMATS))
 
141
 
 
142
################################################################################
 
143
rngdoc_args = \
 
144
        --stringparam rngdoc.id                                                 \
 
145
        $(shell echo $(basename $(notdir $(1))) | sed -e 's/[^A-Za-z0-9_-]/_/g')\
 
146
        $(_rngdoc) $(filter %/$(basename $(notdir $(1))).rng,$(_RNGDOC_RNGS))
 
147
 
 
148
_RNGDOC_RNGS = $(sort $(patsubst ./%, %, $(foreach dir,$(RNGDOC_DIRS),          \
 
149
        $(wildcard $(dir)/*.rng) $(wildcard $(srcdir)/$(dir)/*.rng))))
 
150
 
 
151
_RNGDOC_C_DOCS = $(foreach rng,$(_RNGDOC_RNGS), C/$(basename $(notdir $(rng))).xml)
 
152
 
 
153
################################################################################
 
154
 
 
155
# FIXME: _XSLDOC_XSLS is getting dupes with relative/absolute in some
 
156
# cases.  Right now, I'm just taking the first, but that's just a bad
 
157
# work-around.  Fix the real problem.
 
158
xsldoc_args = \
 
159
        --stringparam xsldoc.id                                                 \
 
160
        $(shell echo $(basename $(notdir $(1))) | sed -e 's/[^A-Za-z0-9_-]/_/g')\
 
161
        $(_xsldoc)                                                              \
 
162
        $(word 1,$(filter %/$(basename $(notdir $(1))).xsl,$(_XSLDOC_XSLS)))
 
163
 
 
164
_XSLDOC_XSLS = $(sort $(patsubst ./%, %, $(foreach dir,$(XSLDOC_DIRS),          \
 
165
        $(wildcard $(dir)/*.xsl) $(wildcard $(srcdir)/$(dir)/*.xsl))))
 
166
 
 
167
_XSLDOC_C_DOCS = $(foreach xsl,$(_XSLDOC_XSLS), C/$(basename $(notdir $(xsl))).xml)
 
168
 
 
169
################################################################################
 
170
db2omf_args = \
 
171
        --stringparam db2omf.basename $(DOC_MODULE)                             \
 
172
        --stringparam db2omf.format $(3)                                        \
 
173
        --stringparam db2omf.dtd                                                \
 
174
        $(shell xmllint --format $(2) | grep -h PUBLIC | head -n 1              \
 
175
                | sed -e 's/.*PUBLIC \(\"[^\"]*\"\).*/\1/')                     \
 
176
        --stringparam db2omf.lang $(notdir $(patsubst %/$(notdir $(2)),%,$(2))) \
 
177
        --stringparam db2omf.omf_dir "$(OMF_DIR)"                               \
 
178
        --stringparam db2omf.help_dir "$(HELP_DIR)"                             \
 
179
        --stringparam db2omf.omf_in "`pwd`/$(_DOC_OMF_IN)"                      \
 
180
        $(_db2omf) $(2)
 
181
 
 
182
_DOC_OMF_IN = $(if $(DOC_MODULE),$(wildcard $(srcdir)/$(DOC_MODULE).omf.in))
 
183
_DOC_OMF_DB = $(if $(_DOC_OMF_IN),                                              \
 
184
        $(foreach lc,C $(DOC_LINGUAS),$(DOC_MODULE)-$(lc).omf))
 
185
 
 
186
_DOC_OMF_HTML = $(if $(_DOC_OMF_IN),                                            \
 
187
        $(foreach lc,C $(DOC_LINGUAS),$(DOC_MODULE)-html-$(lc).omf))
 
188
 
 
189
 
 
190
# FIXME
 
191
_DOC_OMF_ALL = \
 
192
        $(if $(findstring docbook,$(_DOC_REAL_FORMATS)),$(_DOC_OMF_DB))         \
 
193
        $(if $(findstring html,$(_DOC_REAL_FORMATS)),$(_DOC_OMF_HTML))
 
194
 
 
195
 
 
196
################################################################################
 
197
_DOC_DSK_IN = $(if $(DOC_MODULE),$(wildcard $(srcdir)/$(DOC_MODULE).desktop.in))
 
198
_DOC_DSK_DB = $(if $(_DOC_DSK_IN),                                              \
 
199
        $(foreach lc,C $(DOC_LINGUAS),$(DOC_MODULE).db.$(lc).desktop))
 
200
 
 
201
_DOC_DSK_HTML = $(if $(_DOC_DSK_IN),                                            \
 
202
        $(foreach lc,C $(DOC_LINGUAS),$(DOC_MODULE).html.$(lc).desktop))
 
203
 
 
204
 
 
205
# FIXME
 
206
_DOC_DSK_ALL = \
 
207
        $(if $(findstring docbook,$(_DOC_REAL_FORMATS)),$(_DOC_DSK_DB))         \
 
208
        $(if $(findstring html,$(_DOC_REAL_FORMATS)),$(_DOC_DSK_HTML))
 
209
 
 
210
 
 
211
################################################################################
 
212
_CVSIGNORE_TOP = $(if $(DOC_MODULE), .cvsignore)
 
213
_CVSIGNORE_C = $(if $(DOC_MODULE), C/.cvsignore)
 
214
_CVSIGNORE_LC = $(if $(DOC_MODULE),$(foreach lc,$(DOC_LINGUAS),$(lc)/.cvsignore))
 
215
_CVSIGNORE_TOP_FILES = $(_DOC_OMF_ALL) $(_DOC_DSK_ALL)
 
216
_CVSIGNORE_C_FILES = $(_RNGDOC_C_DOCS) $(_XSLDOC_C_DOCS)
 
217
_CVSIGNORE_LC_FILES = $(_DOC_LC_DOCS)
 
218
 
 
219
################################################################################
 
220
_DOC_C_MODULE = $(if $(DOC_MODULE),C/$(DOC_MODULE).xml)
 
221
_DOC_C_ENTITIES = $(foreach ent,$(DOC_ENTITIES),C/$(ent))
 
222
_DOC_C_INCLUDES = $(foreach inc,$(DOC_INCLUDES),C/$(inc))
 
223
_DOC_C_DOCS = \
 
224
        $(_DOC_C_ENTITIES)      $(_DOC_C_INCLUDES)                      \
 
225
        $(_RNGDOC_C_DOCS)       $(_XSLDOC_C_DOCS)                       \
 
226
        $(_DOC_C_MODULE)
 
227
 
 
228
_DOC_C_DOCS_NOENT = \
 
229
        $(_DOC_C_MODULE)        $(_DOC_C_INCLUDES)                      \
 
230
        $(_RNGDOC_C_DOCS)       $(_XSLDOC_C_DOCS)
 
231
 
 
232
_DOC_C_FIGURES = $(if $(DOC_FIGURES),                                   \
 
233
        $(foreach fig,$(DOC_FIGURES),C/$(fig)),                         \
 
234
        $(patsubst $(srcdir)/%,%,$(wildcard $(srcdir)/C/figures/*.png)))
 
235
 
 
236
 
 
237
# FIXME: probably have to shell escape to determine the file names
 
238
_DOC_C_HTML = $(shell xsltproc --xinclude                               \
 
239
        --stringparam db.chunk.basename "$(DOC_MODULE)"                 \
 
240
        $(_chunks) "C/$(DOC_MODULE).xml")
 
241
 
 
242
 
 
243
###############################################################################
 
244
_DOC_POFILES = $(if $(DOC_MODULE),                                      \
 
245
        $(foreach lc,$(DOC_LINGUAS),$(lc)/$(lc).po))
 
246
 
 
247
_DOC_LC_MODULES = $(if $(DOC_MODULE),                                   \
 
248
        $(foreach lc,$(DOC_LINGUAS),$(lc)/$(DOC_MODULE).xml))
 
249
 
 
250
_DOC_LC_INCLUDES = \
 
251
        $(foreach lc,$(DOC_LINGUAS),$(foreach inc,$(_DOC_C_INCLUDES),   \
 
252
                $(lc)/$(notdir $(inc)) ))
 
253
 
 
254
_RNGDOC_LC_DOCS = \
 
255
        $(foreach lc,$(DOC_LINGUAS),$(foreach doc,$(_RNGDOC_C_DOCS),    \
 
256
                $(lc)/$(notdir $(doc)) ))
 
257
 
 
258
_XSLDOC_LC_DOCS = \
 
259
        $(foreach lc,$(DOC_LINGUAS),$(foreach doc,$(_XSLDOC_C_DOCS),    \
 
260
                $(lc)/$(notdir $(doc)) ))
 
261
 
 
262
 
 
263
# FIXME: probably have to shell escape to determine the file names
 
264
_DOC_LC_HTML = \
 
265
        $(foreach lc,$(DOC_LINGUAS),$(foreach doc,$(_DOC_C_HTML),       \
 
266
                $(lc)/$(notdir $(doc)) ))
 
267
 
 
268
_DOC_LC_DOCS = \
 
269
        $(_DOC_LC_MODULES)      $(_DOC_LC_INCLUDES)                     \
 
270
        $(_RNGDOC_LC_DOCS)      $(_XSLDOC_LC_DOCS)                      \
 
271
        $(if $(findstring html,$(_DOC_REAL_FORMATS)),$(_DOC_LC_HTML))
 
272
 
 
273
_DOC_LC_FIGURES = $(foreach lc,$(DOC_LINGUAS),                          \
 
274
        $(patsubst C/%,$(lc)/%,$(_DOC_C_FIGURES)) )
 
275
 
 
276
_DOC_SRC_FIGURES = \
 
277
        $(foreach fig,$(_DOC_C_FIGURES), $(foreach lc,C $(DOC_LINGUAS), \
 
278
                $(wildcard $(srcdir)/$(lc)/$(patsubst C/%,%,$(fig))) ))
 
279
 
 
280
_DOC_POT = $(if $(DOC_MODULE),$(DOC_MODULE).pot)
 
281
 
 
282
################################################################################
 
283
_DOC_HTML_ALL = $(if $(findstring html,$(_DOC_REAL_FORMATS)), \
 
284
        $(_DOC_C_HTML) $(_DOC_LC_HTML))
 
285
 
 
286
_DOC_HTML_TOPS = $(foreach lc,C $(DOC_LINGUAS),$(lc)/$(DOC_MODULE).html)
 
287
@ENABLE_SK_FALSE@_ENABLE_SK = false
 
288
 
 
289
################################################################################
 
290
@ENABLE_SK_TRUE@_ENABLE_SK = true
 
291
_clean_rngdoc = $(if $(RNGDOC_DIRS),clean-doc-rngdoc)
 
292
_clean_xsldoc = $(if $(XSLDOC_DIRS),clean-doc-xsldoc)
 
293
_clean_omf = $(if $(_DOC_OMF_IN),clean-doc-omf)
 
294
_clean_dsk = $(if $(_DOC_DSK_IN),clean-doc-dsk)
 
295
_clean_lc = $(if $(DOC_LINGUAS),clean-doc-lc)
 
296
_clean_dir = $(if $(DOC_MODULE),clean-doc-dir)
 
297
DOC_MODULE = user-guide
 
298
DOC_ENTITIES = legal.xml
 
299
DOC_INCLUDES = \
 
300
        gosbasic.xml            \
 
301
        goscustdesk.xml         \
 
302
        goseditmainmenu.xml     \
 
303
        gosnautilus.xml         \
 
304
        gosoverview.xml         \
 
305
        gospanel.xml            \
 
306
        gosstartsession.xml     \
 
307
        gostools.xml            \
 
308
        glossary.xml
 
309
 
 
310
DOC_LINGUAS = 
 
311
all: all-am
 
312
 
86
313
.SUFFIXES:
87
 
$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) 
88
 
        cd $(top_srcdir) && $(AUTOMAKE) --gnu --include-deps gnome2-user-guide/Makefile
89
 
 
90
 
Makefile: $(srcdir)/Makefile.in  $(top_builddir)/config.status
91
 
        cd $(top_builddir) \
92
 
          && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
93
 
 
94
 
 
95
 
# This directory's subdirectories are mostly independent; you can cd
96
 
# into them and run `make' without going through this Makefile.
97
 
# To change the values of `make' variables: instead of editing Makefiles,
98
 
# (1) if the variable is set in `config.status', edit `config.status'
99
 
#     (which will cause the Makefiles to be regenerated when you run `make');
100
 
# (2) otherwise, pass the desired values on the `make' command line.
101
 
 
102
 
@SET_MAKE@
103
 
 
104
 
all-recursive install-data-recursive install-exec-recursive \
105
 
installdirs-recursive install-recursive uninstall-recursive  \
106
 
check-recursive installcheck-recursive info-recursive dvi-recursive:
107
 
        @set fnord $(MAKEFLAGS); amf=$$2; \
108
 
        dot_seen=no; \
109
 
        target=`echo $@ | sed s/-recursive//`; \
110
 
        list='$(SUBDIRS)'; for subdir in $$list; do \
111
 
          echo "Making $$target in $$subdir"; \
112
 
          if test "$$subdir" = "."; then \
113
 
            dot_seen=yes; \
114
 
            local_target="$$target-am"; \
115
 
          else \
116
 
            local_target="$$target"; \
117
 
          fi; \
118
 
          (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
119
 
           || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
120
 
        done; \
121
 
        if test "$$dot_seen" = "no"; then \
122
 
          $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
123
 
        fi; test -z "$$fail"
124
 
 
125
 
mostlyclean-recursive clean-recursive distclean-recursive \
126
 
maintainer-clean-recursive:
127
 
        @set fnord $(MAKEFLAGS); amf=$$2; \
128
 
        dot_seen=no; \
129
 
        rev=''; list='$(SUBDIRS)'; for subdir in $$list; do \
130
 
          rev="$$subdir $$rev"; \
131
 
          test "$$subdir" != "." || dot_seen=yes; \
132
 
        done; \
133
 
        test "$$dot_seen" = "no" && rev=". $$rev"; \
134
 
        target=`echo $@ | sed s/-recursive//`; \
135
 
        for subdir in $$rev; do \
136
 
          echo "Making $$target in $$subdir"; \
137
 
          if test "$$subdir" = "."; then \
138
 
            local_target="$$target-am"; \
139
 
          else \
140
 
            local_target="$$target"; \
141
 
          fi; \
142
 
          (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
143
 
           || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
144
 
        done && test -z "$$fail"
145
 
tags-recursive:
146
 
        list='$(SUBDIRS)'; for subdir in $$list; do \
147
 
          test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
148
 
        done
149
 
 
 
314
$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(top_srcdir)/gnome-doc-utils.make $(am__configure_deps)
 
315
        @for dep in $?; do \
 
316
          case '$(am__configure_deps)' in \
 
317
            *$$dep*) \
 
318
              cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
 
319
                && exit 0; \
 
320
              exit 1;; \
 
321
          esac; \
 
322
        done; \
 
323
        echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu  gnome2-user-guide/Makefile'; \
 
324
        cd $(top_srcdir) && \
 
325
          $(AUTOMAKE) --gnu  gnome2-user-guide/Makefile
 
326
.PRECIOUS: Makefile
 
327
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
 
328
        @case '$?' in \
 
329
          *config.status*) \
 
330
            cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
 
331
          *) \
 
332
            echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
 
333
            cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
 
334
        esac;
 
335
 
 
336
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
 
337
        cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
 
338
 
 
339
$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
 
340
        cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
 
341
$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
 
342
        cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
 
343
uninstall-info-am:
150
344
tags: TAGS
151
 
 
152
 
ID: $(HEADERS) $(SOURCES) $(LISP)
153
 
        list='$(SOURCES) $(HEADERS)'; \
154
 
        unique=`for i in $$list; do echo $$i; done | \
155
 
          awk '    { files[$$0] = 1; } \
156
 
               END { for (i in files) print i; }'`; \
157
 
        here=`pwd` && cd $(srcdir) \
158
 
          && mkid -f$$here/ID $$unique $(LISP)
159
 
 
160
 
TAGS: tags-recursive $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) $(LISP)
161
 
        tags=; \
162
 
        here=`pwd`; \
163
 
        list='$(SUBDIRS)'; for subdir in $$list; do \
164
 
   if test "$$subdir" = .; then :; else \
165
 
            test -f $$subdir/TAGS && tags="$$tags -i $$here/$$subdir/TAGS"; \
166
 
   fi; \
167
 
        done; \
168
 
        list='$(SOURCES) $(HEADERS)'; \
169
 
        unique=`for i in $$list; do echo $$i; done | \
170
 
          awk '    { files[$$0] = 1; } \
171
 
               END { for (i in files) print i; }'`; \
172
 
        test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
173
 
          || (cd $(srcdir) && etags -o $$here/TAGS $(ETAGS_ARGS) $$tags  $$unique $(LISP))
174
 
 
175
 
mostlyclean-tags:
176
 
 
177
 
clean-tags:
178
 
 
179
 
distclean-tags:
180
 
        -rm -f TAGS ID
181
 
 
182
 
maintainer-clean-tags:
183
 
 
184
 
distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
185
 
 
186
 
subdir = gnome2-user-guide
 
345
TAGS:
 
346
 
 
347
ctags: CTAGS
 
348
CTAGS:
 
349
 
187
350
 
188
351
distdir: $(DISTFILES)
189
 
        @for file in $(DISTFILES); do \
190
 
          d=$(srcdir); \
 
352
        $(mkdir_p) $(distdir)/..
 
353
        @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
 
354
        topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
 
355
        list='$(DISTFILES)'; for file in $$list; do \
 
356
          case $$file in \
 
357
            $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
 
358
            $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
 
359
          esac; \
 
360
          if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
 
361
          dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
 
362
          if test "$$dir" != "$$file" && test "$$dir" != "."; then \
 
363
            dir="/$$dir"; \
 
364
            $(mkdir_p) "$(distdir)$$dir"; \
 
365
          else \
 
366
            dir=''; \
 
367
          fi; \
191
368
          if test -d $$d/$$file; then \
192
 
            cp -pr $$d/$$file $(distdir)/$$file; \
 
369
            if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
 
370
              cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
 
371
            fi; \
 
372
            cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
193
373
          else \
194
374
            test -f $(distdir)/$$file \
195
 
            || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
196
 
            || cp -p $$d/$$file $(distdir)/$$file || :; \
197
 
          fi; \
198
 
        done
199
 
        for subdir in $(SUBDIRS); do \
200
 
          if test "$$subdir" = .; then :; else \
201
 
            test -d $(distdir)/$$subdir \
202
 
            || mkdir $(distdir)/$$subdir \
 
375
            || cp -p $$d/$$file $(distdir)/$$file \
203
376
            || exit 1; \
204
 
            chmod 777 $(distdir)/$$subdir; \
205
 
            (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir=../$(top_distdir) distdir=../$(distdir)/$$subdir distdir) \
206
 
              || exit 1; \
207
377
          fi; \
208
378
        done
209
 
info-am:
210
 
info: info-recursive
211
 
dvi-am:
212
 
dvi: dvi-recursive
 
379
        $(MAKE) $(AM_MAKEFLAGS) \
 
380
          top_distdir="$(top_distdir)" distdir="$(distdir)" \
 
381
          dist-hook
213
382
check-am: all-am
214
 
check: check-recursive
215
 
installcheck-am:
216
 
installcheck: installcheck-recursive
217
 
install-exec-am:
218
 
install-exec: install-exec-recursive
219
 
 
220
 
install-data-am:
221
 
install-data: install-data-recursive
 
383
check: check-am
 
384
all-am: Makefile
 
385
installdirs:
 
386
install: install-am
 
387
install-exec: install-exec-am
 
388
install-data: install-data-am
 
389
uninstall: uninstall-am
222
390
 
223
391
install-am: all-am
224
392
        @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
225
 
install: install-recursive
226
 
uninstall-am:
227
 
uninstall: uninstall-recursive
228
 
all-am: Makefile
229
 
all-redirect: all-recursive
 
393
 
 
394
installcheck: installcheck-am
230
395
install-strip:
231
 
        $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
232
 
installdirs: installdirs-recursive
233
 
installdirs-am:
234
 
 
235
 
 
 
396
        $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
 
397
          install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
 
398
          `test -z '$(STRIP)' || \
 
399
            echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
236
400
mostlyclean-generic:
237
401
 
238
402
clean-generic:
239
403
 
240
404
distclean-generic:
241
 
        -rm -f Makefile $(CONFIG_CLEAN_FILES)
242
 
        -rm -f config.cache config.log stamp-h stamp-h[0-9]*
 
405
        -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
243
406
 
244
407
maintainer-clean-generic:
245
 
mostlyclean-am:  mostlyclean-tags mostlyclean-generic
246
 
 
247
 
mostlyclean: mostlyclean-recursive
248
 
 
249
 
clean-am:  clean-tags clean-generic mostlyclean-am
250
 
 
251
 
clean: clean-recursive
252
 
 
253
 
distclean-am:  distclean-tags distclean-generic clean-am
254
 
 
255
 
distclean: distclean-recursive
256
 
 
257
 
maintainer-clean-am:  maintainer-clean-tags maintainer-clean-generic \
258
 
                distclean-am
259
 
        @echo "This command is intended for maintainers to use;"
 
408
        @echo "This command is intended for maintainers to use"
260
409
        @echo "it deletes files that may require special tools to rebuild."
261
 
 
262
 
maintainer-clean: maintainer-clean-recursive
263
 
 
264
 
.PHONY: install-data-recursive uninstall-data-recursive \
265
 
install-exec-recursive uninstall-exec-recursive installdirs-recursive \
266
 
uninstalldirs-recursive all-recursive check-recursive \
267
 
installcheck-recursive info-recursive dvi-recursive \
268
 
mostlyclean-recursive distclean-recursive clean-recursive \
269
 
maintainer-clean-recursive tags tags-recursive mostlyclean-tags \
270
 
distclean-tags clean-tags maintainer-clean-tags distdir info-am info \
271
 
dvi-am dvi check check-am installcheck-am installcheck install-exec-am \
272
 
install-exec install-data-am install-data install-am install \
273
 
uninstall-am uninstall all-redirect all-am all installdirs-am \
274
 
installdirs mostlyclean-generic distclean-generic clean-generic \
275
 
maintainer-clean-generic clean mostlyclean distclean maintainer-clean
276
 
 
277
 
 
 
410
clean: clean-am
 
411
 
 
412
clean-am: clean-generic clean-local mostlyclean-am
 
413
 
 
414
distclean: distclean-am
 
415
        -rm -f Makefile
 
416
distclean-am: clean-am distclean-generic distclean-local
 
417
 
 
418
dvi: dvi-am
 
419
 
 
420
dvi-am:
 
421
 
 
422
html: html-am
 
423
 
 
424
info: info-am
 
425
 
 
426
info-am:
 
427
 
 
428
install-data-am: install-data-local
 
429
 
 
430
install-exec-am:
 
431
 
 
432
install-info: install-info-am
 
433
 
 
434
install-man:
 
435
 
 
436
installcheck-am:
 
437
 
 
438
maintainer-clean: maintainer-clean-am
 
439
        -rm -f Makefile
 
440
maintainer-clean-am: distclean-am maintainer-clean-generic \
 
441
        maintainer-clean-local
 
442
 
 
443
mostlyclean: mostlyclean-am
 
444
 
 
445
mostlyclean-am: mostlyclean-generic mostlyclean-local
 
446
 
 
447
pdf: pdf-am
 
448
 
 
449
pdf-am:
 
450
 
 
451
ps: ps-am
 
452
 
 
453
ps-am:
 
454
 
 
455
uninstall-am: uninstall-info-am uninstall-local
 
456
 
 
457
.PHONY: all all-am check check-am clean clean-generic clean-local \
 
458
        dist-hook distclean distclean-generic distclean-local distdir \
 
459
        dvi dvi-am html html-am info info-am install install-am \
 
460
        install-data install-data-am install-data-local install-exec \
 
461
        install-exec-am install-info install-info-am install-man \
 
462
        install-strip installcheck installcheck-am installdirs \
 
463
        maintainer-clean maintainer-clean-generic \
 
464
        maintainer-clean-local mostlyclean mostlyclean-generic \
 
465
        mostlyclean-local pdf pdf-am ps ps-am uninstall uninstall-am \
 
466
        uninstall-info-am uninstall-local
 
467
 
 
468
 
 
469
DOC_H_FILE ?=
 
470
 
 
471
DOC_H_DOCS ?=
 
472
 
 
473
$(DOC_H_FILE): $(DOC_H_DOCS);
 
474
        @rm -f $@.tmp; touch $@.tmp;
 
475
        echo 'const gchar* documentation_credits[] = {' >> $@.tmp
 
476
        list='$(DOC_H_DOCS)'; for doc in $$list; do \
 
477
          xmlpath="`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`:$(srcdir)/`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`"; \
 
478
          if ! test -f "$$doc"; then doc="$(srcdir)/$$doc"; fi; \
 
479
          xsltproc --path "$$xmlpath" $(_credits) $$doc; \
 
480
        done | sort | uniq \
 
481
          | 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}}' \
 
482
          | sed -e 's/\\/\\\\/' -e 's/"/\\"/' -e 's/\(.*\)/\t"\1",/' >> $@.tmp
 
483
        echo '  NULL' >> $@.tmp
 
484
        echo '};' >> $@.tmp
 
485
        echo >> $@.tmp
 
486
        list='$(DOC_H_DOCS)'; for doc in $$list; do \
 
487
          xmlpath="`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`:$(srcdir)/`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`"; \
 
488
          if ! test -f "$$doc"; then doc="$(srcdir)/$$doc"; fi; \
 
489
          docid=`echo "$$doc" | sed -e 's/.*\/\([^/]*\)\.xml/\1/' \
 
490
            | sed -e 's/[^a-zA-Z_]/_/g' | tr 'a-z' 'A-Z'`; \
 
491
          echo $$xmlpath; \
 
492
          ids=`xsltproc --xinclude --path "$$xmlpath" $(_ids) $$doc`; \
 
493
          for id in $$ids; do \
 
494
            echo '#define HELP_'`echo $$docid`'_'`echo $$id \
 
495
              | sed -e 's/[^a-zA-Z_]/_/g' | tr 'a-z' 'A-Z'`' "'$$id'"' >> $@.tmp; \
 
496
          done; \
 
497
          echo >> $@.tmp; \
 
498
        done;
 
499
        cp $@.tmp $@ && rm -f $@.tmp
 
500
 
 
501
.PHONY: dist-doc-header
 
502
dist-doc-header: $(DOC_H_FILE)
 
503
        @if test -f "$(DOC_H_FILE)"; then d=; else d="$(srcdir)/"; fi; \
 
504
        echo "$(INSTALL_DATA) $${d}$(DOC_H_FILE) $(distdir)/$(DOC_H_FILE)"; \
 
505
        $(INSTALL_DATA) "$${d}$(DOC_H_FILE)" "$(distdir)/$(DOC_H_FILE)";
 
506
 
 
507
doc-dist-hook: $(if $(DOC_H_FILE),dist-doc-header)
 
508
 
 
509
.PHONY: clean-doc-header
 
510
clean-local: $(_clean_doc_header)
 
511
distclean-local: $(_clean_doc_header)
 
512
mostlyclean-local: $(_clean_doc_header)
 
513
maintainer-clean-local: $(_clean_doc_header)
 
514
clean-doc-header:
 
515
        rm -f $(DOC_H_FILE)
 
516
 
 
517
all: $(DOC_H_FILE)
 
518
 
 
519
################################################################################
 
520
 
 
521
DOC_MODULE ?=
 
522
 
 
523
DOC_ENTITIES ?=
 
524
 
 
525
DOC_INCLUDES ?=
 
526
 
 
527
DOC_FIGURES ?=
 
528
 
 
529
DOC_FORMATS ?= docbook
 
530
 
 
531
DOC_LINGUAS ?=
 
532
 
 
533
RNGDOC_DIRS ?=
 
534
 
 
535
XSLDOC_DIRS ?=
 
536
 
 
537
################################################################################
 
538
 
 
539
_xml2po ?= `which xml2po`
 
540
 
 
541
_db2html ?= `$(PKG_CONFIG) --variable db2html gnome-doc-utils`
 
542
_db2omf  ?= `$(PKG_CONFIG) --variable db2omf gnome-doc-utils`
 
543
_rngdoc  ?= `$(PKG_CONFIG) --variable rngdoc gnome-doc-utils`
 
544
_xsldoc  ?= `$(PKG_CONFIG) --variable xsldoc gnome-doc-utils`
 
545
_chunks  ?= `$(PKG_CONFIG) --variable xmldir gnome-doc-utils`/gnome/xslt/docbook/utils/chunks.xsl
 
546
_credits ?= `$(PKG_CONFIG) --variable xmldir gnome-doc-utils`/gnome/xslt/docbook/utils/credits.xsl
 
547
_ids ?= `$(PKG_CONFIG) --variable xmldir gnome-doc-utils`/gnome/xslt/docbook/utils/ids.xsl
 
548
 
 
549
_sklocalstatedir ?= `scrollkeeper-config --pkglocalstatedir`
 
550
 
 
551
# FIXME: Fix the dependancies
 
552
$(_RNGDOC_C_DOCS) : $(_RNGDOC_RNGS)
 
553
        if ! test -d $(dir $@); then mkdir $(dir $@); fi;
 
554
        xsltproc $(call rngdoc_args,$@,$<) | xmllint --c14n - > $@.tmp && \
 
555
          cp $@.tmp $@ && rm -f $@.tmp
 
556
 
 
557
.PHONY: rngdoc
 
558
rngdoc: $(_RNGDOC_C_DOCS)
 
559
 
 
560
# FIXME: Fix the dependancies
 
561
$(_XSLDOC_C_DOCS) : $(_XSLDOC_XSLS)
 
562
        if ! test -d $(dir $@); then mkdir $(dir $@); fi;
 
563
        xsltproc $(call xsldoc_args,$@,$<) | xmllint --c14n - > $@.tmp && \
 
564
          cp $@.tmp $@ && rm -f $@.tmp
 
565
 
 
566
.PHONY: xsldoc
 
567
xsldoc: $(_XSLDOC_C_DOCS)
 
568
 
 
569
$(_DOC_OMF_DB) : $(_DOC_OMF_IN)
 
570
$(_DOC_OMF_DB) : $(DOC_MODULE)-%.omf : %/$(DOC_MODULE).xml
 
571
        xsltproc -o $@ $(call db2omf_args,$@,$<,'docbook')
 
572
 
 
573
$(_DOC_OMF_HTML) : $(_DOC_OMF_IN)
 
574
$(_DOC_OMF_HTML) : $(DOC_MODULE)-html-%.omf : %/$(DOC_MODULE).xml
 
575
        xsltproc -o $@ $(call db2omf_args,$@,$<,'html')
 
576
 
 
577
.PHONY: omf
 
578
omf: $(_DOC_OMF_ALL)
 
579
 
 
580
# FIXME
 
581
$(_DOC_DSK_DB) : $(_DOC_DSK_IN)
 
582
$(_DOC_DSK_DB) : $(DOC_MODULE).db.%.desktop : %/$(DOC_MODULE).xml
 
583
        cp $(_DOC_DSK_IN) $@
 
584
 
 
585
$(_DOC_DSK_HTML) : $(_DOC_DSK_IN)
 
586
$(_DOC_DSK_HTML) : $(DOC_MODULE).html.%.desktop : %/$(DOC_MODULE).xml
 
587
        cp $(_DOC_DSK_IN) $@
 
588
 
 
589
.PHONY: dsk
 
590
dsk: $(_DOC_DSK_ALL)
 
591
 
 
592
$(_CVSIGNORE_TOP) : $(_CVSIGNORE_TOP_FILES)
 
593
        if ! test -f $@; then touch $@; fi
 
594
        cat $@ > $@.tmp
 
595
        list='$^'; for file in $$list; do \
 
596
          echo $$file >> $@.tmp; \
 
597
        done
 
598
        cat $@.tmp | sort | uniq > $@
 
599
        rm $@.tmp
 
600
 
 
601
$(_CVSIGNORE_C) : $(_CVSIGNORE_C_FILES)
 
602
        if ! test -f $@; then touch $@; fi
 
603
        cat $@ > $@.tmp
 
604
        list='$^'; for file in $$list; do \
 
605
          echo $$file | sed -e 's/.*\///' >> $@.tmp; \
 
606
        done
 
607
        cat $@.tmp | sort | uniq > $@
 
608
        rm $@.tmp
 
609
 
 
610
$(_CVSIGNORE_LC) : $(_CVSIGNORE_LC_FILES)
 
611
        if ! test -f $@; then touch $@; fi
 
612
        cat $@ > $@.tmp
 
613
        list='$(wildcard $(_CVSIGNORE_LC_FILES),$(dir $@)/*)'; \
 
614
        for file in $$list; do \
 
615
          echo $$file | sed -e 's/.*\///' >> $@.tmp; \
 
616
        done
 
617
        cat $@.tmp | sort | uniq > $@
 
618
        rm $@.tmp
 
619
 
 
620
.PHONY: cvsignore
 
621
cvsignore: $(_CVSIGNORE_TOP) $(_CVSIGNROE_C) $(_CVSIGNORE_LC)
 
622
 
 
623
.PHONY: po
 
624
po: $(_DOC_POFILES)
 
625
 
 
626
$(_DOC_POFILES):
 
627
        @if ! test -d $(dir $@); then \
 
628
          echo "mkdir $(dir $@)"; \
 
629
          mkdir "$(dir $@)"; \
 
630
        fi
 
631
        @if test ! -f $@ -a -f $(srcdir)/$@; then \
 
632
          echo "cp $(srcdir)/$@ $@"; \
 
633
          cp "$(srcdir)/$@" "$@"; \
 
634
        fi;
 
635
        @docs=; \
 
636
        list='$(_DOC_C_DOCS_NOENT)'; for doc in $$list; do \
 
637
          if test -f $$doc; then \
 
638
            docs="$$docs ../$$doc"; \
 
639
          else \
 
640
            docs="$$docs ../$(srcdir)/$$doc"; \
 
641
          fi; \
 
642
        done; \
 
643
        if ! test -f $@; then \
 
644
          echo "(cd $(dir $@) && \
 
645
            $(_xml2po) -e $$docs > $(notdir $@).tmp && \
 
646
            cp $(notdir $@).tmp $(notdir $@) && rm -f $(notdir $@).tmp)"; \
 
647
          (cd $(dir $@) && \
 
648
            $(_xml2po) -e $$docs > $(notdir $@).tmp && \
 
649
            cp $(notdir $@).tmp $(notdir $@) && rm -f $(notdir $@).tmp); \
 
650
        else \
 
651
          echo "(cd $(dir $@) && \
 
652
            $(_xml2po) -e -u $(notdir $@) $$docs)"; \
 
653
          (cd $(dir $@) && \
 
654
            $(_xml2po) -e -u $(notdir $@) $$docs); \
 
655
        fi
 
656
 
 
657
# FIXME: fix the dependancy
 
658
# FIXME: hook xml2po up
 
659
$(_DOC_LC_DOCS) : $(_DOC_POFILES)
 
660
$(_DOC_LC_DOCS) : $(_DOC_C_DOCS)
 
661
        if ! test -d $(dir $@); then mkdir $(dir $@); fi
 
662
        case "$(srcdir)" in /*) sd="$(srcdir)";; *) sd="../$(srcdir)";; esac; \
 
663
        if [ -f "C/$(notdir $@)" ]; then d="../"; else d="$$sd/"; fi; \
 
664
        (cd $(dir $@) && \
 
665
          $(_xml2po) -e -p \
 
666
            "$${d}$(dir $@)$(patsubst %/$(notdir $@),%,$@).po" \
 
667
            "$${d}C/$(notdir $@)" > $(notdir $@).tmp && \
 
668
            cp $(notdir $@).tmp $(notdir $@) && rm -f $(notdir $@).tmp)
 
669
.PHONY: pot
 
670
pot: $(_DOC_POT)
 
671
$(_DOC_POT): $(_DOC_C_DOCS_NOENT)
 
672
        $(_xml2po) -e -o $@ $^
 
673
 
 
674
$(_DOC_HTML_TOPS): $(_DOC_C_DOCS) $(_DOC_LC_DOCS)
 
675
        xsltproc -o $@ --xinclude --param db.chunk.chunk_top "false()" --stringparam db.chunk.basename "$(DOC_MODULE)" --stringparam db.chunk.extension ".html" $(_db2html) $(patsubst %.html,%.xml,$@)
 
676
 
 
677
all:                                                    \
 
678
        $(_DOC_C_DOCS)          $(_DOC_LC_DOCS)         \
 
679
        $(_DOC_OMF_ALL)         $(_DOC_DSK_ALL)         \
 
680
        $(_DOC_HTML_ALL)        $(_DOC_POFILES)
 
681
 
 
682
.PHONY: clean-doc-rngdoc clean-doc-xsldoc clean-doc-omf clean-doc-dsk clean-doc-lc clean-doc-dir
 
683
 
 
684
clean-doc-rngdoc: ; rm -f $(_RNGDOC_C_DOCS) $(_RNGDOC_LC_DOCS)
 
685
clean-doc-xsldoc: ; rm -f $(_XSLDOC_C_DOCS) $(_XSLDOC_LC_DOCS)
 
686
clean-doc-omf: ; rm -f $(_DOC_OMF_DB) $(_DOC_OMF_HTML)
 
687
clean-doc-dsk: ; rm -f $(_DOC_DSK_DB) $(_DOC_DSK_HTML)
 
688
clean-doc-lc:
 
689
        rm -f $(_DOC_LC_DOCS)
 
690
        @list='$(_DOC_POFILES)'; for po in $$list; do \
 
691
          if ! test "$$po" -ef "$(srcdir)/$$po"; then \
 
692
            echo "rm -f $$po"; \
 
693
            rm -f "$$po"; \
 
694
          fi; \
 
695
        done
 
696
        @for lc in C $(DOC_LINGUAS); do \
 
697
          if test -f "$$lc/.xml2po.mo"; then \
 
698
            echo "rm -f $$lc/.xml2po.mo"; \
 
699
            rm -f "$$lc/.xml2po.mo"; \
 
700
          fi; \
 
701
        done
 
702
clean-doc-dir:
 
703
        @for lc in C $(DOC_LINGUAS); do \
 
704
          for dir in `find $$lc -depth -type d`; do \
 
705
            if ! test $$dir -ef $(srcdir)/$$dir; then \
 
706
              echo "rmdir $$dir"; \
 
707
              rmdir "$$dir"; \
 
708
           fi; \
 
709
          done; \
 
710
        done
 
711
 
 
712
clean-local:                                            \
 
713
        $(_clean_rngdoc)        $(_clean_xsldoc)        \
 
714
        $(_clean_omf)           $(_clean_dsk)           \
 
715
        $(_clean_lc)            $(_clean_dir)
 
716
distclean-local:                                        \
 
717
        $(_clean_rngdoc)        $(_clean_xsldoc)        \
 
718
        $(_clean_omf)           $(_clean_dsk)           \
 
719
        $(_clean_lc)            $(_clean_dir)
 
720
mostlyclean-local:                                      \
 
721
        $(_clean_rngdoc)        $(_clean_xsldoc)        \
 
722
        $(_clean_omf)           $(_clean_dsk)           \
 
723
        $(_clean_lc)            $(_clean_dir)
 
724
maintainer-clean-local:                                 \
 
725
        $(_clean_rngdoc)        $(_clean_xsldoc)        \
 
726
        $(_clean_omf)           $(_clean_dsk)           \
 
727
        $(_clean_lc)            $(_clean_dir)
 
728
 
 
729
.PHONY: dist-doc-docs dist-doc-figs dist-doc-omf dist-doc-dsk
 
730
doc-dist-hook:                                  \
 
731
        $(if $(DOC_MODULE),dist-doc-docs)       \
 
732
        $(if $(_DOC_C_FIGURES),dist-doc-figs)   \
 
733
        $(if $(_DOC_OMF_IN),dist-doc-omf)
 
734
#       $(if $(_DOC_DSK_IN),dist-doc-dsk)
 
735
 
 
736
dist-doc-docs: $(_DOC_C_DOCS) $(_DOC_LC_DOCS) $(_DOC_POFILES)
 
737
        @for lc in C $(DOC_LINGUAS); do \
 
738
          echo " $(mkinstalldirs) $(distdir)/$$lc"; \
 
739
          $(mkinstalldirs) "$(distdir)/$$lc"; \
 
740
        done
 
741
        @list='$(_DOC_C_DOCS) $(_DOC_LC_DOCS) $(_DOC_POFILES)'; \
 
742
        for doc in $$list; do \
 
743
          if test -f "$$doc"; then d=; else d="$(srcdir)/"; fi; \
 
744
          echo "$(INSTALL_DATA) $$d$$doc $(distdir)/$$doc"; \
 
745
          $(INSTALL_DATA) "$$d$$doc" "$(distdir)/$$doc"; \
 
746
        done
 
747
 
 
748
dist-doc-figs: $(_DOC_SRC_FIGURES)
 
749
        @list='$(_DOC_C_FIGURES) $(_DOC_LC_FIGURES)'; \
 
750
        for fig in $$list; do \
 
751
          if test -f "$$fig"; then d=; else d="$(srcdir)/"; fi; \
 
752
          if test -f "$$d$$fig"; then \
 
753
            figdir=`echo $$fig | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`; \
 
754
            if ! test -d "$(distdir)/$$figdir"; then \
 
755
              echo "$(mkinstalldirs) $(distdir)/$$figdir"; \
 
756
              $(mkinstalldirs) "$(distdir)/$$figdir"; \
 
757
            fi; \
 
758
            echo "$(INSTALL_DATA) $$d$$fig $(distdir)/$$fig"; \
 
759
            $(INSTALL_DATA) "$$d$$fig" "$(distdir)/$$fig"; \
 
760
          fi; \
 
761
        done;
 
762
 
 
763
dist-doc-omf:
 
764
        @if test -f "$(_DOC_OMF_IN)"; then d=; else d="$(srcdir)/"; fi; \
 
765
        echo "$(INSTALL_DATA) $$d$(_DOC_OMF_IN) $(distdir)/$(notdir $(_DOC_OMF_IN))"; \
 
766
        $(INSTALL_DATA) "$$d$(_DOC_OMF_IN)" "$(distdir)/$(notdir $(_DOC_OMF_IN))"
 
767
 
 
768
dist-doc-dsk:
 
769
        @if test -f "$(_DOC_DSK_IN)"; then d=; else d="$(srcdir)/"; fi; \
 
770
        echo "$(INSTALL_DATA) $$d$(_DOC_DSK_IN) $(distdir)/$(notdir $(_DOC_DSK_IN))"; \
 
771
        $(INSTALL_DATA) "$$d$(_DOC_DSK_IN)" "$(distdir)/$(notdir $(_DOC_DSK_IN))"
 
772
 
 
773
.PHONY: check-doc-docs check-doc-omf
 
774
check:                                                  \
 
775
        $(if $(DOC_MODULE),check-doc-docs)              \
 
776
        $(if $(_DOC_OMF_IN),check-doc-omf)
 
777
 
 
778
check-doc-docs: $(_DOC_C_DOCS) $(_DOC_LC_DOCS)
 
779
        @for lc in C $(DOC_LINGUAS); do \
 
780
          if test -f "$$lc"; \
 
781
            then d=; \
 
782
            xmlpath="$$lc"; \
 
783
          else \
 
784
            d="$(srcdir)/"; \
 
785
            xmlpath="$$lc:$(srcdir)/$$lc"; \
 
786
          fi; \
 
787
          echo "xmllint --noout --noent --path $$xmlpath --xinclude --postvalid $$d$$lc/$(DOC_MODULE).xml"; \
 
788
          xmllint --noout --noent --path "$$xmlpath" --xinclude --postvalid "$$d$$lc/$(DOC_MODULE).xml"; \
 
789
        done
 
790
 
 
791
check-doc-omf: $(_DOC_OMF_ALL)
 
792
        @list='$(_DOC_OMF_ALL)'; for omf in $$list; do \
 
793
          echo "xmllint --noout --dtdvalid 'http://scrollkeeper.sourceforge.net/dtds/scrollkeeper-omf-1.0/scrollkeeper-omf.dtd' $$omf"; \
 
794
          xmllint --noout --dtdvalid 'http://scrollkeeper.sourceforge.net/dtds/scrollkeeper-omf-1.0/scrollkeeper-omf.dtd' $$omf; \
 
795
        done
 
796
 
 
797
.PHONY: install-doc-docs install-doc-html install-doc-figs install-doc-omf install-doc-dsk
 
798
install-data-local:                                     \
 
799
        $(if $(DOC_MODULE),install-doc-docs)            \
 
800
        $(if $(_DOC_HTML_ALL),install-doc-html)         \
 
801
        $(if $(_DOC_C_FIGURES),install-doc-figs)        \
 
802
        $(if $(_DOC_OMF_IN),install-doc-omf)
 
803
#       $(if $(_DOC_DSK_IN),install-doc-dsk)
 
804
 
 
805
install-doc-docs:
 
806
        @for lc in C $(DOC_LINGUAS); do \
 
807
          echo "$(mkinstalldirs) $(DESTDIR)$(HELP_DIR)/$(DOC_MODULE)/$$lc"; \
 
808
          $(mkinstalldirs) $(DESTDIR)$(HELP_DIR)/$(DOC_MODULE)/$$lc; \
 
809
        done
 
810
        @list='$(_DOC_C_DOCS) $(_DOC_LC_DOCS)'; for doc in $$list; do \
 
811
          if test -f "$$doc"; then d=; else d="$(srcdir)/"; fi; \
 
812
          echo "$(INSTALL_DATA) $$d$$doc $(DESTDIR)$(HELP_DIR)/$(DOC_MODULE)/$$doc"; \
 
813
          $(INSTALL_DATA) $$d$$doc $(DESTDIR)$(HELP_DIR)/$(DOC_MODULE)/$$doc; \
 
814
        done
 
815
 
 
816
install-doc-figs:
 
817
        @list='$(patsubst C/%,%,$(_DOC_C_FIGURES))'; for fig in $$list; do \
 
818
          for lc in C $(DOC_LINGUAS); do \
 
819
            if test -f "$$lc/$$fig"; then \
 
820
              figfile="$$lc/$$fig"; \
 
821
            elif test -f "$(srcdir)/$$lc/$$fig"; then \
 
822
              figfile="$(srcdir)/$$lc/$$fig"; \
 
823
            elif test -f "C/$$fig"; then \
 
824
              figfile="C/$$fig"; \
 
825
            else \
 
826
              figfile="$(srcdir)/C/$$fig"; \
 
827
            fi; \
 
828
            figdir="$$lc/"`echo $$fig | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`; \
 
829
            figdir="$(DESTDIR)$(HELP_DIR)/$(DOC_MODULE)/$$figdir"; \
 
830
            if ! test -d "$$figdir"; then \
 
831
              echo "$(mkinstalldirs) $$figdir"; \
 
832
              $(mkinstalldirs) "$$figdir"; \
 
833
            fi; \
 
834
            figbase=`echo $$fig | sed -e 's/^.*\///'`; \
 
835
            echo "$(INSTALL_DATA) $$figfile $$figdir$$figbase"; \
 
836
            $(INSTALL_DATA) "$$figfile" "$$figdir$$figbase"; \
 
837
          done; \
 
838
        done
 
839
 
 
840
install-doc-html:
 
841
        echo install-html
 
842
 
 
843
install-doc-omf:
 
844
        $(mkinstalldirs) $(DESTDIR)$(OMF_DIR)/$(DOC_MODULE)
 
845
        @list='$(_DOC_OMF_ALL)'; for omf in $$list; do \
 
846
          echo "$(INSTALL_DATA) $$omf $(DESTDIR)$(OMF_DIR)/$(DOC_MODULE)/$$omf"; \
 
847
          $(INSTALL_DATA) $$omf $(DESTDIR)$(OMF_DIR)/$(DOC_MODULE)/$$omf; \
 
848
        done
 
849
        @if test "x$(_ENABLE_SK)" = "xtrue"; then \
 
850
          echo "scrollkeeper-update -p $(DESTDIR)$(_sklocalstatedir) -o $(DESTDIR)$(OMF_DIR)/$(DOC_MODULE)"; \
 
851
          scrollkeeper-update -p "$(DESTDIR)$(_sklocalstatedir)" -o "$(DESTDIR)$(OMF_DIR)/$(DOC_MODULE)"; \
 
852
        fi;
 
853
 
 
854
install-doc-dsk:
 
855
        echo install-dsk
 
856
 
 
857
.PHONY: uninstall-doc-docs uninstall-doc-html uninstall-doc-figs uninstall-doc-omf uninstall-doc-dsk
 
858
uninstall-local:                                        \
 
859
        $(if $(DOC_MODULE),uninstall-doc-docs)          \
 
860
        $(if $(_DOC_HTML_ALL),uninstall-doc-html)       \
 
861
        $(if $(_DOC_C_FIGURES),uninstall-doc-figs)      \
 
862
        $(if $(_DOC_OMF_IN),uninstall-doc-omf)
 
863
#       $(if $(_DOC_DSK_IN),uninstall-doc-dsk)
 
864
 
 
865
uninstall-doc-docs:
 
866
        @list='$(_DOC_C_DOCS) $(_DOC_LC_DOCS)'; for doc in $$list; do \
 
867
          echo " rm -f $(DESTDIR)$(HELP_DIR)/$(DOC_MODULE)/$$doc"; \
 
868
          rm -f "$(DESTDIR)$(HELP_DIR)/$(DOC_MODULE)/$$doc"; \
 
869
        done
 
870
 
 
871
uninstall-doc-figs:
 
872
        @list='$(_DOC_C_FIGURES) $(_DOC_LC_FIGURES)'; for fig in $$list; do \
 
873
          echo "rm -f $(DESTDIR)$(HELP_DIR)/$(DOC_MODULE)/$$fig"; \
 
874
          rm -f "$(DESTDIR)$(HELP_DIR)/$(DOC_MODULE)/$$fig"; \
 
875
        done;
 
876
 
 
877
uninstall-doc-omf:
 
878
        @list='$(_DOC_OMF_ALL)'; for omf in $$list; do \
 
879
          if test "x$(_ENABLE_SK)" == "xtrue"; then \
 
880
            echo "scrollkeeper-uninstall -p $(_sklocalstatedir) $(DESTDIR)$(OMF_DIR)/$(DOC_MODULE)/$$omf"; \
 
881
            scrollkeeper-uninstall -p "$(_sklocalstatedir)" "$(DESTDIR)$(OMF_DIR)/$(DOC_MODULE)/$$omf"; \
 
882
          fi; \
 
883
          echo "rm -f $(DESTDIR)$(OMF_DIR)/$(DOC_MODULE)/$$omf"; \
 
884
          rm -f "$(DESTDIR)$(OMF_DIR)/$(DOC_MODULE)/$$omf"; \
 
885
        done
 
886
dist-hook: doc-dist-hook
278
887
# Tell versions [3.59,3.63) of GNU make to not export all variables.
279
888
# Otherwise a system limit (for SysV at least) may be exceeded.
280
889
.NOEXPORT: