1
# Makefile.in generated by automake 1.7.9 from Makefile.am.
4
# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
5
# 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
################################################################################
42
top_srcdir = @top_srcdir@
44
pkgdatadir = $(datadir)/@PACKAGE@
45
pkglibdir = $(libdir)/@PACKAGE@
46
pkgincludedir = $(includedir)/@PACKAGE@
49
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
51
install_sh_DATA = $(install_sh) -c -m 644
52
install_sh_PROGRAM = $(install_sh) -c
53
install_sh_SCRIPT = $(install_sh) -c
54
INSTALL_HEADER = $(INSTALL_DATA)
55
transform = $(program_transform_name)
63
AMDEP_FALSE = @AMDEP_FALSE@
64
AMDEP_TRUE = @AMDEP_TRUE@
67
AUTOHEADER = @AUTOHEADER@
71
CATOBJEXT = @CATOBJEXT@
73
CCDEPMODE = @CCDEPMODE@
77
CYGPATH_W = @CYGPATH_W@
78
DATADIRNAME = @DATADIRNAME@
81
DOC_USER_FORMATS = @DOC_USER_FORMATS@
86
ENABLE_SK_FALSE = @ENABLE_SK_FALSE@
87
ENABLE_SK_TRUE = @ENABLE_SK_TRUE@
89
GDU_MODULE_VERSION_CHECK_CFLAGS = @GDU_MODULE_VERSION_CHECK_CFLAGS@
90
GDU_MODULE_VERSION_CHECK_LIBS = @GDU_MODULE_VERSION_CHECK_LIBS@
91
GETTEXT_PACKAGE = @GETTEXT_PACKAGE@
92
GLIB_CFLAGS = @GLIB_CFLAGS@
93
GLIB_LIBS = @GLIB_LIBS@
96
GNOME_CFLAGS = @GNOME_CFLAGS@
97
GNOME_LIBS = @GNOME_LIBS@
98
GTK26TEST_CFLAGS = @GTK26TEST_CFLAGS@
99
GTK26TEST_LIBS = @GTK26TEST_LIBS@
100
GTK_CFLAGS = @GTK_CFLAGS@
101
GTK_LIBS = @GTK_LIBS@
102
HELP_DIR = @HELP_DIR@
103
INSTALL_DATA = @INSTALL_DATA@
104
INSTALL_PROGRAM = @INSTALL_PROGRAM@
105
INSTALL_SCRIPT = @INSTALL_SCRIPT@
106
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
107
INSTOBJEXT = @INSTOBJEXT@
108
INTLLIBS = @INTLLIBS@
109
INTLTOOL_CAVES_RULE = @INTLTOOL_CAVES_RULE@
110
INTLTOOL_DESKTOP_RULE = @INTLTOOL_DESKTOP_RULE@
111
INTLTOOL_DIRECTORY_RULE = @INTLTOOL_DIRECTORY_RULE@
112
INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@
113
INTLTOOL_ICONV = @INTLTOOL_ICONV@
114
INTLTOOL_KBD_RULE = @INTLTOOL_KBD_RULE@
115
INTLTOOL_KEYS_RULE = @INTLTOOL_KEYS_RULE@
116
INTLTOOL_MERGE = @INTLTOOL_MERGE@
117
INTLTOOL_MSGFMT = @INTLTOOL_MSGFMT@
118
INTLTOOL_MSGMERGE = @INTLTOOL_MSGMERGE@
119
INTLTOOL_OAF_RULE = @INTLTOOL_OAF_RULE@
120
INTLTOOL_PERL = @INTLTOOL_PERL@
121
INTLTOOL_PONG_RULE = @INTLTOOL_PONG_RULE@
122
INTLTOOL_PROP_RULE = @INTLTOOL_PROP_RULE@
123
INTLTOOL_SCHEMAS_RULE = @INTLTOOL_SCHEMAS_RULE@
124
INTLTOOL_SERVER_RULE = @INTLTOOL_SERVER_RULE@
125
INTLTOOL_SHEET_RULE = @INTLTOOL_SHEET_RULE@
126
INTLTOOL_SOUNDLIST_RULE = @INTLTOOL_SOUNDLIST_RULE@
127
INTLTOOL_THEME_RULE = @INTLTOOL_THEME_RULE@
128
INTLTOOL_UI_RULE = @INTLTOOL_UI_RULE@
129
INTLTOOL_UPDATE = @INTLTOOL_UPDATE@
130
INTLTOOL_XAM_RULE = @INTLTOOL_XAM_RULE@
131
INTLTOOL_XGETTEXT = @INTLTOOL_XGETTEXT@
132
INTLTOOL_XML_NOMERGE_RULE = @INTLTOOL_XML_NOMERGE_RULE@
133
INTLTOOL_XML_RULE = @INTLTOOL_XML_RULE@
137
LIBSENSORS_FALSE = @LIBSENSORS_FALSE@
138
LIBSENSORS_TRUE = @LIBSENSORS_TRUE@
139
LTLIBOBJS = @LTLIBOBJS@
141
MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
142
MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
143
MAKEINFO = @MAKEINFO@
144
MKINSTALLDIRS = @MKINSTALLDIRS@
149
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
150
PACKAGE_NAME = @PACKAGE_NAME@
151
PACKAGE_STRING = @PACKAGE_STRING@
152
PACKAGE_TARNAME = @PACKAGE_TARNAME@
153
PACKAGE_VERSION = @PACKAGE_VERSION@
154
PATH_SEPARATOR = @PATH_SEPARATOR@
155
PKG_CONFIG = @PKG_CONFIG@
158
PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@
159
PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@
160
SENSORS_CFLAGS = @SENSORS_CFLAGS@
161
SENSORS_LIBS = @SENSORS_LIBS@
162
SET_MAKE = @SET_MAKE@
167
WARN_CFLAGS = @WARN_CFLAGS@
168
XGETTEXT = @XGETTEXT@
169
XSLTPROC = @XSLTPROC@
170
ac_ct_CC = @ac_ct_CC@
171
ac_ct_STRIP = @ac_ct_STRIP@
172
ac_pt_PKG_CONFIG = @ac_pt_PKG_CONFIG@
173
am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
174
am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
175
am__include = @am__include@
176
am__leading_dot = @am__leading_dot@
177
am__quote = @am__quote@
179
build_alias = @build_alias@
181
exec_prefix = @exec_prefix@
182
host_alias = @host_alias@
183
includedir = @includedir@
185
install_sh = @install_sh@
187
libexecdir = @libexecdir@
188
localstatedir = @localstatedir@
190
oldincludedir = @oldincludedir@
192
program_transform_name = @program_transform_name@
194
sharedstatedir = @sharedstatedir@
195
sysconfdir = @sysconfdir@
196
target_alias = @target_alias@
197
_clean_doc_header = $(if $(DOC_H_FILE),clean-doc-header)
198
_DOC_REAL_FORMATS = $(if $(DOC_USER_FORMATS),$(DOC_USER_FORMATS),$(DOC_FORMATS))
201
################################################################################
203
--stringparam rngdoc.id \
204
$(shell echo $(basename $(notdir $(1))) | sed -e 's/[^A-Za-z0-9_-]/_/g')\
205
$(_rngdoc) $(filter %/$(basename $(notdir $(1))).rng,$(_RNGDOC_RNGS))
208
_RNGDOC_RNGS = $(sort $(patsubst ./%, %, $(foreach dir,$(RNGDOC_DIRS), \
209
$(wildcard $(dir)/*.rng) $(wildcard $(srcdir)/$(dir)/*.rng))))
212
_RNGDOC_C_DOCS = $(foreach rng,$(_RNGDOC_RNGS), C/$(basename $(notdir $(rng))).xml)
214
################################################################################
216
# FIXME: _XSLDOC_XSLS is getting dupes with relative/absolute in some
217
# cases. Right now, I'm just taking the first, but that's just a bad
218
# work-around. Fix the real problem.
220
--stringparam xsldoc.id \
221
$(shell echo $(basename $(notdir $(1))) | sed -e 's/[^A-Za-z0-9_-]/_/g')\
223
$(word 1,$(filter %/$(basename $(notdir $(1))).xsl,$(_XSLDOC_XSLS)))
226
_XSLDOC_XSLS = $(sort $(patsubst ./%, %, $(foreach dir,$(XSLDOC_DIRS), \
227
$(wildcard $(dir)/*.xsl) $(wildcard $(srcdir)/$(dir)/*.xsl))))
230
_XSLDOC_C_DOCS = $(foreach xsl,$(_XSLDOC_XSLS), C/$(basename $(notdir $(xsl))).xml)
233
################################################################################
235
--stringparam db2omf.basename $(DOC_MODULE) \
236
--stringparam db2omf.format $(3) \
237
--stringparam db2omf.dtd \
238
$(shell xmllint --format $(2) | grep -h PUBLIC | head -n 1 \
239
| sed -e 's/.*PUBLIC \(\"[^\"]*\"\).*/\1/') \
240
--stringparam db2omf.lang $(notdir $(patsubst %/$(notdir $(2)),%,$(2))) \
241
--stringparam db2omf.omf_dir "$(OMF_DIR)" \
242
--stringparam db2omf.help_dir "$(HELP_DIR)" \
243
--stringparam db2omf.omf_in "`pwd`/$(_DOC_OMF_IN)" \
247
_DOC_OMF_IN = $(if $(DOC_MODULE),$(wildcard $(srcdir)/$(DOC_MODULE).omf.in))
249
_DOC_OMF_DB = $(if $(_DOC_OMF_IN), \
250
$(foreach lc,C $(DOC_LINGUAS),$(DOC_MODULE)-$(lc).omf))
253
_DOC_OMF_HTML = $(if $(_DOC_OMF_IN), \
254
$(foreach lc,C $(DOC_LINGUAS),$(DOC_MODULE)-html-$(lc).omf))
259
$(if $(findstring docbook,$(_DOC_REAL_FORMATS)),$(_DOC_OMF_DB)) \
260
$(if $(findstring html,$(_DOC_REAL_FORMATS)),$(_DOC_OMF_HTML))
264
################################################################################
265
_DOC_DSK_IN = $(if $(DOC_MODULE),$(wildcard $(srcdir)/$(DOC_MODULE).desktop.in))
267
_DOC_DSK_DB = $(if $(_DOC_DSK_IN), \
268
$(foreach lc,C $(DOC_LINGUAS),$(DOC_MODULE).db.$(lc).desktop))
271
_DOC_DSK_HTML = $(if $(_DOC_DSK_IN), \
272
$(foreach lc,C $(DOC_LINGUAS),$(DOC_MODULE).html.$(lc).desktop))
277
$(if $(findstring docbook,$(_DOC_REAL_FORMATS)),$(_DOC_DSK_DB)) \
278
$(if $(findstring html,$(_DOC_REAL_FORMATS)),$(_DOC_DSK_HTML))
282
################################################################################
283
_CVSIGNORE_TOP = $(if $(DOC_MODULE), .cvsignore)
285
_CVSIGNORE_C = $(if $(DOC_MODULE), C/.cvsignore)
287
_CVSIGNORE_LC = $(if $(DOC_MODULE),$(foreach lc,$(DOC_LINGUAS),$(lc)/.cvsignore))
289
_CVSIGNORE_TOP_FILES = $(_DOC_OMF_ALL) $(_DOC_DSK_ALL)
291
_CVSIGNORE_C_FILES = $(_RNGDOC_C_DOCS) $(_XSLDOC_C_DOCS)
293
_CVSIGNORE_LC_FILES = $(_DOC_LC_DOCS)
296
################################################################################
297
_DOC_C_MODULE = $(if $(DOC_MODULE),C/$(DOC_MODULE).xml)
299
_DOC_C_ENTITIES = $(foreach ent,$(DOC_ENTITIES),C/$(ent))
301
_DOC_C_INCLUDES = $(foreach inc,$(DOC_INCLUDES),C/$(inc))
304
$(_DOC_C_ENTITIES) $(_DOC_C_INCLUDES) \
305
$(_RNGDOC_C_DOCS) $(_XSLDOC_C_DOCS) \
309
_DOC_C_DOCS_NOENT = \
310
$(_DOC_C_MODULE) $(_DOC_C_INCLUDES) \
311
$(_RNGDOC_C_DOCS) $(_XSLDOC_C_DOCS)
314
_DOC_C_FIGURES = $(if $(DOC_FIGURES), \
315
$(foreach fig,$(DOC_FIGURES),C/$(fig)), \
316
$(patsubst $(srcdir)/%,%,$(wildcard $(srcdir)/C/figures/*.png)))
319
# FIXME: probably have to shell escape to determine the file names
320
_DOC_C_HTML = $(shell xsltproc --xinclude \
321
--stringparam db.chunk.basename "$(DOC_MODULE)" \
322
$(_chunks) "C/$(DOC_MODULE).xml")
326
###############################################################################
327
_DOC_POFILES = $(if $(DOC_MODULE), \
328
$(foreach lc,$(DOC_LINGUAS),$(lc)/$(lc).po))
331
_DOC_LC_MODULES = $(if $(DOC_MODULE), \
332
$(foreach lc,$(DOC_LINGUAS),$(lc)/$(DOC_MODULE).xml))
336
$(foreach lc,$(DOC_LINGUAS),$(foreach inc,$(_DOC_C_INCLUDES), \
337
$(lc)/$(notdir $(inc)) ))
341
$(foreach lc,$(DOC_LINGUAS),$(foreach doc,$(_RNGDOC_C_DOCS), \
342
$(lc)/$(notdir $(doc)) ))
346
$(foreach lc,$(DOC_LINGUAS),$(foreach doc,$(_XSLDOC_C_DOCS), \
347
$(lc)/$(notdir $(doc)) ))
350
# FIXME: probably have to shell escape to determine the file names
352
$(foreach lc,$(DOC_LINGUAS),$(foreach doc,$(_DOC_C_HTML), \
353
$(lc)/$(notdir $(doc)) ))
357
$(_DOC_LC_MODULES) $(_DOC_LC_INCLUDES) \
358
$(_RNGDOC_LC_DOCS) $(_XSLDOC_LC_DOCS) \
359
$(if $(findstring html,$(_DOC_REAL_FORMATS)),$(_DOC_LC_HTML))
362
_DOC_LC_FIGURES = $(foreach lc,$(DOC_LINGUAS), \
363
$(patsubst C/%,$(lc)/%,$(_DOC_C_FIGURES)) )
367
$(foreach fig,$(_DOC_C_FIGURES), $(foreach lc,C $(DOC_LINGUAS), \
368
$(wildcard $(srcdir)/$(lc)/$(patsubst C/%,%,$(fig))) ))
371
_DOC_POT = $(if $(DOC_MODULE),$(DOC_MODULE).pot)
374
################################################################################
375
_DOC_HTML_ALL = $(if $(findstring html,$(_DOC_REAL_FORMATS)), \
376
$(_DOC_C_HTML) $(_DOC_LC_HTML))
379
_DOC_HTML_TOPS = $(foreach lc,C $(DOC_LINGUAS),$(lc)/$(DOC_MODULE).html)
382
################################################################################
383
@ENABLE_SK_TRUE@_ENABLE_SK = true
384
@ENABLE_SK_FALSE@_ENABLE_SK = false
386
_clean_rngdoc = $(if $(RNGDOC_DIRS),clean-doc-rngdoc)
387
_clean_xsldoc = $(if $(XSLDOC_DIRS),clean-doc-xsldoc)
388
_clean_omf = $(if $(_DOC_OMF_IN),clean-doc-omf)
389
_clean_dsk = $(if $(_DOC_DSK_IN),clean-doc-dsk)
390
_clean_lc = $(if $(DOC_LINGUAS),clean-doc-lc)
391
_clean_dir = $(if $(DOC_MODULE),clean-doc-dir)
393
DOC_MODULE = sensors-applet
394
DOC_ENTITIES = legal.xml
395
DOC_FIGURES = figures/applet_in_panel.png
399
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
400
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
401
CONFIG_HEADER = $(top_builddir)/src/config.h
404
DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/gnome-doc-utils.make \
405
ChangeLog Makefile.am
409
$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/gnome-doc-utils.make $(top_srcdir)/configure.ac $(ACLOCAL_M4)
410
cd $(top_srcdir) && \
411
$(AUTOMAKE) --gnu help/Makefile
412
Makefile: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.in $(top_builddir)/config.status
413
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)
421
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
424
distdir = $(top_distdir)/$(PACKAGE)-$(VERSION)
426
distdir: $(DISTFILES)
427
$(mkinstalldirs) $(distdir)/..
428
@srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
429
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
430
list='$(DISTFILES)'; for file in $$list; do \
432
$(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
433
$(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
435
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
436
dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
437
if test "$$dir" != "$$file" && test "$$dir" != "."; then \
439
$(mkinstalldirs) "$(distdir)$$dir"; \
443
if test -d $$d/$$file; then \
444
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
445
cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
447
cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
449
test -f $(distdir)/$$file \
450
|| cp -p $$d/$$file $(distdir)/$$file \
454
$(MAKE) $(AM_MAKEFLAGS) \
455
top_distdir="$(top_distdir)" distdir="$(distdir)" \
463
install-exec: install-exec-am
464
install-data: install-data-am
465
uninstall: uninstall-am
468
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
470
installcheck: installcheck-am
472
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
473
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
474
`test -z '$(STRIP)' || \
475
echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
481
-rm -f $(CONFIG_CLEAN_FILES)
483
maintainer-clean-generic:
484
@echo "This command is intended for maintainers to use"
485
@echo "it deletes files that may require special tools to rebuild."
488
clean-am: clean-generic clean-local mostlyclean-am
490
distclean: distclean-am
492
distclean-am: clean-am distclean-generic distclean-local
502
install-data-am: install-data-local
506
install-info: install-info-am
512
maintainer-clean: maintainer-clean-am
514
maintainer-clean-am: distclean-am maintainer-clean-generic \
515
maintainer-clean-local
517
mostlyclean: mostlyclean-am
519
mostlyclean-am: mostlyclean-generic mostlyclean-local
529
uninstall-am: uninstall-info-am uninstall-local
531
.PHONY: all all-am check check-am clean clean-generic clean-local \
532
distclean distclean-generic distclean-local distdir dvi dvi-am \
533
info info-am install install-am install-data install-data-am \
534
install-data-local install-exec install-exec-am install-info \
535
install-info-am install-man install-strip installcheck \
536
installcheck-am installdirs maintainer-clean \
537
maintainer-clean-generic maintainer-clean-local mostlyclean \
538
mostlyclean-generic mostlyclean-local pdf pdf-am ps ps-am \
539
uninstall uninstall-am uninstall-info-am uninstall-local
546
$(DOC_H_FILE): $(DOC_H_DOCS);
547
@rm -f $@.tmp; touch $@.tmp;
548
echo 'const gchar* documentation_credits[] = {' >> $@.tmp
549
list='$(DOC_H_DOCS)'; for doc in $$list; do \
550
xmlpath="`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`:$(srcdir)/`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`"; \
551
if ! test -f "$$doc"; then doc="$(srcdir)/$$doc"; fi; \
552
xsltproc --path "$$xmlpath" $(_credits) $$doc; \
554
| 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}}' \
555
| sed -e 's/\\/\\\\/' -e 's/"/\\"/' -e 's/\(.*\)/\t"\1",/' >> $@.tmp
556
echo ' NULL' >> $@.tmp
559
list='$(DOC_H_DOCS)'; for doc in $$list; do \
560
xmlpath="`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`:$(srcdir)/`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`"; \
561
if ! test -f "$$doc"; then doc="$(srcdir)/$$doc"; fi; \
562
docid=`echo "$$doc" | sed -e 's/.*\/\([^/]*\)\.xml/\1/' \
563
| sed -e 's/[^a-zA-Z_]/_/g' | tr 'a-z' 'A-Z'`; \
565
ids=`xsltproc --xinclude --path "$$xmlpath" $(_ids) $$doc`; \
566
for id in $$ids; do \
567
echo '#define HELP_'`echo $$docid`'_'`echo $$id \
568
| sed -e 's/[^a-zA-Z_]/_/g' | tr 'a-z' 'A-Z'`' "'$$id'"' >> $@.tmp; \
572
cp $@.tmp $@ && rm -f $@.tmp
574
.PHONY: dist-doc-header
575
dist-doc-header: $(DOC_H_FILE)
576
@if test -f "$(DOC_H_FILE)"; then d=; else d="$(srcdir)/"; fi; \
577
echo "$(INSTALL_DATA) $${d}$(DOC_H_FILE) $(distdir)/$(DOC_H_FILE)"; \
578
$(INSTALL_DATA) "$${d}$(DOC_H_FILE)" "$(distdir)/$(DOC_H_FILE)";
580
doc-dist-hook: $(if $(DOC_H_FILE),dist-doc-header)
582
.PHONY: clean-doc-header
583
clean-local: $(_clean_doc_header)
584
distclean-local: $(_clean_doc_header)
585
mostlyclean-local: $(_clean_doc_header)
586
maintainer-clean-local: $(_clean_doc_header)
592
################################################################################
602
DOC_FORMATS ?= docbook
610
################################################################################
612
_xml2po ?= `which xml2po`
614
_db2html ?= `$(PKG_CONFIG) --variable db2html gnome-doc-utils`
615
_db2omf ?= `$(PKG_CONFIG) --variable db2omf gnome-doc-utils`
616
_rngdoc ?= `$(PKG_CONFIG) --variable rngdoc gnome-doc-utils`
617
_xsldoc ?= `$(PKG_CONFIG) --variable xsldoc gnome-doc-utils`
618
_chunks ?= `$(PKG_CONFIG) --variable xmldir gnome-doc-utils`/gnome/xslt/docbook/utils/chunks.xsl
619
_credits ?= `$(PKG_CONFIG) --variable xmldir gnome-doc-utils`/gnome/xslt/docbook/utils/credits.xsl
620
_ids ?= `$(PKG_CONFIG) --variable xmldir gnome-doc-utils`/gnome/xslt/docbook/utils/ids.xsl
622
_sklocalstatedir ?= `scrollkeeper-config --pkglocalstatedir`
624
# FIXME: Fix the dependancies
625
$(_RNGDOC_C_DOCS) : $(_RNGDOC_RNGS)
626
if ! test -d $(dir $@); then mkdir $(dir $@); fi;
627
xsltproc $(call rngdoc_args,$@,$<) | xmllint --c14n - > $@.tmp && \
628
cp $@.tmp $@ && rm -f $@.tmp
631
rngdoc: $(_RNGDOC_C_DOCS)
633
# FIXME: Fix the dependancies
634
$(_XSLDOC_C_DOCS) : $(_XSLDOC_XSLS)
635
if ! test -d $(dir $@); then mkdir $(dir $@); fi;
636
xsltproc $(call xsldoc_args,$@,$<) | xmllint --c14n - > $@.tmp && \
637
cp $@.tmp $@ && rm -f $@.tmp
640
xsldoc: $(_XSLDOC_C_DOCS)
642
$(_DOC_OMF_DB) : $(_DOC_OMF_IN)
643
$(_DOC_OMF_DB) : $(DOC_MODULE)-%.omf : %/$(DOC_MODULE).xml
644
xsltproc -o $@ $(call db2omf_args,$@,$<,'docbook')
646
$(_DOC_OMF_HTML) : $(_DOC_OMF_IN)
647
$(_DOC_OMF_HTML) : $(DOC_MODULE)-html-%.omf : %/$(DOC_MODULE).xml
648
xsltproc -o $@ $(call db2omf_args,$@,$<,'html')
654
$(_DOC_DSK_DB) : $(_DOC_DSK_IN)
655
$(_DOC_DSK_DB) : $(DOC_MODULE).db.%.desktop : %/$(DOC_MODULE).xml
658
$(_DOC_DSK_HTML) : $(_DOC_DSK_IN)
659
$(_DOC_DSK_HTML) : $(DOC_MODULE).html.%.desktop : %/$(DOC_MODULE).xml
665
$(_CVSIGNORE_TOP) : $(_CVSIGNORE_TOP_FILES)
666
if ! test -f $@; then touch $@; fi
668
list='$^'; for file in $$list; do \
669
echo $$file >> $@.tmp; \
671
cat $@.tmp | sort | uniq > $@
674
$(_CVSIGNORE_C) : $(_CVSIGNORE_C_FILES)
675
if ! test -f $@; then touch $@; fi
677
list='$^'; for file in $$list; do \
678
echo $$file | sed -e 's/.*\///' >> $@.tmp; \
680
cat $@.tmp | sort | uniq > $@
683
$(_CVSIGNORE_LC) : $(_CVSIGNORE_LC_FILES)
684
if ! test -f $@; then touch $@; fi
686
list='$(wildcard $(_CVSIGNORE_LC_FILES),$(dir $@)/*)'; \
687
for file in $$list; do \
688
echo $$file | sed -e 's/.*\///' >> $@.tmp; \
690
cat $@.tmp | sort | uniq > $@
694
cvsignore: $(_CVSIGNORE_TOP) $(_CVSIGNROE_C) $(_CVSIGNORE_LC)
699
$(_DOC_POFILES): $(_DOC_C_DOCS)
700
@if ! test -d $(dir $@); then \
701
echo "mkdir $(dir $@)"; \
704
@if test ! -f $@ -a -f $(srcdir)/$@; then \
705
echo "cp $(srcdir)/$@ $@"; \
706
cp "$(srcdir)/$@" "$@"; \
709
list='$(_DOC_C_DOCS_NOENT)'; for doc in $$list; do \
710
if test -f $$doc; then \
711
docs="$$docs ../$$doc"; \
713
docs="$$docs ../$(srcdir)/$$doc"; \
716
if ! test -f $@; then \
717
echo "(cd $(dir $@) && \
718
$(_xml2po) -e $$docs > $(notdir $@).tmp && \
719
cp $(notdir $@).tmp $(notdir $@) && rm -f $(notdir $@).tmp)"; \
721
$(_xml2po) -e $$docs > $(notdir $@).tmp && \
722
cp $(notdir $@).tmp $(notdir $@) && rm -f $(notdir $@).tmp); \
724
echo "(cd $(dir $@) && \
725
$(_xml2po) -e -u $(notdir $@) $$docs)"; \
727
$(_xml2po) -e -u $(notdir $@) $$docs); \
730
# FIXME: fix the dependancy
731
# FIXME: hook xml2po up
732
$(_DOC_LC_DOCS) : $(_DOC_POFILES)
733
$(_DOC_LC_DOCS) : $(_DOC_C_DOCS)
734
if ! test -d $(dir $@); then mkdir $(dir $@); fi
735
case "$(srcdir)" in /*) sd="$(srcdir)";; *) sd="../$(srcdir)";; esac; \
736
if [ -f "C/$(notdir $@)" ]; then d="../"; else d="$sd/"; fi; \
739
"$${d}$(dir $@)$(patsubst %/$(notdir $@),%,$@).po" \
740
"$${d}C/$(notdir $@)" > $(notdir $@).tmp && \
741
cp $(notdir $@).tmp $(notdir $@) && rm -f $(notdir $@).tmp)
744
$(_DOC_POT): $(_DOC_C_DOCS_NOENT)
745
$(_xml2po) -e -o $@ $^
747
$(_DOC_HTML_TOPS): $(_DOC_C_DOCS) $(_DOC_LC_DOCS)
748
xsltproc -o $@ --xinclude --param db.chunk.chunk_top "false()" --stringparam db.chunk.basename "$(DOC_MODULE)" --stringparam db.chunk.extension ".html" $(_db2html) $(patsubst %.html,%.xml,$@)
751
$(_DOC_C_DOCS) $(_DOC_LC_DOCS) \
752
$(_DOC_OMF_ALL) $(_DOC_DSK_ALL) \
753
$(_DOC_HTML_ALL) $(_DOC_POFILES)
755
.PHONY: clean-doc-rngdoc clean-doc-xsldoc clean-doc-omf clean-doc-dsk clean-doc-lc clean-doc-dir
757
clean-doc-rngdoc: ; rm -f $(_RNGDOC_C_DOCS) $(_RNGDOC_LC_DOCS)
758
clean-doc-xsldoc: ; rm -f $(_XSLDOC_C_DOCS) $(_XSLDOC_LC_DOCS)
759
clean-doc-omf: ; rm -f $(_DOC_OMF_DB) $(_DOC_OMF_HTML)
760
clean-doc-dsk: ; rm -f $(_DOC_DSK_DB) $(_DOC_DSK_HTML)
762
rm -f $(_DOC_LC_DOCS)
763
@list='$(_DOC_POFILES)'; for po in $$list; do \
764
if ! test "$$po" -ef "$(srcdir)/$$po"; then \
769
@for lc in C $(DOC_LINGUAS); do \
770
if test -f "$$lc/.xml2po.mo"; then \
771
echo "rm -f $$lc/.xml2po.mo"; \
772
rm -f "$$lc/.xml2po.mo"; \
776
@for lc in C $(DOC_LINGUAS); do \
777
for dir in `find $$lc -depth -type d`; do \
778
if ! test $$dir -ef $(srcdir)/$$dir; then \
779
echo "rmdir $$dir"; \
786
$(_clean_rngdoc) $(_clean_xsldoc) \
787
$(_clean_omf) $(_clean_dsk) \
788
$(_clean_lc) $(_clean_dir)
790
$(_clean_rngdoc) $(_clean_xsldoc) \
791
$(_clean_omf) $(_clean_dsk) \
792
$(_clean_lc) $(_clean_dir)
794
$(_clean_rngdoc) $(_clean_xsldoc) \
795
$(_clean_omf) $(_clean_dsk) \
796
$(_clean_lc) $(_clean_dir)
797
maintainer-clean-local: \
798
$(_clean_rngdoc) $(_clean_xsldoc) \
799
$(_clean_omf) $(_clean_dsk) \
800
$(_clean_lc) $(_clean_dir)
802
.PHONY: dist-doc-docs dist-doc-figs dist-doc-omf dist-doc-dsk
804
$(if $(DOC_MODULE),dist-doc-docs) \
805
$(if $(_DOC_C_FIGURES),dist-doc-figs) \
806
$(if $(_DOC_OMF_IN),dist-doc-omf)
807
# $(if $(_DOC_DSK_IN),dist-doc-dsk)
809
dist-doc-docs: $(_DOC_C_DOCS) $(_DOC_LC_DOCS) $(_DOC_POFILES)
810
@for lc in C $(DOC_LINGUAS); do \
811
echo " $(mkinstalldirs) $(distdir)/$$lc"; \
812
$(mkinstalldirs) "$(distdir)/$$lc"; \
814
@list='$(_DOC_C_DOCS) $(_DOC_LC_DOCS) $(_DOC_POFILES)'; \
815
for doc in $$list; do \
816
if test -f "$$doc"; then d=; else d="$(srcdir)/"; fi; \
817
echo "$(INSTALL_DATA) $$d$$doc $(distdir)/$$doc"; \
818
$(INSTALL_DATA) "$$d$$doc" "$(distdir)/$$doc"; \
821
dist-doc-figs: $(_DOC_SRC_FIGURES)
822
@list='$(_DOC_C_FIGURES) $(_DOC_LC_FIGURES)'; \
823
for fig in $$list; do \
824
if test -f "$$fig"; then d=; else d="$(srcdir)/"; fi; \
825
if test -f "$$d$$fig"; then \
826
figdir=`echo $$fig | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`; \
827
if ! test -d "$(distdir)/$$figdir"; then \
828
echo "$(mkinstalldirs) $(distdir)/$$figdir"; \
829
$(mkinstalldirs) "$(distdir)/$$figdir"; \
831
echo "$(INSTALL_DATA) $$d$$fig $(distdir)/$$fig"; \
832
$(INSTALL_DATA) "$$d$$fig" "$(distdir)/$$fig"; \
837
@if test -f "$(_DOC_OMF_IN)"; then d=; else d="$(srcdir)/"; fi; \
838
echo "$(INSTALL_DATA) $$d$(_DOC_OMF_IN) $(distdir)/$(notdir $(_DOC_OMF_IN))"; \
839
$(INSTALL_DATA) "$$d$(_DOC_OMF_IN)" "$(distdir)/$(notdir $(_DOC_OMF_IN))"
842
@if test -f "$(_DOC_DSK_IN)"; then d=; else d="$(srcdir)/"; fi; \
843
echo "$(INSTALL_DATA) $$d$(_DOC_DSK_IN) $(distdir)/$(notdir $(_DOC_DSK_IN))"; \
844
$(INSTALL_DATA) "$$d$(_DOC_DSK_IN)" "$(distdir)/$(notdir $(_DOC_DSK_IN))"
846
.PHONY: check-doc-docs check-doc-omf
848
$(if $(DOC_MODULE),check-doc-docs) \
849
$(if $(_DOC_OMF_IN),check-doc-omf)
851
check-doc-docs: $(_DOC_C_DOCS) $(_DOC_LC_DOCS)
852
@for lc in C $(DOC_LINGUAS); do \
858
xmlpath="$$lc:$(srcdir)/$$lc"; \
860
echo "xmllint --noout --noent --path $$xmlpath --xinclude --postvalid $$d$$lc/$(DOC_MODULE).xml"; \
861
xmllint --noout --noent --path "$$xmlpath" --xinclude --postvalid "$$d$$lc/$(DOC_MODULE).xml"; \
864
check-doc-omf: $(_DOC_OMF_ALL)
865
@list='$(_DOC_OMF_ALL)'; for omf in $$list; do \
866
echo "xmllint --noout --dtdvalid 'http://scrollkeeper.sourceforge.net/dtds/scrollkeeper-omf-1.0/scrollkeeper-omf.dtd' $$omf"; \
867
xmllint --noout --dtdvalid 'http://scrollkeeper.sourceforge.net/dtds/scrollkeeper-omf-1.0/scrollkeeper-omf.dtd' $$omf; \
870
.PHONY: install-doc-docs install-doc-html install-doc-figs install-doc-omf install-doc-dsk
871
install-data-local: \
872
$(if $(DOC_MODULE),install-doc-docs) \
873
$(if $(_DOC_HTML_ALL),install-doc-html) \
874
$(if $(_DOC_C_FIGURES),install-doc-figs) \
875
$(if $(_DOC_OMF_IN),install-doc-omf)
876
# $(if $(_DOC_DSK_IN),install-doc-dsk)
879
@for lc in C $(DOC_LINGUAS); do \
880
echo "$(mkinstalldirs) $(DESTDIR)$(HELP_DIR)/$(DOC_MODULE)/$$lc"; \
881
$(mkinstalldirs) $(DESTDIR)$(HELP_DIR)/$(DOC_MODULE)/$$lc; \
883
@list='$(_DOC_C_DOCS) $(_DOC_LC_DOCS)'; for doc in $$list; do \
884
if test -f "$$doc"; then d=; else d="$(srcdir)/"; fi; \
885
echo "$(INSTALL_DATA) $$d$$doc $(DESTDIR)$(HELP_DIR)/$(DOC_MODULE)/$$doc"; \
886
$(INSTALL_DATA) $$d$$doc $(DESTDIR)$(HELP_DIR)/$(DOC_MODULE)/$$doc; \
890
@list='$(patsubst C/%,%,$(_DOC_C_FIGURES))'; for fig in $$list; do \
891
for lc in C $(DOC_LINGUAS); do \
892
if test -f "$$lc/$$fig"; then \
893
figfile="$$lc/$$fig"; \
894
elif test -f "$(srcdir)/$$lc/$$fig"; then \
895
figfile="$(srcdir)/$$lc/$$fig"; \
896
elif test -f "C/$$fig"; then \
899
figfile="$(srcdir)/C/$$fig"; \
901
figdir="$$lc/"`echo $$fig | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`; \
902
figdir="$(DESTDIR)$(HELP_DIR)/$(DOC_MODULE)/$$figdir"; \
903
if ! test -d "$$figdir"; then \
904
echo "$(mkinstalldirs) $$figdir"; \
905
$(mkinstalldirs) "$$figdir"; \
907
figbase=`echo $$fig | sed -e 's/^.*\///'`; \
908
echo "$(INSTALL_DATA) $$figfile $$figdir$$figbase"; \
909
$(INSTALL_DATA) "$$figfile" "$$figdir$$figbase"; \
917
$(mkinstalldirs) $(DESTDIR)$(OMF_DIR)/$(DOC_MODULE)
918
@list='$(_DOC_OMF_ALL)'; for omf in $$list; do \
919
echo "$(INSTALL_DATA) $$omf $(DESTDIR)$(OMF_DIR)/$(DOC_MODULE)/$$omf"; \
920
$(INSTALL_DATA) $$omf $(DESTDIR)$(OMF_DIR)/$(DOC_MODULE)/$$omf; \
922
@if test "x$(_ENABLE_SK)" = "xtrue"; then \
923
echo "scrollkeeper-update -p $(DESTDIR)$(_sklocalstatedir) -o $(DESTDIR)$(OMF_DIR)/$(DOC_MODULE)"; \
924
scrollkeeper-update -p "$(DESTDIR)$(_sklocalstatedir)" -o "$(DESTDIR)$(OMF_DIR)/$(DOC_MODULE)"; \
930
.PHONY: uninstall-doc-docs uninstall-doc-html uninstall-doc-figs uninstall-doc-omf uninstall-doc-dsk
932
$(if $(DOC_MODULE),uninstall-doc-docs) \
933
$(if $(_DOC_HTML_ALL),uninstall-doc-html) \
934
$(if $(DOC_FIGURES),uninstall-doc-figs) \
935
$(if $(_DOC_OMF_IN),uninstall-doc-omf)
936
# $(if $(_DOC_DSK_IN),uninstall-doc-dsk)
939
@list='$(_DOC_C_DOCS) $(_DOC_LC_DOCS)'; for doc in $$list; do \
940
echo " rm -f $(DESTDIR)$(HELP_DIR)/$(DOC_MODULE)/$$doc"; \
941
rm -f "$(DESTDIR)$(HELP_DIR)/$(DOC_MODULE)/$$doc"; \
945
@list='$(_DOC_C_FIGURES) $(_DOC_LC_FIGURES)'; for fig in $$list; do \
946
echo "rm -f $(DESTDIR)$(HELP_DIR)/$(DOC_MODULE)/$$fig"; \
947
rm -f "$(DESTDIR)$(HELP_DIR)/$(DOC_MODULE)/$$fig"; \
951
@list='$(_DOC_OMF_ALL)'; for omf in $$list; do \
952
if test "x$(_ENABLE_SK)" == "xtrue"; then \
953
echo "scrollkeeper-uninstall -p $(_sklocalstatedir) $(DESTDIR)$(OMF_DIR)/$(DOC_MODULE)/$$omf"; \
954
scrollkeeper-uninstall -p "$(_sklocalstatedir)" "$(DESTDIR)$(OMF_DIR)/$(DOC_MODULE)/$$omf"; \
956
echo "rm -f $(DESTDIR)$(OMF_DIR)/$(DOC_MODULE)/$$omf"; \
957
rm -f "$(DESTDIR)$(OMF_DIR)/$(DOC_MODULE)/$$omf"; \
959
dist-hook: doc-dist-hook
960
# Tell versions [3.59,3.63) of GNU make to not export all variables.
961
# Otherwise a system limit (for SysV at least) may be exceeded.