10
12
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
11
13
# PARTICULAR PURPOSE.
17
# gnome-doc-utils.make - make magic for building documentation
18
# Copyright (C) 2004-2005 Shaun McCance <shaunm@gnome.org>
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.
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.
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.
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.
39
################################################################################
17
41
top_srcdir = @top_srcdir@
20
exec_prefix = @exec_prefix@
24
libexecdir = @libexecdir@
26
sysconfdir = @sysconfdir@
27
sharedstatedir = @sharedstatedir@
28
localstatedir = @localstatedir@
32
includedir = @includedir@
33
oldincludedir = /usr/include
37
43
pkgdatadir = $(datadir)/@PACKAGE@
38
44
pkglibdir = $(libdir)/@PACKAGE@
39
45
pkgincludedir = $(includedir)/@PACKAGE@
46
AUTOHEADER = @AUTOHEADER@
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@
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)
57
57
NORMAL_UNINSTALL = :
60
host_alias = @host_alias@
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) \
67
mkinstalldirs = $(install_sh) -d
71
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
75
AUTOHEADER = @AUTOHEADER@
78
CYGPATH_W = @CYGPATH_W@
80
DOC_USER_FORMATS = @DOC_USER_FORMATS@
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@
91
INSTALL_DATA = @INSTALL_DATA@
92
INSTALL_PROGRAM = @INSTALL_PROGRAM@
93
INSTALL_SCRIPT = @INSTALL_SCRIPT@
94
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
97
LTLIBOBJS = @LTLIBOBJS@
99
MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
100
MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
69
101
MAKEINFO = @MAKEINFO@
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@
73
114
VERSION = @VERSION@
76
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
78
DIST_COMMON = Makefile.am Makefile.in
81
DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
115
ac_ct_STRIP = @ac_ct_STRIP@
116
am__leading_dot = @am__leading_dot@
118
am__untar = @am__untar@
120
build_alias = @build_alias@
122
exec_prefix = @exec_prefix@
123
host_alias = @host_alias@
124
includedir = @includedir@
126
install_sh = @install_sh@
128
libexecdir = @libexecdir@
129
localstatedir = @localstatedir@
132
oldincludedir = @oldincludedir@
134
program_transform_name = @program_transform_name@
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))
142
################################################################################
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))
148
_RNGDOC_RNGS = $(sort $(patsubst ./%, %, $(foreach dir,$(RNGDOC_DIRS), \
149
$(wildcard $(dir)/*.rng) $(wildcard $(srcdir)/$(dir)/*.rng))))
151
_RNGDOC_C_DOCS = $(foreach rng,$(_RNGDOC_RNGS), C/$(basename $(notdir $(rng))).xml)
153
################################################################################
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.
159
--stringparam xsldoc.id \
160
$(shell echo $(basename $(notdir $(1))) | sed -e 's/[^A-Za-z0-9_-]/_/g')\
162
$(word 1,$(filter %/$(basename $(notdir $(1))).xsl,$(_XSLDOC_XSLS)))
164
_XSLDOC_XSLS = $(sort $(patsubst ./%, %, $(foreach dir,$(XSLDOC_DIRS), \
165
$(wildcard $(dir)/*.xsl) $(wildcard $(srcdir)/$(dir)/*.xsl))))
167
_XSLDOC_C_DOCS = $(foreach xsl,$(_XSLDOC_XSLS), C/$(basename $(notdir $(xsl))).xml)
169
################################################################################
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)" \
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))
186
_DOC_OMF_HTML = $(if $(_DOC_OMF_IN), \
187
$(foreach lc,C $(DOC_LINGUAS),$(DOC_MODULE)-html-$(lc).omf))
192
$(if $(findstring docbook,$(_DOC_REAL_FORMATS)),$(_DOC_OMF_DB)) \
193
$(if $(findstring html,$(_DOC_REAL_FORMATS)),$(_DOC_OMF_HTML))
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))
201
_DOC_DSK_HTML = $(if $(_DOC_DSK_IN), \
202
$(foreach lc,C $(DOC_LINGUAS),$(DOC_MODULE).html.$(lc).desktop))
207
$(if $(findstring docbook,$(_DOC_REAL_FORMATS)),$(_DOC_DSK_DB)) \
208
$(if $(findstring html,$(_DOC_REAL_FORMATS)),$(_DOC_DSK_HTML))
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)
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))
224
$(_DOC_C_ENTITIES) $(_DOC_C_INCLUDES) \
225
$(_RNGDOC_C_DOCS) $(_XSLDOC_C_DOCS) \
228
_DOC_C_DOCS_NOENT = \
229
$(_DOC_C_MODULE) $(_DOC_C_INCLUDES) \
230
$(_RNGDOC_C_DOCS) $(_XSLDOC_C_DOCS)
232
_DOC_C_FIGURES = $(if $(DOC_FIGURES), \
233
$(foreach fig,$(DOC_FIGURES),C/$(fig)), \
234
$(patsubst $(srcdir)/%,%,$(wildcard $(srcdir)/C/figures/*.png)))
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")
243
###############################################################################
244
_DOC_POFILES = $(if $(DOC_MODULE), \
245
$(foreach lc,$(DOC_LINGUAS),$(lc)/$(lc).po))
247
_DOC_LC_MODULES = $(if $(DOC_MODULE), \
248
$(foreach lc,$(DOC_LINGUAS),$(lc)/$(DOC_MODULE).xml))
251
$(foreach lc,$(DOC_LINGUAS),$(foreach inc,$(_DOC_C_INCLUDES), \
252
$(lc)/$(notdir $(inc)) ))
255
$(foreach lc,$(DOC_LINGUAS),$(foreach doc,$(_RNGDOC_C_DOCS), \
256
$(lc)/$(notdir $(doc)) ))
259
$(foreach lc,$(DOC_LINGUAS),$(foreach doc,$(_XSLDOC_C_DOCS), \
260
$(lc)/$(notdir $(doc)) ))
263
# FIXME: probably have to shell escape to determine the file names
265
$(foreach lc,$(DOC_LINGUAS),$(foreach doc,$(_DOC_C_HTML), \
266
$(lc)/$(notdir $(doc)) ))
269
$(_DOC_LC_MODULES) $(_DOC_LC_INCLUDES) \
270
$(_RNGDOC_LC_DOCS) $(_XSLDOC_LC_DOCS) \
271
$(if $(findstring html,$(_DOC_REAL_FORMATS)),$(_DOC_LC_HTML))
273
_DOC_LC_FIGURES = $(foreach lc,$(DOC_LINGUAS), \
274
$(patsubst C/%,$(lc)/%,$(_DOC_C_FIGURES)) )
277
$(foreach fig,$(_DOC_C_FIGURES), $(foreach lc,C $(DOC_LINGUAS), \
278
$(wildcard $(srcdir)/$(lc)/$(patsubst C/%,%,$(fig))) ))
280
_DOC_POT = $(if $(DOC_MODULE),$(DOC_MODULE).pot)
282
################################################################################
283
_DOC_HTML_ALL = $(if $(findstring html,$(_DOC_REAL_FORMATS)), \
284
$(_DOC_C_HTML) $(_DOC_LC_HTML))
286
_DOC_HTML_TOPS = $(foreach lc,C $(DOC_LINGUAS),$(lc)/$(DOC_MODULE).html)
287
@ENABLE_SK_FALSE@_ENABLE_SK = false
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
302
goseditmainmenu.xml \
306
gosstartsession.xml \
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
90
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
92
&& CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
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.
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; \
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 \
114
local_target="$$target-am"; \
116
local_target="$$target"; \
118
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
119
|| case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
121
if test "$$dot_seen" = "no"; then \
122
$(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
125
mostlyclean-recursive clean-recursive distclean-recursive \
126
maintainer-clean-recursive:
127
@set fnord $(MAKEFLAGS); amf=$$2; \
129
rev=''; list='$(SUBDIRS)'; for subdir in $$list; do \
130
rev="$$subdir $$rev"; \
131
test "$$subdir" != "." || dot_seen=yes; \
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"; \
140
local_target="$$target"; \
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"
146
list='$(SUBDIRS)'; for subdir in $$list; do \
147
test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
314
$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(top_srcdir)/gnome-doc-utils.make $(am__configure_deps)
316
case '$(am__configure_deps)' in \
318
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
323
echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu gnome2-user-guide/Makefile'; \
324
cd $(top_srcdir) && \
325
$(AUTOMAKE) --gnu gnome2-user-guide/Makefile
327
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
330
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
332
echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
333
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
336
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
337
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
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
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)
160
TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) $(LISP)
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"; \
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))
182
maintainer-clean-tags:
184
distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
186
subdir = gnome2-user-guide
188
351
distdir: $(DISTFILES)
189
@for file in $(DISTFILES); do \
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 \
357
$(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
358
$(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
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 \
364
$(mkdir_p) "$(distdir)$$dir"; \
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; \
372
cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
194
374
test -f $(distdir)/$$file \
195
|| ln $$d/$$file $(distdir)/$$file 2> /dev/null \
196
|| cp -p $$d/$$file $(distdir)/$$file || :; \
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 \
204
chmod 777 $(distdir)/$$subdir; \
205
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir=../$(top_distdir) distdir=../$(distdir)/$$subdir distdir) \
379
$(MAKE) $(AM_MAKEFLAGS) \
380
top_distdir="$(top_distdir)" distdir="$(distdir)" \
214
check: check-recursive
216
installcheck: installcheck-recursive
218
install-exec: install-exec-recursive
221
install-data: install-data-recursive
387
install-exec: install-exec-am
388
install-data: install-data-am
389
uninstall: uninstall-am
223
391
install-am: all-am
224
392
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
225
install: install-recursive
227
uninstall: uninstall-recursive
229
all-redirect: all-recursive
394
installcheck: installcheck-am
231
$(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
232
installdirs: installdirs-recursive
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:
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)
244
407
maintainer-clean-generic:
245
mostlyclean-am: mostlyclean-tags mostlyclean-generic
247
mostlyclean: mostlyclean-recursive
249
clean-am: clean-tags clean-generic mostlyclean-am
251
clean: clean-recursive
253
distclean-am: distclean-tags distclean-generic clean-am
255
distclean: distclean-recursive
257
maintainer-clean-am: maintainer-clean-tags maintainer-clean-generic \
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."
262
maintainer-clean: maintainer-clean-recursive
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
412
clean-am: clean-generic clean-local mostlyclean-am
414
distclean: distclean-am
416
distclean-am: clean-am distclean-generic distclean-local
428
install-data-am: install-data-local
432
install-info: install-info-am
438
maintainer-clean: maintainer-clean-am
440
maintainer-clean-am: distclean-am maintainer-clean-generic \
441
maintainer-clean-local
443
mostlyclean: mostlyclean-am
445
mostlyclean-am: mostlyclean-generic mostlyclean-local
455
uninstall-am: uninstall-info-am uninstall-local
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
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; \
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
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'`; \
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; \
499
cp $@.tmp $@ && rm -f $@.tmp
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)";
507
doc-dist-hook: $(if $(DOC_H_FILE),dist-doc-header)
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)
519
################################################################################
529
DOC_FORMATS ?= docbook
537
################################################################################
539
_xml2po ?= `which xml2po`
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
549
_sklocalstatedir ?= `scrollkeeper-config --pkglocalstatedir`
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
558
rngdoc: $(_RNGDOC_C_DOCS)
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
567
xsldoc: $(_XSLDOC_C_DOCS)
569
$(_DOC_OMF_DB) : $(_DOC_OMF_IN)
570
$(_DOC_OMF_DB) : $(DOC_MODULE)-%.omf : %/$(DOC_MODULE).xml
571
xsltproc -o $@ $(call db2omf_args,$@,$<,'docbook')
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')
581
$(_DOC_DSK_DB) : $(_DOC_DSK_IN)
582
$(_DOC_DSK_DB) : $(DOC_MODULE).db.%.desktop : %/$(DOC_MODULE).xml
585
$(_DOC_DSK_HTML) : $(_DOC_DSK_IN)
586
$(_DOC_DSK_HTML) : $(DOC_MODULE).html.%.desktop : %/$(DOC_MODULE).xml
592
$(_CVSIGNORE_TOP) : $(_CVSIGNORE_TOP_FILES)
593
if ! test -f $@; then touch $@; fi
595
list='$^'; for file in $$list; do \
596
echo $$file >> $@.tmp; \
598
cat $@.tmp | sort | uniq > $@
601
$(_CVSIGNORE_C) : $(_CVSIGNORE_C_FILES)
602
if ! test -f $@; then touch $@; fi
604
list='$^'; for file in $$list; do \
605
echo $$file | sed -e 's/.*\///' >> $@.tmp; \
607
cat $@.tmp | sort | uniq > $@
610
$(_CVSIGNORE_LC) : $(_CVSIGNORE_LC_FILES)
611
if ! test -f $@; then touch $@; fi
613
list='$(wildcard $(_CVSIGNORE_LC_FILES),$(dir $@)/*)'; \
614
for file in $$list; do \
615
echo $$file | sed -e 's/.*\///' >> $@.tmp; \
617
cat $@.tmp | sort | uniq > $@
621
cvsignore: $(_CVSIGNORE_TOP) $(_CVSIGNROE_C) $(_CVSIGNORE_LC)
627
@if ! test -d $(dir $@); then \
628
echo "mkdir $(dir $@)"; \
631
@if test ! -f $@ -a -f $(srcdir)/$@; then \
632
echo "cp $(srcdir)/$@ $@"; \
633
cp "$(srcdir)/$@" "$@"; \
636
list='$(_DOC_C_DOCS_NOENT)'; for doc in $$list; do \
637
if test -f $$doc; then \
638
docs="$$docs ../$$doc"; \
640
docs="$$docs ../$(srcdir)/$$doc"; \
643
if ! test -f $@; then \
644
echo "(cd $(dir $@) && \
645
$(_xml2po) -e $$docs > $(notdir $@).tmp && \
646
cp $(notdir $@).tmp $(notdir $@) && rm -f $(notdir $@).tmp)"; \
648
$(_xml2po) -e $$docs > $(notdir $@).tmp && \
649
cp $(notdir $@).tmp $(notdir $@) && rm -f $(notdir $@).tmp); \
651
echo "(cd $(dir $@) && \
652
$(_xml2po) -e -u $(notdir $@) $$docs)"; \
654
$(_xml2po) -e -u $(notdir $@) $$docs); \
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; \
666
"$${d}$(dir $@)$(patsubst %/$(notdir $@),%,$@).po" \
667
"$${d}C/$(notdir $@)" > $(notdir $@).tmp && \
668
cp $(notdir $@).tmp $(notdir $@) && rm -f $(notdir $@).tmp)
671
$(_DOC_POT): $(_DOC_C_DOCS_NOENT)
672
$(_xml2po) -e -o $@ $^
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,$@)
678
$(_DOC_C_DOCS) $(_DOC_LC_DOCS) \
679
$(_DOC_OMF_ALL) $(_DOC_DSK_ALL) \
680
$(_DOC_HTML_ALL) $(_DOC_POFILES)
682
.PHONY: clean-doc-rngdoc clean-doc-xsldoc clean-doc-omf clean-doc-dsk clean-doc-lc clean-doc-dir
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)
689
rm -f $(_DOC_LC_DOCS)
690
@list='$(_DOC_POFILES)'; for po in $$list; do \
691
if ! test "$$po" -ef "$(srcdir)/$$po"; then \
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"; \
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"; \
713
$(_clean_rngdoc) $(_clean_xsldoc) \
714
$(_clean_omf) $(_clean_dsk) \
715
$(_clean_lc) $(_clean_dir)
717
$(_clean_rngdoc) $(_clean_xsldoc) \
718
$(_clean_omf) $(_clean_dsk) \
719
$(_clean_lc) $(_clean_dir)
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)
729
.PHONY: dist-doc-docs dist-doc-figs dist-doc-omf dist-doc-dsk
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)
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"; \
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"; \
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"; \
758
echo "$(INSTALL_DATA) $$d$$fig $(distdir)/$$fig"; \
759
$(INSTALL_DATA) "$$d$$fig" "$(distdir)/$$fig"; \
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))"
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))"
773
.PHONY: check-doc-docs check-doc-omf
775
$(if $(DOC_MODULE),check-doc-docs) \
776
$(if $(_DOC_OMF_IN),check-doc-omf)
778
check-doc-docs: $(_DOC_C_DOCS) $(_DOC_LC_DOCS)
779
@for lc in C $(DOC_LINGUAS); do \
785
xmlpath="$$lc:$(srcdir)/$$lc"; \
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"; \
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; \
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)
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; \
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; \
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 \
826
figfile="$(srcdir)/C/$$fig"; \
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"; \
834
figbase=`echo $$fig | sed -e 's/^.*\///'`; \
835
echo "$(INSTALL_DATA) $$figfile $$figdir$$figbase"; \
836
$(INSTALL_DATA) "$$figfile" "$$figdir$$figbase"; \
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; \
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)"; \
857
.PHONY: uninstall-doc-docs uninstall-doc-html uninstall-doc-figs uninstall-doc-omf uninstall-doc-dsk
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)
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"; \
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"; \
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"; \
883
echo "rm -f $(DESTDIR)$(OMF_DIR)/$(DOC_MODULE)/$$omf"; \
884
rm -f "$(DESTDIR)$(OMF_DIR)/$(DOC_MODULE)/$$omf"; \
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.