1
# Makefile.in generated by automake 1.9.6 from Makefile.am.
4
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5
# 2003, 2004, 2005 Free Software Foundation, Inc.
6
# This Makefile.in is free software; the Free Software Foundation
7
# gives unlimited permission to copy and/or distribute it,
8
# with or without modifications, as long as this notice is preserved.
10
# This program is distributed in the hope that it will be useful,
11
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
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
################################################################################
41
top_srcdir = @top_srcdir@
43
pkgdatadir = $(datadir)/@PACKAGE@
44
pkglibdir = $(libdir)/@PACKAGE@
45
pkgincludedir = $(includedir)/@PACKAGE@
47
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
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)
60
build_triplet = @build@
62
DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
63
$(top_srcdir)/gnome-doc-utils.make
65
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
66
am__aclocal_m4_deps = $(top_srcdir)/m4/gnome-doc-utils.m4 \
67
$(top_srcdir)/m4/intltool.m4 $(top_srcdir)/configure.in
68
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
70
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
71
CONFIG_HEADER = $(top_builddir)/config.h
75
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
77
ALL_LINGUAS = @ALL_LINGUAS@
78
AMDEP_FALSE = @AMDEP_FALSE@
79
AMDEP_TRUE = @AMDEP_TRUE@
83
AUTOHEADER = @AUTOHEADER@
87
CATOBJEXT = @CATOBJEXT@
89
CCDEPMODE = @CCDEPMODE@
95
CXXDEPMODE = @CXXDEPMODE@
97
CYGPATH_W = @CYGPATH_W@
98
DATADIRNAME = @DATADIRNAME@
101
DOC_USER_FORMATS = @DOC_USER_FORMATS@
107
ENABLE_SK_FALSE = @ENABLE_SK_FALSE@
108
ENABLE_SK_TRUE = @ENABLE_SK_TRUE@
112
GCONFTOOL = @GCONFTOOL@
113
GCONF_SCHEMAS_INSTALL_FALSE = @GCONF_SCHEMAS_INSTALL_FALSE@
114
GCONF_SCHEMAS_INSTALL_TRUE = @GCONF_SCHEMAS_INSTALL_TRUE@
115
GCONF_SCHEMA_CONFIG_SOURCE = @GCONF_SCHEMA_CONFIG_SOURCE@
116
GCONF_SCHEMA_FILE_DIR = @GCONF_SCHEMA_FILE_DIR@
117
GDU_MODULE_VERSION_CHECK_CFLAGS = @GDU_MODULE_VERSION_CHECK_CFLAGS@
118
GDU_MODULE_VERSION_CHECK_LIBS = @GDU_MODULE_VERSION_CHECK_LIBS@
119
GETTEXT_PACKAGE = @GETTEXT_PACKAGE@
120
GMOFILES = @GMOFILES@
122
GNOME14_CFLAGS = @GNOME14_CFLAGS@
123
GNOME14_LIBS = @GNOME14_LIBS@
124
GNOME_14 = @GNOME_14@
125
GNOME_CFLAGS = @GNOME_CFLAGS@
126
GNOME_LIBS = @GNOME_LIBS@
128
GSTREAMER_CFLAGS = @GSTREAMER_CFLAGS@
129
GSTREAMER_LIBS = @GSTREAMER_LIBS@
130
HELP_DIR = @HELP_DIR@
131
INSTALL_DATA = @INSTALL_DATA@
132
INSTALL_PROGRAM = @INSTALL_PROGRAM@
133
INSTALL_SCHEMAS_FALSE = @INSTALL_SCHEMAS_FALSE@
134
INSTALL_SCHEMAS_TRUE = @INSTALL_SCHEMAS_TRUE@
135
INSTALL_SCRIPT = @INSTALL_SCRIPT@
136
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
137
INSTOBJEXT = @INSTOBJEXT@
138
INTLLIBS = @INTLLIBS@
139
INTLTOOL_CAVES_RULE = @INTLTOOL_CAVES_RULE@
140
INTLTOOL_DESKTOP_RULE = @INTLTOOL_DESKTOP_RULE@
141
INTLTOOL_DIRECTORY_RULE = @INTLTOOL_DIRECTORY_RULE@
142
INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@
143
INTLTOOL_ICONV = @INTLTOOL_ICONV@
144
INTLTOOL_KBD_RULE = @INTLTOOL_KBD_RULE@
145
INTLTOOL_KEYS_RULE = @INTLTOOL_KEYS_RULE@
146
INTLTOOL_MERGE = @INTLTOOL_MERGE@
147
INTLTOOL_MSGFMT = @INTLTOOL_MSGFMT@
148
INTLTOOL_MSGMERGE = @INTLTOOL_MSGMERGE@
149
INTLTOOL_OAF_RULE = @INTLTOOL_OAF_RULE@
150
INTLTOOL_PERL = @INTLTOOL_PERL@
151
INTLTOOL_PONG_RULE = @INTLTOOL_PONG_RULE@
152
INTLTOOL_PROP_RULE = @INTLTOOL_PROP_RULE@
153
INTLTOOL_SCHEMAS_RULE = @INTLTOOL_SCHEMAS_RULE@
154
INTLTOOL_SERVER_RULE = @INTLTOOL_SERVER_RULE@
155
INTLTOOL_SERVICE_RULE = @INTLTOOL_SERVICE_RULE@
156
INTLTOOL_SHEET_RULE = @INTLTOOL_SHEET_RULE@
157
INTLTOOL_SOUNDLIST_RULE = @INTLTOOL_SOUNDLIST_RULE@
158
INTLTOOL_THEME_RULE = @INTLTOOL_THEME_RULE@
159
INTLTOOL_UI_RULE = @INTLTOOL_UI_RULE@
160
INTLTOOL_UPDATE = @INTLTOOL_UPDATE@
161
INTLTOOL_XAM_RULE = @INTLTOOL_XAM_RULE@
162
INTLTOOL_XGETTEXT = @INTLTOOL_XGETTEXT@
163
INTLTOOL_XML_NOMERGE_RULE = @INTLTOOL_XML_NOMERGE_RULE@
164
INTLTOOL_XML_RULE = @INTLTOOL_XML_RULE@
171
LTLIBOBJS = @LTLIBOBJS@
173
MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
174
MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
175
MAKEINFO = @MAKEINFO@
176
MKINSTALLDIRS = @MKINSTALLDIRS@
181
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
182
PACKAGE_NAME = @PACKAGE_NAME@
183
PACKAGE_STRING = @PACKAGE_STRING@
184
PACKAGE_TARNAME = @PACKAGE_TARNAME@
185
PACKAGE_VERSION = @PACKAGE_VERSION@
186
PATH_SEPARATOR = @PATH_SEPARATOR@
187
PKG_CONFIG = @PKG_CONFIG@
190
PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@
191
PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@
193
SET_MAKE = @SET_MAKE@
198
XGETTEXT = @XGETTEXT@
199
ac_ct_CC = @ac_ct_CC@
200
ac_ct_CXX = @ac_ct_CXX@
201
ac_ct_F77 = @ac_ct_F77@
202
am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
203
am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
204
am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
205
am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
206
am__include = @am__include@
207
am__leading_dot = @am__leading_dot@
208
am__quote = @am__quote@
210
am__untar = @am__untar@
213
build_alias = @build_alias@
214
build_cpu = @build_cpu@
215
build_os = @build_os@
216
build_vendor = @build_vendor@
218
datarootdir = @datarootdir@
221
exec_prefix = @exec_prefix@
223
host_alias = @host_alias@
224
host_cpu = @host_cpu@
226
host_vendor = @host_vendor@
228
includedir = @includedir@
230
install_sh = @install_sh@
232
libexecdir = @libexecdir@
233
localedir = @localedir@
234
localstatedir = @localstatedir@
237
oldincludedir = @oldincludedir@
240
program_transform_name = @program_transform_name@
243
sharedstatedir = @sharedstatedir@
244
sysconfdir = @sysconfdir@
245
target_alias = @target_alias@
246
_clean_doc_header = $(if $(DOC_H_FILE),clean-doc-header)
247
_DOC_REAL_FORMATS = $(if $(DOC_USER_FORMATS),$(DOC_USER_FORMATS),$(DOC_FORMATS))
248
_DOC_REAL_LINGUAS = $(if $(filter environment,$(origin LINGUAS)), \
249
$(filter $(LINGUAS),$(DOC_LINGUAS)), \
253
################################################################################
255
--stringparam rngdoc.id \
256
$(shell echo $(basename $(notdir $(1))) | sed -e 's/[^A-Za-z0-9_-]/_/g')\
257
$(_rngdoc) $(filter %/$(basename $(notdir $(1))).rng,$(_RNGDOC_RNGS))
259
_RNGDOC_RNGS = $(sort $(patsubst ./%, %, $(foreach dir,$(RNGDOC_DIRS), \
260
$(wildcard $(dir)/*.rng) $(wildcard $(srcdir)/$(dir)/*.rng))))
262
_RNGDOC_C_DOCS = $(foreach rng,$(_RNGDOC_RNGS), C/$(basename $(notdir $(rng))).xml)
264
################################################################################
266
# FIXME: _XSLDOC_XSLS is getting dupes with relative/absolute in some
267
# cases. Right now, I'm just taking the first, but that's just a bad
268
# work-around. Fix the real problem.
270
--stringparam xsldoc.id \
271
$(shell echo $(basename $(notdir $(1))) | sed -e 's/[^A-Za-z0-9_-]/_/g')\
273
$(word 1,$(filter %/$(basename $(notdir $(1))).xsl,$(_XSLDOC_XSLS)))
275
_XSLDOC_XSLS = $(sort $(patsubst ./%, %, $(foreach dir,$(XSLDOC_DIRS), \
276
$(wildcard $(dir)/*.xsl) $(wildcard $(srcdir)/$(dir)/*.xsl))))
278
_XSLDOC_C_DOCS = $(foreach xsl,$(_XSLDOC_XSLS), C/$(basename $(notdir $(xsl))).xml)
280
################################################################################
282
--stringparam db2omf.basename $(DOC_MODULE) \
283
--stringparam db2omf.format $(3) \
284
--stringparam db2omf.dtd \
285
$(shell xmllint --format $(2) | grep -h PUBLIC | head -n 1 \
286
| sed -e 's/.*PUBLIC \(\"[^\"]*\"\).*/\1/') \
287
--stringparam db2omf.lang $(notdir $(patsubst %/$(notdir $(2)),%,$(2))) \
288
--stringparam db2omf.omf_dir "$(OMF_DIR)" \
289
--stringparam db2omf.help_dir "$(HELP_DIR)" \
290
--stringparam db2omf.omf_in "`pwd`/$(_DOC_OMF_IN)" \
293
_DOC_OMF_IN = $(if $(DOC_MODULE),$(wildcard $(srcdir)/$(DOC_MODULE).omf.in))
294
_DOC_OMF_DB = $(if $(_DOC_OMF_IN), \
295
$(foreach lc,C $(_DOC_REAL_LINGUAS),$(DOC_MODULE)-$(lc).omf))
297
_DOC_OMF_HTML = $(if $(_DOC_OMF_IN), \
298
$(foreach lc,C $(_DOC_REAL_LINGUAS),$(DOC_MODULE)-html-$(lc).omf))
303
$(if $(filter docbook,$(_DOC_REAL_FORMATS)),$(_DOC_OMF_DB)) \
304
$(if $(filter html HTML,$(_DOC_REAL_FORMATS)),$(_DOC_OMF_HTML))
307
################################################################################
308
_CVSIGNORE_TOP = $(if $(DOC_MODULE), .cvsignore)
309
_CVSIGNORE_C = $(if $(DOC_MODULE), C/.cvsignore)
310
_CVSIGNORE_LC = $(if $(DOC_MODULE),$(foreach lc,$(_DOC_REAL_LINGUAS),$(lc)/.cvsignore))
311
_CVSIGNORE_TOP_FILES = $(_DOC_OMF_ALL) $(_DOC_DSK_ALL)
312
_CVSIGNORE_C_FILES = $(_RNGDOC_C_DOCS) $(_XSLDOC_C_DOCS)
313
_CVSIGNORE_LC_FILES = $(_DOC_LC_DOCS)
315
################################################################################
316
_DOC_C_MODULE = $(if $(DOC_MODULE),C/$(DOC_MODULE).xml)
317
_DOC_C_ENTITIES = $(foreach ent,$(DOC_ENTITIES),C/$(ent))
318
_DOC_C_INCLUDES = $(foreach inc,$(DOC_INCLUDES),C/$(inc))
320
$(_DOC_C_ENTITIES) $(_DOC_C_INCLUDES) \
321
$(_RNGDOC_C_DOCS) $(_XSLDOC_C_DOCS) \
324
_DOC_C_DOCS_NOENT = \
325
$(_DOC_C_MODULE) $(_DOC_C_INCLUDES) \
326
$(_RNGDOC_C_DOCS) $(_XSLDOC_C_DOCS)
328
_DOC_C_FIGURES = $(if $(DOC_FIGURES), \
329
$(foreach fig,$(DOC_FIGURES),C/$(fig)), \
330
$(patsubst $(srcdir)/%,%,$(wildcard $(srcdir)/C/figures/*.png)))
333
# FIXME: probably have to shell escape to determine the file names
334
_DOC_C_HTML = $(foreach f, \
335
$(shell xsltproc --xinclude \
336
--stringparam db.chunk.basename "$(DOC_MODULE)" \
337
$(_chunks) "C/$(DOC_MODULE).xml"), \
341
###############################################################################
342
_DOC_POFILES = $(if $(DOC_MODULE), \
343
$(foreach lc,$(_DOC_REAL_LINGUAS),$(lc)/$(lc).po))
345
_DOC_LC_MODULES = $(if $(DOC_MODULE), \
346
$(foreach lc,$(_DOC_REAL_LINGUAS),$(lc)/$(DOC_MODULE).xml))
349
$(foreach lc,$(_DOC_REAL_LINGUAS),$(foreach inc,$(_DOC_C_INCLUDES), \
350
$(lc)/$(notdir $(inc)) ))
353
$(foreach lc,$(_DOC_REAL_LINGUAS),$(foreach doc,$(_RNGDOC_C_DOCS), \
354
$(lc)/$(notdir $(doc)) ))
357
$(foreach lc,$(_DOC_REAL_LINGUAS),$(foreach doc,$(_XSLDOC_C_DOCS), \
358
$(lc)/$(notdir $(doc)) ))
361
# FIXME: probably have to shell escape to determine the file names
363
$(foreach lc,$(_DOC_REAL_LINGUAS),$(foreach doc,$(_DOC_C_HTML), \
364
$(lc)/$(notdir $(doc)) ))
367
$(_DOC_LC_MODULES) $(_DOC_LC_INCLUDES) \
368
$(_RNGDOC_LC_DOCS) $(_XSLDOC_LC_DOCS) \
369
$(if $(filter html HTML,$(_DOC_REAL_FORMATS)),$(_DOC_LC_HTML))
371
_DOC_LC_FIGURES = $(foreach lc,$(_DOC_REAL_LINGUAS), \
372
$(patsubst C/%,$(lc)/%,$(_DOC_C_FIGURES)) )
375
$(foreach fig,$(_DOC_C_FIGURES), $(foreach lc,C $(_DOC_REAL_LINGUAS), \
376
$(wildcard $(srcdir)/$(lc)/$(patsubst C/%,%,$(fig))) ))
378
_DOC_POT = $(if $(DOC_MODULE),$(DOC_MODULE).pot)
380
################################################################################
381
_DOC_HTML_ALL = $(if $(filter html HTML,$(_DOC_REAL_FORMATS)), \
382
$(_DOC_C_HTML) $(_DOC_LC_HTML))
384
_DOC_HTML_TOPS = $(foreach lc,C $(_DOC_REAL_LINGUAS),$(lc)/$(DOC_MODULE).xhtml)
385
@ENABLE_SK_FALSE@_ENABLE_SK = false
387
################################################################################
388
@ENABLE_SK_TRUE@_ENABLE_SK = true
389
_clean_rngdoc = $(if $(RNGDOC_DIRS),clean-doc-rngdoc)
390
_clean_xsldoc = $(if $(XSLDOC_DIRS),clean-doc-xsldoc)
391
_clean_omf = $(if $(_DOC_OMF_IN),clean-doc-omf)
392
_clean_dsk = $(if $(_DOC_DSK_IN),clean-doc-dsk)
393
_clean_lc = $(if $(_DOC_REAL_LINGUAS),clean-doc-lc)
394
_clean_dir = $(if $(DOC_MODULE),clean-doc-dir)
395
DOC_MODULE = gnomeradio
396
DOC_ENTITIES = legal.xml
399
figures/freq-controls.png \
400
figures/misc-controls.png \
401
figures/presets-box.png \
402
figures/recording-general.png \
403
figures/recording-mp3.png \
404
figures/recording-wav.png \
405
figures/recording_status.png \
406
figures/settings-misc.png \
407
figures/settings-presets.png \
408
figures/status-window.png \
409
figures/volume-controls.png
415
$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(top_srcdir)/gnome-doc-utils.make $(am__configure_deps)
417
case '$(am__configure_deps)' in \
419
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
424
echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu help/Makefile'; \
425
cd $(top_srcdir) && \
426
$(AUTOMAKE) --gnu help/Makefile
428
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
431
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
433
echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
434
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
437
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
438
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
440
$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
441
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
442
$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
443
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
461
distdir: $(DISTFILES)
462
$(mkdir_p) $(distdir)/..
463
@srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
464
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
465
list='$(DISTFILES)'; for file in $$list; do \
467
$(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
468
$(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
470
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
471
dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
472
if test "$$dir" != "$$file" && test "$$dir" != "."; then \
474
$(mkdir_p) "$(distdir)$$dir"; \
478
if test -d $$d/$$file; then \
479
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
480
cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
482
cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
484
test -f $(distdir)/$$file \
485
|| cp -p $$d/$$file $(distdir)/$$file \
489
$(MAKE) $(AM_MAKEFLAGS) \
490
top_distdir="$(top_distdir)" distdir="$(distdir)" \
497
install-exec: install-exec-am
498
install-data: install-data-am
499
uninstall: uninstall-am
502
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
504
installcheck: installcheck-am
506
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
507
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
508
`test -z '$(STRIP)' || \
509
echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
515
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
517
maintainer-clean-generic:
518
@echo "This command is intended for maintainers to use"
519
@echo "it deletes files that may require special tools to rebuild."
522
clean-am: clean-generic clean-libtool clean-local mostlyclean-am
524
distclean: distclean-am
526
distclean-am: clean-am distclean-generic distclean-libtool \
539
install-data-am: install-data-local
543
install-info: install-info-am
549
maintainer-clean: maintainer-clean-am
551
maintainer-clean-am: distclean-am maintainer-clean-generic \
552
maintainer-clean-local
554
mostlyclean: mostlyclean-am
556
mostlyclean-am: mostlyclean-generic mostlyclean-libtool \
567
uninstall-am: uninstall-info-am uninstall-local
569
.PHONY: all all-am check check-am clean clean-generic clean-libtool \
570
clean-local dist-hook distclean distclean-generic \
571
distclean-libtool distclean-local distdir dvi dvi-am html \
572
html-am info info-am install install-am install-data \
573
install-data-am install-data-local install-exec \
574
install-exec-am install-info install-info-am install-man \
575
install-strip installcheck installcheck-am installdirs \
576
maintainer-clean maintainer-clean-generic \
577
maintainer-clean-local mostlyclean mostlyclean-generic \
578
mostlyclean-libtool mostlyclean-local pdf pdf-am ps ps-am \
579
uninstall uninstall-am uninstall-info-am uninstall-local
586
$(DOC_H_FILE): $(DOC_H_DOCS);
587
@rm -f $@.tmp; touch $@.tmp;
588
echo 'const gchar* documentation_credits[] = {' >> $@.tmp
589
list='$(DOC_H_DOCS)'; for doc in $$list; do \
590
xmlpath="`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`:$(srcdir)/`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`"; \
591
if ! test -f "$$doc"; then doc="$(srcdir)/$$doc"; fi; \
592
xsltproc --path "$$xmlpath" $(_credits) $$doc; \
594
| 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}}' \
595
| sed -e 's/\\/\\\\/' -e 's/"/\\"/' -e 's/\(.*\)/\t"\1",/' >> $@.tmp
596
echo ' NULL' >> $@.tmp
599
list='$(DOC_H_DOCS)'; for doc in $$list; do \
600
xmlpath="`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`:$(srcdir)/`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`"; \
601
if ! test -f "$$doc"; then doc="$(srcdir)/$$doc"; fi; \
602
docid=`echo "$$doc" | sed -e 's/.*\/\([^/]*\)\.xml/\1/' \
603
| sed -e 's/[^a-zA-Z_]/_/g' | tr 'a-z' 'A-Z'`; \
605
ids=`xsltproc --xinclude --path "$$xmlpath" $(_ids) $$doc`; \
606
for id in $$ids; do \
607
echo '#define HELP_'`echo $$docid`'_'`echo $$id \
608
| sed -e 's/[^a-zA-Z_]/_/g' | tr 'a-z' 'A-Z'`' "'$$id'"' >> $@.tmp; \
612
cp $@.tmp $@ && rm -f $@.tmp
614
.PHONY: dist-doc-header
615
dist-doc-header: $(DOC_H_FILE)
616
@if test -f "$(DOC_H_FILE)"; then d=; else d="$(srcdir)/"; fi; \
617
echo "$(INSTALL_DATA) $${d}$(DOC_H_FILE) $(distdir)/$(DOC_H_FILE)"; \
618
$(INSTALL_DATA) "$${d}$(DOC_H_FILE)" "$(distdir)/$(DOC_H_FILE)";
620
doc-dist-hook: $(if $(DOC_H_FILE),dist-doc-header)
622
.PHONY: clean-doc-header
623
clean-local: $(_clean_doc_header)
624
distclean-local: $(_clean_doc_header)
625
mostlyclean-local: $(_clean_doc_header)
626
maintainer-clean-local: $(_clean_doc_header)
632
################################################################################
642
DOC_FORMATS ?= docbook
650
################################################################################
652
_xml2po ?= `which xml2po`
654
_db2html ?= `$(PKG_CONFIG) --variable db2html gnome-doc-utils`
655
_db2omf ?= `$(PKG_CONFIG) --variable db2omf gnome-doc-utils`
656
_rngdoc ?= `$(PKG_CONFIG) --variable rngdoc gnome-doc-utils`
657
_xsldoc ?= `$(PKG_CONFIG) --variable xsldoc gnome-doc-utils`
658
_chunks ?= `$(PKG_CONFIG) --variable xmldir gnome-doc-utils`/gnome/xslt/docbook/utils/chunks.xsl
659
_credits ?= `$(PKG_CONFIG) --variable xmldir gnome-doc-utils`/gnome/xslt/docbook/utils/credits.xsl
660
_ids ?= `$(PKG_CONFIG) --variable xmldir gnome-doc-utils`/gnome/xslt/docbook/utils/ids.xsl
662
_sklocalstatedir ?= `scrollkeeper-config --pkglocalstatedir`
664
# FIXME: Fix the dependancies
665
$(_RNGDOC_C_DOCS) : $(_RNGDOC_RNGS)
666
if ! test -d $(dir $@); then mkdir $(dir $@); fi;
667
xsltproc $(call rngdoc_args,$@,$<) | xmllint --c14n - > $@.tmp && \
668
cp $@.tmp $@ && rm -f $@.tmp
671
rngdoc: $(_RNGDOC_C_DOCS)
673
# FIXME: Fix the dependancies
674
$(_XSLDOC_C_DOCS) : $(_XSLDOC_XSLS)
675
if ! test -d $(dir $@); then mkdir $(dir $@); fi;
676
xsltproc $(call xsldoc_args,$@,$<) | xmllint --c14n - > $@.tmp && \
677
cp $@.tmp $@ && rm -f $@.tmp
680
xsldoc: $(_XSLDOC_C_DOCS)
682
$(_DOC_OMF_DB) : $(_DOC_OMF_IN)
683
$(_DOC_OMF_DB) : $(DOC_MODULE)-%.omf : %/$(DOC_MODULE).xml
684
xsltproc -o $@ $(call db2omf_args,$@,$<,'docbook')
686
$(_DOC_OMF_HTML) : $(_DOC_OMF_IN)
687
$(_DOC_OMF_HTML) : $(DOC_MODULE)-html-%.omf : %/$(DOC_MODULE).xml
688
xsltproc -o $@ $(call db2omf_args,$@,$<,'xhtml')
693
$(_CVSIGNORE_TOP) : $(_CVSIGNORE_TOP_FILES)
694
if ! test -f $@; then touch $@; fi
696
list='$^'; for file in $$list; do \
697
echo $$file >> $@.tmp; \
699
cat $@.tmp | sort | uniq > $@
702
$(_CVSIGNORE_C) : $(_CVSIGNORE_C_FILES)
703
if ! test -f $@; then touch $@; fi
705
list='$^'; for file in $$list; do \
706
echo $$file | sed -e 's/.*\///' >> $@.tmp; \
708
cat $@.tmp | sort | uniq > $@
711
$(_CVSIGNORE_LC) : $(_CVSIGNORE_LC_FILES)
712
if ! test -f $@; then touch $@; fi
714
list='$(wildcard $(_CVSIGNORE_LC_FILES),$(dir $@)/*)'; \
715
for file in $$list; do \
716
echo $$file | sed -e 's/.*\///' >> $@.tmp; \
718
cat $@.tmp | sort | uniq > $@
722
cvsignore: $(_CVSIGNORE_TOP) $(_CVSIGNROE_C) $(_CVSIGNORE_LC)
728
@if ! test -d $(dir $@); then \
729
echo "mkdir $(dir $@)"; \
732
@if test ! -f $@ -a -f $(srcdir)/$@; then \
733
echo "cp $(srcdir)/$@ $@"; \
734
cp "$(srcdir)/$@" "$@"; \
737
list='$(_DOC_C_DOCS_NOENT)'; for doc in $$list; do \
738
if test -f $$doc; then \
739
docs="$$docs ../$$doc"; \
741
docs="$$docs ../$(srcdir)/$$doc"; \
744
if ! test -f $@; then \
745
echo "(cd $(dir $@) && \
746
$(_xml2po) -e $$docs > $(notdir $@).tmp && \
747
cp $(notdir $@).tmp $(notdir $@) && rm -f $(notdir $@).tmp)"; \
749
$(_xml2po) -e $$docs > $(notdir $@).tmp && \
750
cp $(notdir $@).tmp $(notdir $@) && rm -f $(notdir $@).tmp); \
752
echo "(cd $(dir $@) && \
753
$(_xml2po) -e -u $(notdir $@) $$docs)"; \
755
$(_xml2po) -e -u $(notdir $@) $$docs); \
758
# FIXME: fix the dependancy
759
# FIXME: hook xml2po up
760
$(_DOC_LC_DOCS) : $(_DOC_POFILES)
761
$(_DOC_LC_DOCS) : $(_DOC_C_DOCS)
762
if ! test -d $(dir $@); then mkdir $(dir $@); fi
763
case "$(srcdir)" in /*) sd="$(srcdir)";; *) sd="../$(srcdir)";; esac; \
764
if [ -f "C/$(notdir $@)" ]; then d="../"; else d="$$sd/"; fi; \
767
"$${d}$(dir $@)$(patsubst %/$(notdir $@),%,$@).po" \
768
"$${d}C/$(notdir $@)" > $(notdir $@).tmp && \
769
cp $(notdir $@).tmp $(notdir $@) && rm -f $(notdir $@).tmp)
772
$(_DOC_POT): $(_DOC_C_DOCS_NOENT)
773
$(_xml2po) -e -o $@ $^
775
$(_DOC_HTML_TOPS): $(_DOC_C_DOCS) $(_DOC_LC_DOCS)
776
xsltproc -o $@ --xinclude --param db.chunk.chunk_top "false()" --stringparam db.chunk.basename "$(DOC_MODULE)" --stringparam db.chunk.extension ".xhtml" $(_db2html) $(patsubst %.xhtml,%.xml,$@)
779
$(_DOC_C_DOCS) $(_DOC_LC_DOCS) \
780
$(_DOC_OMF_ALL) $(_DOC_DSK_ALL) \
781
$(_DOC_HTML_ALL) $(_DOC_POFILES)
783
.PHONY: clean-doc-rngdoc clean-doc-xsldoc clean-doc-omf clean-doc-dsk clean-doc-lc clean-doc-dir
785
clean-doc-rngdoc: ; rm -f $(_RNGDOC_C_DOCS) $(_RNGDOC_LC_DOCS)
786
clean-doc-xsldoc: ; rm -f $(_XSLDOC_C_DOCS) $(_XSLDOC_LC_DOCS)
787
clean-doc-omf: ; rm -f $(_DOC_OMF_DB) $(_DOC_OMF_HTML)
788
clean-doc-dsk: ; rm -f $(_DOC_DSK_DB) $(_DOC_DSK_HTML)
790
rm -f $(_DOC_LC_DOCS)
791
@list='$(_DOC_POFILES)'; for po in $$list; do \
792
if ! test "$$po" -ef "$(srcdir)/$$po"; then \
797
@for lc in C $(_DOC_REAL_LINGUAS); do \
798
if test -f "$$lc/.xml2po.mo"; then \
799
echo "rm -f $$lc/.xml2po.mo"; \
800
rm -f "$$lc/.xml2po.mo"; \
804
@for lc in C $(_DOC_REAL_LINGUAS); do \
805
for dir in `find $$lc -depth -type d`; do \
806
if ! test $$dir -ef $(srcdir)/$$dir; then \
807
echo "rmdir $$dir"; \
814
$(_clean_rngdoc) $(_clean_xsldoc) \
815
$(_clean_omf) $(_clean_dsk) \
816
$(_clean_lc) $(_clean_dir)
818
$(_clean_rngdoc) $(_clean_xsldoc) \
819
$(_clean_omf) $(_clean_dsk) \
820
$(_clean_lc) $(_clean_dir)
822
$(_clean_rngdoc) $(_clean_xsldoc) \
823
$(_clean_omf) $(_clean_dsk) \
824
$(_clean_lc) $(_clean_dir)
825
maintainer-clean-local: \
826
$(_clean_rngdoc) $(_clean_xsldoc) \
827
$(_clean_omf) $(_clean_dsk) \
828
$(_clean_lc) $(_clean_dir)
830
.PHONY: dist-doc-docs dist-doc-figs dist-doc-omf dist-doc-dsk
832
$(if $(DOC_MODULE),dist-doc-docs) \
833
$(if $(_DOC_C_FIGURES),dist-doc-figs) \
834
$(if $(_DOC_OMF_IN),dist-doc-omf)
835
# $(if $(_DOC_DSK_IN),dist-doc-dsk)
837
dist-doc-docs: $(_DOC_C_DOCS) $(_DOC_LC_DOCS) $(_DOC_POFILES)
838
@for lc in C $(_DOC_REAL_LINGUAS); do \
839
echo " $(mkinstalldirs) $(distdir)/$$lc"; \
840
$(mkinstalldirs) "$(distdir)/$$lc"; \
842
@list='$(_DOC_C_DOCS) $(_DOC_LC_DOCS) $(_DOC_POFILES)'; \
843
for doc in $$list; do \
844
if test -f "$$doc"; then d=; else d="$(srcdir)/"; fi; \
845
echo "$(INSTALL_DATA) $$d$$doc $(distdir)/$$doc"; \
846
$(INSTALL_DATA) "$$d$$doc" "$(distdir)/$$doc"; \
849
dist-doc-figs: $(_DOC_SRC_FIGURES)
850
@list='$(_DOC_C_FIGURES) $(_DOC_LC_FIGURES)'; \
851
for fig in $$list; do \
852
if test -f "$$fig"; then d=; else d="$(srcdir)/"; fi; \
853
if test -f "$$d$$fig"; then \
854
figdir=`echo $$fig | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`; \
855
if ! test -d "$(distdir)/$$figdir"; then \
856
echo "$(mkinstalldirs) $(distdir)/$$figdir"; \
857
$(mkinstalldirs) "$(distdir)/$$figdir"; \
859
echo "$(INSTALL_DATA) $$d$$fig $(distdir)/$$fig"; \
860
$(INSTALL_DATA) "$$d$$fig" "$(distdir)/$$fig"; \
865
@if test -f "$(_DOC_OMF_IN)"; then d=; else d="$(srcdir)/"; fi; \
866
echo "$(INSTALL_DATA) $$d$(_DOC_OMF_IN) $(distdir)/$(notdir $(_DOC_OMF_IN))"; \
867
$(INSTALL_DATA) "$$d$(_DOC_OMF_IN)" "$(distdir)/$(notdir $(_DOC_OMF_IN))"
870
@if test -f "$(_DOC_DSK_IN)"; then d=; else d="$(srcdir)/"; fi; \
871
echo "$(INSTALL_DATA) $$d$(_DOC_DSK_IN) $(distdir)/$(notdir $(_DOC_DSK_IN))"; \
872
$(INSTALL_DATA) "$$d$(_DOC_DSK_IN)" "$(distdir)/$(notdir $(_DOC_DSK_IN))"
874
.PHONY: check-doc-docs check-doc-omf
876
$(if $(DOC_MODULE),check-doc-docs) \
877
$(if $(_DOC_OMF_IN),check-doc-omf)
879
check-doc-docs: $(_DOC_C_DOCS) $(_DOC_LC_DOCS)
880
@for lc in C $(_DOC_REAL_LINGUAS); do \
886
xmlpath="$$lc:$(srcdir)/$$lc"; \
888
echo "xmllint --noout --noent --path $$xmlpath --xinclude --postvalid $$d$$lc/$(DOC_MODULE).xml"; \
889
xmllint --noout --noent --path "$$xmlpath" --xinclude --postvalid "$$d$$lc/$(DOC_MODULE).xml"; \
892
check-doc-omf: $(_DOC_OMF_ALL)
893
@list='$(_DOC_OMF_ALL)'; for omf in $$list; do \
894
echo "xmllint --noout --dtdvalid 'http://scrollkeeper.sourceforge.net/dtds/scrollkeeper-omf-1.0/scrollkeeper-omf.dtd' $$omf"; \
895
xmllint --noout --dtdvalid 'http://scrollkeeper.sourceforge.net/dtds/scrollkeeper-omf-1.0/scrollkeeper-omf.dtd' $$omf; \
898
.PHONY: install-doc-docs install-doc-html install-doc-figs install-doc-omf install-doc-dsk
899
install-data-local: \
900
$(if $(DOC_MODULE),install-doc-docs) \
901
$(if $(_DOC_HTML_ALL),install-doc-html) \
902
$(if $(_DOC_C_FIGURES),install-doc-figs) \
903
$(if $(_DOC_OMF_IN),install-doc-omf)
904
# $(if $(_DOC_DSK_IN),install-doc-dsk)
907
@for lc in C $(_DOC_REAL_LINGUAS); do \
908
echo "$(mkinstalldirs) $(DESTDIR)$(HELP_DIR)/$(DOC_MODULE)/$$lc"; \
909
$(mkinstalldirs) $(DESTDIR)$(HELP_DIR)/$(DOC_MODULE)/$$lc; \
911
@list='$(_DOC_C_DOCS) $(_DOC_LC_DOCS)'; for doc in $$list; do \
912
if test -f "$$doc"; then d=; else d="$(srcdir)/"; fi; \
913
echo "$(INSTALL_DATA) $$d$$doc $(DESTDIR)$(HELP_DIR)/$(DOC_MODULE)/$$doc"; \
914
$(INSTALL_DATA) $$d$$doc $(DESTDIR)$(HELP_DIR)/$(DOC_MODULE)/$$doc; \
918
@list='$(patsubst C/%,%,$(_DOC_C_FIGURES))'; for fig in $$list; do \
919
for lc in C $(_DOC_REAL_LINGUAS); do \
920
if test -f "$$lc/$$fig"; then \
921
figfile="$$lc/$$fig"; \
922
elif test -f "$(srcdir)/$$lc/$$fig"; then \
923
figfile="$(srcdir)/$$lc/$$fig"; \
924
elif test -f "C/$$fig"; then \
927
figfile="$(srcdir)/C/$$fig"; \
929
figdir="$$lc/"`echo $$fig | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`; \
930
figdir="$(DESTDIR)$(HELP_DIR)/$(DOC_MODULE)/$$figdir"; \
931
if ! test -d "$$figdir"; then \
932
echo "$(mkinstalldirs) $$figdir"; \
933
$(mkinstalldirs) "$$figdir"; \
935
figbase=`echo $$fig | sed -e 's/^.*\///'`; \
936
echo "$(INSTALL_DATA) $$figfile $$figdir$$figbase"; \
937
$(INSTALL_DATA) "$$figfile" "$$figdir$$figbase"; \
945
$(mkinstalldirs) $(DESTDIR)$(OMF_DIR)/$(DOC_MODULE)
946
@list='$(_DOC_OMF_ALL)'; for omf in $$list; do \
947
echo "$(INSTALL_DATA) $$omf $(DESTDIR)$(OMF_DIR)/$(DOC_MODULE)/$$omf"; \
948
$(INSTALL_DATA) $$omf $(DESTDIR)$(OMF_DIR)/$(DOC_MODULE)/$$omf; \
950
@if test "x$(_ENABLE_SK)" = "xtrue"; then \
951
echo "scrollkeeper-update -p $(DESTDIR)$(_sklocalstatedir) -o $(DESTDIR)$(OMF_DIR)/$(DOC_MODULE)"; \
952
scrollkeeper-update -p "$(DESTDIR)$(_sklocalstatedir)" -o "$(DESTDIR)$(OMF_DIR)/$(DOC_MODULE)"; \
958
.PHONY: uninstall-doc-docs uninstall-doc-html uninstall-doc-figs uninstall-doc-omf uninstall-doc-dsk
960
$(if $(DOC_MODULE),uninstall-doc-docs) \
961
$(if $(_DOC_HTML_ALL),uninstall-doc-html) \
962
$(if $(_DOC_C_FIGURES),uninstall-doc-figs) \
963
$(if $(_DOC_OMF_IN),uninstall-doc-omf)
964
# $(if $(_DOC_DSK_IN),uninstall-doc-dsk)
967
@list='$(_DOC_C_DOCS) $(_DOC_LC_DOCS)'; for doc in $$list; do \
968
echo " rm -f $(DESTDIR)$(HELP_DIR)/$(DOC_MODULE)/$$doc"; \
969
rm -f "$(DESTDIR)$(HELP_DIR)/$(DOC_MODULE)/$$doc"; \
973
@list='$(_DOC_C_FIGURES) $(_DOC_LC_FIGURES)'; for fig in $$list; do \
974
echo "rm -f $(DESTDIR)$(HELP_DIR)/$(DOC_MODULE)/$$fig"; \
975
rm -f "$(DESTDIR)$(HELP_DIR)/$(DOC_MODULE)/$$fig"; \
979
@list='$(_DOC_OMF_ALL)'; for omf in $$list; do \
980
if test "x$(_ENABLE_SK)" == "xtrue"; then \
981
echo "scrollkeeper-uninstall -p $(_sklocalstatedir) $(DESTDIR)$(OMF_DIR)/$(DOC_MODULE)/$$omf"; \
982
scrollkeeper-uninstall -p "$(_sklocalstatedir)" "$(DESTDIR)$(OMF_DIR)/$(DOC_MODULE)/$$omf"; \
984
echo "rm -f $(DESTDIR)$(OMF_DIR)/$(DOC_MODULE)/$$omf"; \
985
rm -f "$(DESTDIR)$(OMF_DIR)/$(DOC_MODULE)/$$omf"; \
987
dist-hook: doc-dist-hook
988
# Tell versions [3.59,3.63) of GNU make to not export all variables.
989
# Otherwise a system limit (for SysV at least) may be exceeded.