~noskcaj/ubuntu/vivid/gnome-system-monitor/3.15

« back to all changes in this revision

Viewing changes to help/Makefile.in

  • Committer: Package Import Robot
  • Author(s): Andreas Henriksson
  • Date: 2013-03-22 16:44:14 UTC
  • mfrom: (1.5.1) (2.2.1 sid)
  • mto: (2.2.2 sid)
  • mto: This revision was merged to the branch mainline in revision 100.
  • Revision ID: package-import@ubuntu.com-20130322164414-lg3x8lv9owt6cfnl
Tags: 3.7.92-1
* New upstream release.
* Bump build-dependencies according to configure.ac:
  - libgtk-3-dev bumped from (>= 3.0.0) to (>= 3.5.12)
  - libgtkmm-3.0-dev bumped from (>= 2.99) to (>= 3.3.18)
* Change build-dependencies for new documentation infrastructure:
 - drop gnome-doc-tools
 - add yelp-tools and itstool
* Drop patches
  - 03_dont_show_in_KDE.patch and 04_kfreebsd_cputime.patch both
    applied upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Makefile.in generated by automake 1.11.4 from Makefile.am.
 
1
# Makefile.in generated by automake 1.11.6 from Makefile.am.
2
2
# @configure_input@
3
3
 
4
4
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
14
14
# PARTICULAR PURPOSE.
15
15
 
16
16
@SET_MAKE@
17
 
 
18
 
# gnome-doc-utils.make - make magic for building documentation
19
 
# Copyright (C) 2004-2005 Shaun McCance <shaunm@gnome.org>
20
 
#
21
 
# This program is free software; you can redistribute it and/or modify
22
 
# it under the terms of the GNU General Public License as published by
23
 
# the Free Software Foundation; either version 2 of the License, or
24
 
# (at your option) any later version.
25
 
#
26
 
# This program is distributed in the hope that it will be useful,
27
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
28
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
29
 
# GNU General Public License for more details.
30
 
#
31
 
# You should have received a copy of the GNU General Public License
32
 
# along with this program; if not, write to the Free Software Foundation,
33
 
# Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
34
 
#
35
 
# As a special exception to the GNU General Public License, if you
36
 
# distribute this file as part of a program that contains a
37
 
# configuration script generated by Autoconf, you may include it under
38
 
# the same distribution terms that you use for the rest of that program.
39
 
 
40
 
################################################################################
41
17
VPATH = @srcdir@
42
18
am__make_dryrun = \
43
19
  { \
74
50
POST_UNINSTALL = :
75
51
build_triplet = @build@
76
52
host_triplet = @host@
77
 
DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
78
 
        $(top_srcdir)/gnome-doc-utils.make ChangeLog
79
53
subdir = help
 
54
DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ChangeLog
80
55
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
81
56
am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \
82
 
        $(top_srcdir)/m4/gnome-doc-utils.m4 $(top_srcdir)/m4/iconv.m4 \
83
 
        $(top_srcdir)/m4/intlmacosx.m4 $(top_srcdir)/m4/intltool.m4 \
84
 
        $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \
85
 
        $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libtool.m4 \
86
 
        $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
87
 
        $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
88
 
        $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \
89
 
        $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/configure.ac
 
57
        $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \
 
58
        $(top_srcdir)/m4/intltool.m4 $(top_srcdir)/m4/lib-ld.m4 \
 
59
        $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \
 
60
        $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
 
61
        $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
 
62
        $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \
 
63
        $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \
 
64
        $(top_srcdir)/configure.ac
90
65
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
91
66
        $(ACLOCAL_M4)
92
67
mkinstalldirs = $(install_sh) -d
130
105
DEFS = @DEFS@
131
106
DEPDIR = @DEPDIR@
132
107
DISABLE_DEPRECATED = @DISABLE_DEPRECATED@
133
 
DISTCHECK_CONFIGURE_FLAGS = @DISTCHECK_CONFIGURE_FLAGS@
134
108
DLLTOOL = @DLLTOOL@
135
 
DOC_USER_FORMATS = @DOC_USER_FORMATS@
136
109
DSYMUTIL = @DSYMUTIL@
137
110
DUMPBIN = @DUMPBIN@
138
111
ECHO_C = @ECHO_C@
159
132
INTLTOOL_MERGE = @INTLTOOL_MERGE@
160
133
INTLTOOL_PERL = @INTLTOOL_PERL@
161
134
INTLTOOL_UPDATE = @INTLTOOL_UPDATE@
 
135
INTLTOOL_V_MERGE = @INTLTOOL_V_MERGE@
 
136
INTLTOOL_V_MERGE_OPTIONS = @INTLTOOL_V_MERGE_OPTIONS@
 
137
INTLTOOL__v_MERGE_ = @INTLTOOL__v_MERGE_@
 
138
INTLTOOL__v_MERGE_0 = @INTLTOOL__v_MERGE_0@
162
139
INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
 
140
ITSTOOL = @ITSTOOL@
163
141
LD = @LD@
164
142
LDFLAGS = @LDFLAGS@
165
143
LIBICONV = @LIBICONV@
183
161
NMEDIT = @NMEDIT@
184
162
OBJDUMP = @OBJDUMP@
185
163
OBJEXT = @OBJEXT@
186
 
OMF_DIR = @OMF_DIR@
187
164
OTOOL = @OTOOL@
188
165
OTOOL64 = @OTOOL64@
189
166
PACKAGE = @PACKAGE@
201
178
PROCMAN_CFLAGS = @PROCMAN_CFLAGS@
202
179
PROCMAN_LIBS = @PROCMAN_LIBS@
203
180
RANLIB = @RANLIB@
 
181
SCRIPTS_CFLAGS = @SCRIPTS_CFLAGS@
 
182
SCRIPTS_LIBS = @SCRIPTS_LIBS@
204
183
SED = @SED@
205
184
SET_MAKE = @SET_MAKE@
206
185
SHELL = @SHELL@
215
194
XGETTEXT = @XGETTEXT@
216
195
XGETTEXT_015 = @XGETTEXT_015@
217
196
XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@
 
197
XMLLINT = @XMLLINT@
218
198
abs_builddir = @abs_builddir@
219
199
abs_srcdir = @abs_srcdir@
220
200
abs_top_builddir = @abs_top_builddir@
250
230
includedir = @includedir@
251
231
infodir = @infodir@
252
232
install_sh = @install_sh@
 
233
intltool__v_merge_options_ = @intltool__v_merge_options_@
 
234
intltool__v_merge_options_0 = @intltool__v_merge_options_0@
253
235
libdir = @libdir@
254
236
libexecdir = @libexecdir@
255
237
localedir = @localedir@
269
251
top_build_prefix = @top_build_prefix@
270
252
top_builddir = @top_builddir@
271
253
top_srcdir = @top_srcdir@
272
 
_clean_doc_header = $(if $(DOC_H_FILE),clean-doc-header)
273
 
_DOC_REAL_FORMATS = $(if $(DOC_USER_FORMATS),$(DOC_USER_FORMATS),$(DOC_FORMATS))
274
 
_DOC_REAL_LINGUAS = $(if $(filter environment,$(origin LINGUAS)),               \
275
 
        $(filter $(LINGUAS),$(DOC_LINGUAS)),                                    \
276
 
        $(DOC_LINGUAS))
277
 
 
278
 
_DOC_ABS_SRCDIR = @abs_srcdir@
279
 
_xml2po_mode = $(if $(DOC_ID),mallard,docbook)
280
 
@ENABLE_SK_TRUE@_ENABLE_SK = true
281
 
 
282
 
################################################################################
283
 
GDU_V_XML2PO = $(GDU__v_XML2PO_$(V))
284
 
GDU__v_XML2PO_ = $(GDU__v_XML2PO_$(AM_DEFAULT_VERBOSITY))
285
 
GDU__v_XML2PO_0 = @echo "  XML2PO" $@;
286
 
GDU_V_MSGFMT = $(GDU__v_MSGFMT_$(V))
287
 
GDU__v_MSGFMT_ = $(GDU__v_MSGFMT_$(AM_DEFAULT_VERBOSITY))
288
 
GDU__v_MSGFMT_0 = @echo "  MSGFMT" $@;
289
 
GDU_V_DB2OMF = $(GDU__v_DB2OMF_$(V))
290
 
GDU__v_DB2OMF_ = $(GDU__v_DB2OMF_$(AM_DEFAULT_VERBOSITY))
291
 
GDU__v_DB2OMF_0 = @echo "  DB2OMF" $@;
292
 
GDU_V_DB2HTM = $(GDU__v_DB2HTM_$(V))
293
 
GDU__v_DB2HTM_ = $(GDU__v_DB2HTM_$(AM_DEFAULT_VERBOSITY))
294
 
GDU__v_DB2HTM_0 = @echo "  DB2HTM" $@;
295
 
 
296
 
################################################################################
297
 
db2omf_args = \
298
 
        --stringparam db2omf.basename $(DOC_MODULE)                             \
299
 
        --stringparam db2omf.format $(3)                                        \
300
 
        --stringparam db2omf.dtd                                                \
301
 
        $(shell xmllint --format $(2) | grep -h PUBLIC | head -n 1              \
302
 
                | sed -e 's/.*PUBLIC \(\"[^\"]*\"\).*/\1/')                     \
303
 
        --stringparam db2omf.lang $(notdir $(patsubst %/$(notdir $(2)),%,$(2))) \
304
 
        --stringparam db2omf.omf_dir "$(OMF_DIR)"                               \
305
 
        --stringparam db2omf.help_dir "$(HELP_DIR)"                             \
306
 
        --stringparam db2omf.omf_in "$(_DOC_OMF_IN)"                            \
307
 
        $(if $(_ENABLE_SK),                                                     \
308
 
          --stringparam db2omf.scrollkeeper_cl "$(_skcontentslist)")            \
309
 
        $(_db2omf) $(2)
310
 
 
311
 
_DOC_OMF_IN = $(if $(DOC_MODULE),$(wildcard $(_DOC_ABS_SRCDIR)/$(DOC_MODULE).omf.in))
312
 
_DOC_OMF_DB = $(if $(_DOC_OMF_IN),                                              \
313
 
        $(foreach lc,C $(_DOC_REAL_LINGUAS),$(DOC_MODULE)-$(lc).omf))
314
 
 
315
 
_DOC_OMF_HTML = $(if $(_DOC_OMF_IN),                                            \
316
 
        $(foreach lc,C $(_DOC_REAL_LINGUAS),$(DOC_MODULE)-html-$(lc).omf))
317
 
 
318
 
 
319
 
# FIXME
320
 
_DOC_OMF_ALL = \
321
 
        $(if $(filter docbook,$(_DOC_REAL_FORMATS)),$(_DOC_OMF_DB))             \
322
 
        $(if $(filter html HTML,$(_DOC_REAL_FORMATS)),$(_DOC_OMF_HTML))
323
 
 
324
 
 
325
 
################################################################################
326
 
_DOC_C_MODULE = $(if $(DOC_MODULE),C/$(DOC_MODULE).xml)
327
 
_DOC_C_PAGES = $(foreach page,$(DOC_PAGES),C/$(page))
328
 
_DOC_C_ENTITIES = $(foreach ent,$(DOC_ENTITIES),C/$(ent))
329
 
_DOC_C_INCLUDES = $(foreach inc,$(DOC_INCLUDES),C/$(inc))
330
 
_DOC_C_DOCS = \
331
 
        $(_DOC_C_ENTITIES)      $(_DOC_C_INCLUDES)                      \
332
 
        $(_DOC_C_PAGES)         $(_DOC_C_MODULE)
333
 
 
334
 
_DOC_C_DOCS_NOENT = \
335
 
        $(_DOC_C_MODULE)        $(_DOC_C_INCLUDES)                      \
336
 
        $(_DOC_C_PAGES)
337
 
 
338
 
_DOC_C_FIGURES = $(if $(DOC_FIGURES),                                   \
339
 
        $(foreach fig,$(DOC_FIGURES),C/$(fig)),                         \
340
 
        $(patsubst $(srcdir)/%,%,$(wildcard $(srcdir)/C/figures/*.png)))
341
 
 
342
 
 
343
 
# FIXME: probably have to shell escape to determine the file names
344
 
_DOC_C_HTML = $(foreach f,                                              \
345
 
        $(shell xsltproc --xinclude                                     \
346
 
          --stringparam db.chunk.basename "$(DOC_MODULE)"               \
347
 
          $(_chunks) "C/$(DOC_MODULE).xml"),                            \
348
 
        C/$(f).xhtml)
349
 
 
350
 
 
351
 
###############################################################################
352
 
_DOC_POFILES = $(if $(DOC_MODULE)$(DOC_ID),                                     \
353
 
        $(foreach lc,$(_DOC_REAL_LINGUAS),$(lc)/$(lc).po))
354
 
 
355
 
_DOC_MOFILES = $(patsubst %.po,%.mo,$(_DOC_POFILES))
356
 
_DOC_LC_MODULES = $(if $(DOC_MODULE),                                           \
357
 
        $(foreach lc,$(_DOC_REAL_LINGUAS),$(lc)/$(DOC_MODULE).xml))
358
 
 
359
 
_DOC_LC_PAGES = \
360
 
        $(foreach lc,$(_DOC_REAL_LINGUAS),$(foreach page,$(_DOC_C_PAGES),       \
361
 
                $(lc)/$(notdir $(page)) ))
362
 
 
363
 
_DOC_LC_INCLUDES = \
364
 
        $(foreach lc,$(_DOC_REAL_LINGUAS),$(foreach inc,$(_DOC_C_INCLUDES),     \
365
 
                $(lc)/$(notdir $(inc)) ))
366
 
 
367
 
 
368
 
# FIXME: probably have to shell escape to determine the file names
369
 
_DOC_LC_HTML = \
370
 
        $(foreach lc,$(_DOC_REAL_LINGUAS),$(foreach doc,$(_DOC_C_HTML),         \
371
 
                $(lc)/$(notdir $(doc)) ))
372
 
 
373
 
_DOC_LC_DOCS = \
374
 
        $(_DOC_LC_MODULES)      $(_DOC_LC_INCLUDES)     $(_DOC_LC_PAGES)        \
375
 
        $(if $(filter html HTML,$(_DOC_REAL_FORMATS)),$(_DOC_LC_HTML))
376
 
 
377
 
_DOC_LC_FIGURES = $(foreach lc,$(_DOC_REAL_LINGUAS),                            \
378
 
        $(patsubst C/%,$(lc)/%,$(_DOC_C_FIGURES)) )
379
 
 
380
 
_DOC_SRC_FIGURES = \
381
 
        $(foreach fig,$(_DOC_C_FIGURES), $(foreach lc,C $(_DOC_REAL_LINGUAS),   \
382
 
                $(wildcard $(srcdir)/$(lc)/$(patsubst C/%,%,$(fig))) ))
383
 
 
384
 
_DOC_POT = $(if $(DOC_MODULE),$(DOC_MODULE).pot,$(if $(DOC_ID),$(DOC_ID).pot))
385
 
 
386
 
################################################################################
387
 
_DOC_HTML_ALL = $(if $(filter html HTML,$(_DOC_REAL_FORMATS)), \
388
 
        $(_DOC_C_HTML) $(_DOC_LC_HTML))
389
 
 
390
 
_DOC_HTML_TOPS = $(foreach lc,C $(_DOC_REAL_LINGUAS),$(lc)/$(DOC_MODULE).xhtml)
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)$(DOC_ID),clean-doc-dir)
395
 
_doc_install_dir = $(if $(DOC_ID),$(DOC_ID),$(DOC_MODULE))
396
 
DOC_MODULE = gnome-system-monitor
397
 
DOC_ENTITIES = legal.xml
398
 
DOC_INCLUDES = 
399
 
DOC_FIGURES = figures/addColumn.png \
400
 
              figures/changePriority.png \
401
 
              figures/colorPanel.png \
402
 
              figures/columnContextMenu.png \
403
 
              figures/gnome-system-monitor_window.png \
404
 
              figures/memoryMaps.png \
405
 
              figures/moreInfo.png \
406
 
              figures/processListing.png \
407
 
              figures/sortButton.png \
408
 
              figures/sortMenu2.png \
409
 
              figures/sortMenu.png \
410
 
              figures/systemMonitor.png \
411
 
              figures/viewMenu.png
412
 
 
413
 
DOC_LINGUAS = ar bg ca cs da de el es eu fr gl oc pa ru sl sv te zh_CN
 
254
HELP_ID = gnome-system-monitor
 
255
HELP_FILES = \
 
256
                index.docbook   \
 
257
                legal.xml
 
258
 
 
259
HELP_MEDIA = \
 
260
                figures/addColumn.png           \
 
261
                figures/changePriority.png      \
 
262
                figures/colorPanel.png          \
 
263
                figures/columnContextMenu.png   \
 
264
                figures/gnome-system-monitor_window.png \
 
265
                figures/memoryMaps.png          \
 
266
                figures/moreInfo.png            \
 
267
                figures/processListing.png      \
 
268
                figures/sortButton.png          \
 
269
                figures/sortMenu2.png           \
 
270
                figures/sortMenu.png            \
 
271
                figures/systemMonitor.png       \
 
272
                figures/viewMenu.png
 
273
 
 
274
HELP_LINGUAS = ar bg ca cs da de el es eu fr gl ja oc pa pt_BR ru sl sv zh_CN
414
275
all: all-am
415
276
 
416
277
.SUFFIXES:
417
 
$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(top_srcdir)/gnome-doc-utils.make $(am__configure_deps)
 
278
$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am  $(am__configure_deps)
418
279
        @for dep in $?; do \
419
280
          case '$(am__configure_deps)' in \
420
281
            *$$dep*) \
435
296
            echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
436
297
            cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
437
298
        esac;
438
 
$(top_srcdir)/gnome-doc-utils.make:
439
299
 
440
300
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
441
301
        cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
488
348
            || exit 1; \
489
349
          fi; \
490
350
        done
491
 
        $(MAKE) $(AM_MAKEFLAGS) \
492
 
          top_distdir="$(top_distdir)" distdir="$(distdir)" \
493
 
          dist-hook
494
351
check-am: all-am
495
352
check: check-am
496
353
all-am: Makefile
527
384
        @echo "it deletes files that may require special tools to rebuild."
528
385
clean: clean-am
529
386
 
530
 
clean-am: clean-generic clean-libtool clean-local mostlyclean-am
 
387
clean-am: clean-generic clean-libtool mostlyclean-am
531
388
 
532
389
distclean: distclean-am
533
390
        -rm -f Makefile
534
 
distclean-am: clean-am distclean-generic distclean-local
 
391
distclean-am: clean-am distclean-generic
535
392
 
536
393
dvi: dvi-am
537
394
 
545
402
 
546
403
info-am:
547
404
 
548
 
install-data-am: install-data-local
 
405
install-data-am:
549
406
 
550
407
install-dvi: install-dvi-am
551
408
 
575
432
 
576
433
maintainer-clean: maintainer-clean-am
577
434
        -rm -f Makefile
578
 
maintainer-clean-am: distclean-am maintainer-clean-generic \
579
 
        maintainer-clean-local
 
435
maintainer-clean-am: distclean-am maintainer-clean-generic
580
436
 
581
437
mostlyclean: mostlyclean-am
582
438
 
583
 
mostlyclean-am: mostlyclean-generic mostlyclean-libtool \
584
 
        mostlyclean-local
 
439
mostlyclean-am: mostlyclean-generic mostlyclean-libtool
585
440
 
586
441
pdf: pdf-am
587
442
 
591
446
 
592
447
ps-am:
593
448
 
594
 
uninstall-am: uninstall-local
 
449
uninstall-am:
595
450
 
596
451
.MAKE: install-am install-strip
597
452
 
598
453
.PHONY: all all-am check check-am clean clean-generic clean-libtool \
599
 
        clean-local dist-hook distclean distclean-generic \
600
 
        distclean-libtool distclean-local distdir dvi dvi-am html \
601
 
        html-am info info-am install install-am install-data \
602
 
        install-data-am install-data-local install-dvi install-dvi-am \
 
454
        distclean distclean-generic distclean-libtool distdir dvi \
 
455
        dvi-am html html-am info info-am install install-am \
 
456
        install-data install-data-am install-dvi install-dvi-am \
603
457
        install-exec install-exec-am install-html install-html-am \
604
458
        install-info install-info-am install-man install-pdf \
605
459
        install-pdf-am install-ps install-ps-am install-strip \
606
460
        installcheck installcheck-am installdirs maintainer-clean \
607
 
        maintainer-clean-generic maintainer-clean-local mostlyclean \
608
 
        mostlyclean-generic mostlyclean-libtool mostlyclean-local pdf \
609
 
        pdf-am ps ps-am uninstall uninstall-am uninstall-local
610
 
 
611
 
 
612
 
DOC_H_FILE ?=
613
 
 
614
 
DOC_H_DOCS ?=
615
 
 
616
 
$(DOC_H_FILE): $(DOC_H_DOCS);
617
 
        @rm -f $@.tmp; touch $@.tmp;
618
 
        echo 'const gchar* documentation_credits[] = {' >> $@.tmp
619
 
        list='$(DOC_H_DOCS)'; for doc in $$list; do \
620
 
          xmlpath="`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`:$(srcdir)/`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`"; \
621
 
          if ! test -f "$$doc"; then doc="$(srcdir)/$$doc"; fi; \
622
 
          xsltproc --path "$$xmlpath" $(_credits) $$doc; \
623
 
        done | sort | uniq \
624
 
          | 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}}' \
625
 
          | sed -e 's/\\/\\\\/' -e 's/"/\\"/' -e 's/\(.*\)/\t"\1",/' >> $@.tmp
626
 
        echo '  NULL' >> $@.tmp
627
 
        echo '};' >> $@.tmp
628
 
        echo >> $@.tmp
629
 
        list='$(DOC_H_DOCS)'; for doc in $$list; do \
630
 
          xmlpath="`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`:$(srcdir)/`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`"; \
631
 
          if ! test -f "$$doc"; then doc="$(srcdir)/$$doc"; fi; \
632
 
          docid=`echo "$$doc" | sed -e 's/.*\/\([^/]*\)\.xml/\1/' \
633
 
            | sed -e 's/[^a-zA-Z_]/_/g' | tr 'a-z' 'A-Z'`; \
634
 
          echo $$xmlpath; \
635
 
          ids=`xsltproc --xinclude --path "$$xmlpath" $(_ids) $$doc`; \
636
 
          for id in $$ids; do \
637
 
            echo '#define HELP_'`echo $$docid`'_'`echo $$id \
638
 
              | sed -e 's/[^a-zA-Z_]/_/g' | tr 'a-z' 'A-Z'`' "'$$id'"' >> $@.tmp; \
639
 
          done; \
640
 
          echo >> $@.tmp; \
641
 
        done;
642
 
        cp $@.tmp $@ && rm -f $@.tmp
643
 
 
644
 
dist-check-gdu:
645
 
@HAVE_GNOME_DOC_UTILS_FALSE@    @echo "*** GNOME Doc Utils must be installed in order to make dist"
646
 
@HAVE_GNOME_DOC_UTILS_FALSE@    @false
647
 
 
648
 
.PHONY: dist-doc-header
649
 
dist-doc-header: $(DOC_H_FILE)
650
 
        @if test -f "$(DOC_H_FILE)"; then d=; else d="$(srcdir)/"; fi; \
651
 
        echo "$(INSTALL_DATA) $${d}$(DOC_H_FILE) $(distdir)/$(DOC_H_FILE)"; \
652
 
        $(INSTALL_DATA) "$${d}$(DOC_H_FILE)" "$(distdir)/$(DOC_H_FILE)";
653
 
 
654
 
doc-dist-hook: dist-check-gdu $(if $(DOC_H_FILE),dist-doc-header)
655
 
 
656
 
.PHONY: clean-doc-header
657
 
clean-local: $(_clean_doc_header)
658
 
distclean-local: $(_clean_doc_header)
659
 
mostlyclean-local: $(_clean_doc_header)
660
 
maintainer-clean-local: $(_clean_doc_header)
661
 
clean-doc-header:
662
 
        rm -f $(DOC_H_FILE)
663
 
 
664
 
all: $(DOC_H_FILE)
665
 
 
666
 
################################################################################
667
 
 
668
 
DOC_MODULE ?=
669
 
 
670
 
DOC_ID ?=
671
 
 
672
 
DOC_PAGES ?=
673
 
 
674
 
DOC_ENTITIES ?=
675
 
 
676
 
DOC_INCLUDES ?=
677
 
 
678
 
DOC_FIGURES ?=
679
 
 
680
 
DOC_FORMATS ?= docbook
681
 
 
682
 
DOC_LINGUAS ?=
683
 
 
684
 
################################################################################
685
 
 
686
 
_xml2po ?= `which xml2po`
687
 
 
688
 
_db2html ?= `$(PKG_CONFIG) --variable db2html gnome-doc-utils`
689
 
_db2omf  ?= `$(PKG_CONFIG) --variable db2omf gnome-doc-utils`
690
 
_chunks  ?= `$(PKG_CONFIG) --variable xmldir gnome-doc-utils`/gnome/xslt/docbook/utils/chunks.xsl
691
 
_credits ?= `$(PKG_CONFIG) --variable xmldir gnome-doc-utils`/gnome/xslt/docbook/utils/credits.xsl
692
 
_ids ?= $(shell $(PKG_CONFIG) --variable xmldir gnome-doc-utils)/gnome/xslt/docbook/utils/ids.xsl
693
 
@ENABLE_SK_TRUE@_skpkgdatadir ?= `scrollkeeper-config --pkgdatadir`
694
 
@ENABLE_SK_TRUE@_sklocalstatedir ?= `scrollkeeper-config --pkglocalstatedir`
695
 
@ENABLE_SK_TRUE@_skcontentslist ?= $(_skpkgdatadir)/Templates/C/scrollkeeper_cl.xml
696
 
 
697
 
$(_DOC_OMF_DB) : $(_DOC_OMF_IN)
698
 
$(_DOC_OMF_DB) : $(DOC_MODULE)-%.omf : %/$(DOC_MODULE).xml
699
 
        @test "x$(_ENABLE_SK)" != "xtrue" -o -f "$(_skcontentslist)" || {       \
700
 
          echo "The file '$(_skcontentslist)' does not exist." >&2;             \
701
 
          echo "Please check your ScrollKeeper installation." >&2;              \
702
 
          exit 1; }
703
 
        $(GDU_V_DB2OMF)xsltproc -o $@ $(call db2omf_args,$@,$<,'docbook') || { rm -f "$@"; exit 1; }
704
 
 
705
 
$(_DOC_OMF_HTML) : $(_DOC_OMF_IN)
706
 
$(_DOC_OMF_HTML) : $(DOC_MODULE)-html-%.omf : %/$(DOC_MODULE).xml
707
 
@ENABLE_SK_TRUE@        @test "x$(_ENABLE_SK)" != "xtrue" -o -f "$(_skcontentslist)" || {       \
708
 
@ENABLE_SK_TRUE@          echo "The file '$(_skcontentslist)' does not exist" >&2;              \
709
 
@ENABLE_SK_TRUE@          echo "Please check your ScrollKeeper installation." >&2;              \
710
 
@ENABLE_SK_TRUE@          exit 1; }
711
 
        $(GDU_V_DB2OMF)xsltproc -o $@ $(call db2omf_args,$@,$<,'xhtml') || { rm -f "$@"; exit 1; }
712
 
 
713
 
.PHONY: omf
714
 
omf: $(_DOC_OMF_ALL)
715
 
 
716
 
.PHONY: po
717
 
po: $(_DOC_POFILES)
718
 
 
719
 
.PHONY: mo
720
 
mo: $(_DOC_MOFILES)
721
 
 
722
 
$(_DOC_POFILES):
723
 
        @if ! test -d $(dir $@); then \
724
 
          echo "mkdir $(dir $@)"; \
725
 
          mkdir "$(dir $@)"; \
726
 
        fi
727
 
        @if test ! -f $@ -a -f $(srcdir)/$@; then \
728
 
          echo "cp $(srcdir)/$@ $@"; \
729
 
          cp "$(srcdir)/$@" "$@"; \
730
 
        fi;
731
 
        @docs=; \
732
 
        list='$(_DOC_C_DOCS_NOENT)'; for doc in $$list; do \
733
 
          docs="$$docs $(_DOC_ABS_SRCDIR)/$$doc"; \
734
 
        done; \
735
 
        if ! test -f $@; then \
736
 
          echo "(cd $(dir $@) && \
737
 
            $(_xml2po) -m $(_xml2po_mode) -e $$docs > $(notdir $@).tmp && \
738
 
            cp $(notdir $@).tmp $(notdir $@) && rm -f $(notdir $@).tmp)"; \
739
 
          (cd $(dir $@) && \
740
 
            $(_xml2po) -m $(_xml2po_mode) -e $$docs > $(notdir $@).tmp && \
741
 
            cp $(notdir $@).tmp $(notdir $@) && rm -f $(notdir $@).tmp); \
742
 
        else \
743
 
          echo "(cd $(dir $@) && \
744
 
            $(_xml2po) -m $(_xml2po_mode) -e -u $(notdir $@) $$docs)"; \
745
 
          (cd $(dir $@) && \
746
 
            $(_xml2po) -m $(_xml2po_mode) -e -u $(notdir $@) $$docs); \
747
 
        fi
748
 
 
749
 
$(_DOC_MOFILES): %.mo: %.po
750
 
        $(AM_V_at)if ! test -d $(dir $@); then mkdir "$(dir $@)"; fi
751
 
        $(GDU_V_MSGFMT)msgfmt -o $@ $<
752
 
 
753
 
# FIXME: fix the dependancy
754
 
# FIXME: hook xml2po up
755
 
$(_DOC_LC_DOCS) : $(_DOC_MOFILES)
756
 
$(_DOC_LC_DOCS) : $(_DOC_C_DOCS)
757
 
        $(AM_V_at)if ! test -d $(dir $@); then mkdir $(dir $@); fi
758
 
        $(GDU_V_XML2PO)if [ -f "C/$(notdir $@)" ]; then d="../"; else d="$(_DOC_ABS_SRCDIR)/"; fi; \
759
 
        mo="$(dir $@)$(patsubst %/$(notdir $@),%,$@).mo"; \
760
 
        if [ -f "$${mo}" ]; then mo="../$${mo}"; else mo="$(_DOC_ABS_SRCDIR)/$${mo}"; fi; \
761
 
        (cd $(dir $@) && \
762
 
          $(_xml2po) -m $(_xml2po_mode) -e -t "$${mo}" \
763
 
            "$${d}C/$(notdir $@)" > $(notdir $@).tmp && \
764
 
            cp $(notdir $@).tmp $(notdir $@) && rm -f $(notdir $@).tmp)
765
 
.PHONY: pot
766
 
pot: $(_DOC_POT)
767
 
$(_DOC_POT): $(_DOC_C_DOCS_NOENT)
768
 
        $(GDU_V_XML2PO)$(_xml2po) -m $(_xml2po_mode) -e -o $@ $^
769
 
 
770
 
$(_DOC_HTML_TOPS): $(_DOC_C_DOCS) $(_DOC_LC_DOCS)
771
 
        $(GDU_V_DB2HTM)xsltproc -o $@ --xinclude --param db.chunk.chunk_top "false()" --stringparam db.chunk.basename "$(DOC_MODULE)" --stringparam db.chunk.extension ".xhtml" $(_db2html) $(patsubst %.xhtml,%.xml,$@)
772
 
 
773
 
################################################################################
774
 
 
775
 
all:                                                    \
776
 
        $(_DOC_C_DOCS)          $(_DOC_LC_DOCS)         \
777
 
        $(_DOC_OMF_ALL)         $(_DOC_DSK_ALL)         \
778
 
        $(_DOC_HTML_ALL)        $(_DOC_POFILES)
779
 
 
780
 
################################################################################
781
 
 
782
 
.PHONY: clean-doc-omf clean-doc-dsk clean-doc-lc clean-doc-dir
783
 
 
784
 
clean-doc-omf: ; rm -f $(_DOC_OMF_DB) $(_DOC_OMF_HTML)
785
 
clean-doc-dsk: ; rm -f $(_DOC_DSK_DB) $(_DOC_DSK_HTML)
786
 
clean-doc-lc:
787
 
        rm -f $(_DOC_LC_DOCS)
788
 
        rm -f $(_DOC_MOFILES)
789
 
        @list='$(_DOC_POFILES)'; for po in $$list; do \
790
 
          if ! test "$$po" -ef "$(srcdir)/$$po"; then \
791
 
            echo "rm -f $$po"; \
792
 
            rm -f "$$po"; \
793
 
          fi; \
794
 
        done
795
 
#       .xml2.po.mo cleaning is obsolete as of 0.18.1 and could be removed in 0.20.x
796
 
        @for lc in C $(_DOC_REAL_LINGUAS); do \
797
 
          if test -f "$$lc/.xml2po.mo"; then \
798
 
            echo "rm -f $$lc/.xml2po.mo"; \
799
 
            rm -f "$$lc/.xml2po.mo"; \
800
 
          fi; \
801
 
        done
802
 
clean-doc-dir: clean-doc-lc
803
 
        @for lc in C $(_DOC_REAL_LINGUAS); do \
804
 
          for dir in `find $$lc -depth -type d`; do \
805
 
            if ! test $$dir -ef $(srcdir)/$$dir; then \
806
 
              echo "rmdir $$dir"; \
807
 
              rmdir "$$dir"; \
808
 
           fi; \
809
 
          done; \
810
 
        done
811
 
 
812
 
clean-local:                                            \
813
 
        $(_clean_omf)           $(_clean_dsk)           \
814
 
        $(_clean_lc)            $(_clean_dir)
815
 
distclean-local:                                        \
816
 
        $(_clean_omf)           $(_clean_dsk)           \
817
 
        $(_clean_lc)            $(_clean_dir)
818
 
mostlyclean-local:                                      \
819
 
        $(_clean_omf)           $(_clean_dsk)           \
820
 
        $(_clean_lc)            $(_clean_dir)
821
 
maintainer-clean-local:                                 \
822
 
        $(_clean_omf)           $(_clean_dsk)           \
823
 
        $(_clean_lc)            $(_clean_dir)
824
 
 
825
 
################################################################################
826
 
 
827
 
.PHONY: dist-doc-docs dist-doc-pages dist-doc-figs dist-doc-omf dist-doc-dsk
828
 
doc-dist-hook:                                          \
829
 
        $(if $(DOC_MODULE)$(DOC_ID),dist-doc-docs)      \
830
 
        $(if $(_DOC_C_FIGURES),dist-doc-figs)           \
831
 
        $(if $(_DOC_OMF_IN),dist-doc-omf)
832
 
#       $(if $(_DOC_DSK_IN),dist-doc-dsk)
833
 
 
834
 
dist-doc-docs: $(_DOC_C_DOCS) $(_DOC_LC_DOCS) $(_DOC_POFILES)
835
 
        @for lc in C $(_DOC_REAL_LINGUAS); do \
836
 
          echo " $(mkinstalldirs) $(distdir)/$$lc"; \
837
 
          $(mkinstalldirs) "$(distdir)/$$lc"; \
838
 
        done
839
 
        @list='$(_DOC_C_DOCS)'; \
840
 
        for doc in $$list; do \
841
 
          if test -f "$$doc"; then d=; else d="$(srcdir)/"; fi; \
842
 
            docdir=`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`; \
843
 
            if ! test -d "$(distdir)/$$docdir"; then \
844
 
              echo "$(mkinstalldirs) $(distdir)/$$docdir"; \
845
 
              $(mkinstalldirs) "$(distdir)/$$docdir"; \
846
 
            fi; \
847
 
          echo "$(INSTALL_DATA) $$d$$doc $(distdir)/$$doc"; \
848
 
          $(INSTALL_DATA) "$$d$$doc" "$(distdir)/$$doc"; \
849
 
        done
850
 
        @list='$(_DOC_LC_DOCS)'; \
851
 
        for doc in $$list; do \
852
 
          if test -f "$$doc"; then d=; else d="$(srcdir)/"; fi; \
853
 
            docdir=`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`; \
854
 
            if ! test -d "$(distdir)/$$docdir"; then \
855
 
              echo "$(mkinstalldirs) $(distdir)/$$docdir"; \
856
 
              $(mkinstalldirs) "$(distdir)/$$docdir"; \
857
 
            fi; \
858
 
          echo "$(INSTALL_DATA) $$d$$doc $(distdir)/$$doc"; \
859
 
          $(INSTALL_DATA) "$$d$$doc" "$(distdir)/$$doc"; \
860
 
        done
861
 
        @list='$(_DOC_POFILES)'; \
862
 
        for doc in $$list; do \
863
 
          if test -f "$$doc"; then d=; else d="$(srcdir)/"; fi; \
864
 
            docdir=`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`; \
865
 
            if ! test -d "$(distdir)/$$docdir"; then \
866
 
              echo "$(mkinstalldirs) $(distdir)/$$docdir"; \
867
 
              $(mkinstalldirs) "$(distdir)/$$docdir"; \
868
 
            fi; \
869
 
          echo "$(INSTALL_DATA) $$d$$doc $(distdir)/$$doc"; \
870
 
          $(INSTALL_DATA) "$$d$$doc" "$(distdir)/$$doc"; \
871
 
        done
872
 
 
873
 
dist-doc-figs: $(_DOC_SRC_FIGURES)
874
 
        @list='$(_DOC_C_FIGURES) $(_DOC_LC_FIGURES)'; \
875
 
        for fig in $$list; do \
876
 
          if test -f "$$fig"; then d=; else d="$(srcdir)/"; fi; \
877
 
          if test -f "$$d$$fig"; then \
878
 
            figdir=`echo $$fig | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`; \
879
 
            if ! test -d "$(distdir)/$$figdir"; then \
880
 
              echo "$(mkinstalldirs) $(distdir)/$$figdir"; \
881
 
              $(mkinstalldirs) "$(distdir)/$$figdir"; \
882
 
            fi; \
883
 
            echo "$(INSTALL_DATA) $$d$$fig $(distdir)/$$fig"; \
884
 
            $(INSTALL_DATA) "$$d$$fig" "$(distdir)/$$fig"; \
885
 
          fi; \
886
 
        done;
887
 
 
888
 
dist-doc-omf:
889
 
        @if test -f "$(_DOC_OMF_IN)"; then d=; else d="$(srcdir)/"; fi; \
890
 
        echo "$(INSTALL_DATA) $$d$(_DOC_OMF_IN) $(distdir)/$(notdir $(_DOC_OMF_IN))"; \
891
 
        $(INSTALL_DATA) "$$d$(_DOC_OMF_IN)" "$(distdir)/$(notdir $(_DOC_OMF_IN))"
892
 
 
893
 
dist-doc-dsk:
894
 
        @if test -f "$(_DOC_DSK_IN)"; then d=; else d="$(srcdir)/"; fi; \
895
 
        echo "$(INSTALL_DATA) $$d$(_DOC_DSK_IN) $(distdir)/$(notdir $(_DOC_DSK_IN))"; \
896
 
        $(INSTALL_DATA) "$$d$(_DOC_DSK_IN)" "$(distdir)/$(notdir $(_DOC_DSK_IN))"
897
 
 
898
 
################################################################################
899
 
 
900
 
.PHONY: check-doc-docs check-doc-omf
901
 
check:                                                  \
902
 
        $(if $(DOC_MODULE),check-doc-docs)              \
903
 
        $(if $(DOC_ID),check-doc-pages)                 \
904
 
        $(if $(_DOC_OMF_IN),check-doc-omf)
905
 
 
906
 
check-doc-docs: $(_DOC_C_DOCS) $(_DOC_LC_DOCS)
907
 
        @for lc in C $(_DOC_REAL_LINGUAS); do \
908
 
          if test -f "$$lc"; \
909
 
            then d=; \
910
 
            xmlpath="$$lc"; \
911
 
          else \
912
 
            d="$(srcdir)/"; \
913
 
            xmlpath="$$lc:$(srcdir)/$$lc"; \
914
 
          fi; \
915
 
          echo "xmllint --noout --noent --path $$xmlpath --xinclude --postvalid $$d$$lc/$(DOC_MODULE).xml"; \
916
 
          xmllint --noout --noent --path "$$xmlpath" --xinclude --postvalid "$$d$$lc/$(DOC_MODULE).xml"; \
917
 
        done
918
 
 
919
 
check-doc-pages: $(_DOC_C_PAGES) $(_DOC_LC_PAGES)
920
 
        for lc in C $(_DOC_REAL_LINGUAS); do \
921
 
          if test -f "$$lc"; \
922
 
            then d=; \
923
 
            xmlpath="$$lc"; \
924
 
          else \
925
 
            d="$(srcdir)/"; \
926
 
            xmlpath="$$lc:$(srcdir)/$$lc"; \
927
 
          fi; \
928
 
          for page in $(DOC_PAGES); do \
929
 
            echo "xmllint --noout --noent --path $$xmlpath --xinclude $$d$$lc/$$page"; \
930
 
            xmllint --noout --noent --path "$$xmlpath" --xinclude "$$d$$lc/$$page"; \
931
 
          done; \
932
 
        done
933
 
 
934
 
check-doc-omf: $(_DOC_OMF_ALL)
935
 
        @list='$(_DOC_OMF_ALL)'; for omf in $$list; do \
936
 
          echo "xmllint --noout --xinclude --dtdvalid 'http://scrollkeeper.sourceforge.net/dtds/scrollkeeper-omf-1.0/scrollkeeper-omf.dtd' $$omf"; \
937
 
          xmllint --noout --xinclude --dtdvalid 'http://scrollkeeper.sourceforge.net/dtds/scrollkeeper-omf-1.0/scrollkeeper-omf.dtd' $$omf; \
938
 
        done
939
 
 
940
 
################################################################################
941
 
 
942
 
.PHONY: install-doc-docs install-doc-html install-doc-figs install-doc-omf install-doc-dsk
943
 
 
944
 
install-data-local:                                     \
945
 
        $(if $(DOC_MODULE)$(DOC_ID),install-doc-docs)   \
946
 
        $(if $(_DOC_HTML_ALL),install-doc-html)         \
947
 
        $(if $(_DOC_C_FIGURES),install-doc-figs)        \
948
 
        $(if $(_DOC_OMF_IN),install-doc-omf)
949
 
#       $(if $(_DOC_DSK_IN),install-doc-dsk)
950
 
 
951
 
install-doc-docs:
952
 
        @for lc in C $(_DOC_REAL_LINGUAS); do \
953
 
          echo "$(mkinstalldirs) $(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$lc"; \
954
 
          $(mkinstalldirs) $(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$lc; \
955
 
        done
956
 
        @list='$(_DOC_C_DOCS)'; for doc in $$list; do \
957
 
          if test -f "$$doc"; then d=; else d="$(srcdir)/"; fi; \
958
 
          docdir="$$lc/"`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`; \
959
 
          docdir="$(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$docdir"; \
960
 
          if ! test -d "$$docdir"; then \
961
 
            echo "$(mkinstalldirs) $$docdir"; \
962
 
            $(mkinstalldirs) "$$docdir"; \
963
 
          fi; \
964
 
          echo "$(INSTALL_DATA) $$d$$doc $(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$doc"; \
965
 
          $(INSTALL_DATA) $$d$$doc $(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$doc; \
966
 
        done
967
 
        @list='$(_DOC_LC_DOCS)'; for doc in $$list; do \
968
 
          if test -f "$$doc"; then d=; else d="$(srcdir)/"; fi; \
969
 
          docdir="$$lc/"`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`; \
970
 
          docdir="$(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$docdir"; \
971
 
          if ! test -d "$$docdir"; then \
972
 
            echo "$(mkinstalldirs) $$docdir"; \
973
 
            $(mkinstalldirs) "$$docdir"; \
974
 
          fi; \
975
 
          echo "$(INSTALL_DATA) $$d$$doc $(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$doc"; \
976
 
          $(INSTALL_DATA) $$d$$doc $(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$doc; \
977
 
        done
978
 
 
979
 
install-doc-figs:
980
 
        @list='$(patsubst C/%,%,$(_DOC_C_FIGURES))'; for fig in $$list; do \
981
 
          for lc in C $(_DOC_REAL_LINGUAS); do \
982
 
            figsymlink=false; \
983
 
            if test -f "$$lc/$$fig"; then \
984
 
              figfile="$$lc/$$fig"; \
985
 
            elif test -f "$(srcdir)/$$lc/$$fig"; then \
986
 
              figfile="$(srcdir)/$$lc/$$fig"; \
987
 
            else \
988
 
              figsymlink=true; \
989
 
            fi; \
990
 
            figdir="$$lc/"`echo $$fig | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`; \
991
 
            figdir="$(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$figdir"; \
992
 
            if ! test -d "$$figdir"; then \
993
 
              echo "$(mkinstalldirs) $$figdir"; \
994
 
              $(mkinstalldirs) "$$figdir"; \
995
 
            fi; \
996
 
            figbase=`echo $$fig | sed -e 's/^.*\///'`; \
997
 
            if $$figsymlink; then \
998
 
              echo "cd $$figdir && $(LN_S) -f ../../C/$$fig $$figbase"; \
999
 
              ( cd "$$figdir" && $(LN_S) -f "../../C/$$fig" "$$figbase" ); \
1000
 
            else \
1001
 
              echo "$(INSTALL_DATA) $$figfile $$figdir$$figbase"; \
1002
 
              $(INSTALL_DATA) "$$figfile" "$$figdir$$figbase"; \
1003
 
            fi; \
1004
 
          done; \
1005
 
        done
1006
 
 
1007
 
install-doc-html:
1008
 
        echo install-html
1009
 
 
1010
 
install-doc-omf:
1011
 
        $(mkinstalldirs) $(DESTDIR)$(OMF_DIR)/$(_doc_install_dir)
1012
 
        @list='$(_DOC_OMF_ALL)'; for omf in $$list; do \
1013
 
          echo "$(INSTALL_DATA) $$omf $(DESTDIR)$(OMF_DIR)/$(_doc_install_dir)/$$omf"; \
1014
 
          $(INSTALL_DATA) $$omf $(DESTDIR)$(OMF_DIR)/$(_doc_install_dir)/$$omf; \
1015
 
        done
1016
 
        @if test "x$(_ENABLE_SK)" = "xtrue"; then \
1017
 
          echo "scrollkeeper-update -p $(DESTDIR)$(_sklocalstatedir) -o $(DESTDIR)$(OMF_DIR)/$(_doc_install_dir)"; \
1018
 
          scrollkeeper-update -p "$(DESTDIR)$(_sklocalstatedir)" -o "$(DESTDIR)$(OMF_DIR)/$(_doc_install_dir)"; \
1019
 
        fi;
1020
 
 
1021
 
install-doc-dsk:
1022
 
        echo install-dsk
1023
 
 
1024
 
################################################################################
1025
 
 
1026
 
.PHONY: uninstall-doc-docs uninstall-doc-html uninstall-doc-figs uninstall-doc-omf uninstall-doc-dsk
1027
 
uninstall-local:                                        \
1028
 
        $(if $(DOC_MODULE)$(DOC_ID),uninstall-doc-docs) \
1029
 
        $(if $(_DOC_HTML_ALL),uninstall-doc-html)       \
1030
 
        $(if $(_DOC_C_FIGURES),uninstall-doc-figs)      \
1031
 
        $(if $(_DOC_OMF_IN),uninstall-doc-omf)
1032
 
#       $(if $(_DOC_DSK_IN),uninstall-doc-dsk)
1033
 
 
1034
 
uninstall-doc-docs:
1035
 
        @list='$(_DOC_C_DOCS)'; for doc in $$list; do \
1036
 
          echo " rm -f $(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$doc"; \
1037
 
          rm -f "$(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$doc"; \
1038
 
        done
1039
 
        @list='$(_DOC_LC_DOCS)'; for doc in $$list; do \
1040
 
          echo " rm -f $(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$doc"; \
1041
 
          rm -f "$(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$doc"; \
1042
 
        done
1043
 
 
1044
 
uninstall-doc-figs:
1045
 
        @list='$(_DOC_C_FIGURES) $(_DOC_LC_FIGURES)'; for fig in $$list; do \
1046
 
          echo "rm -f $(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$fig"; \
1047
 
          rm -f "$(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$fig"; \
1048
 
        done;
1049
 
 
1050
 
uninstall-doc-omf:
1051
 
        @list='$(_DOC_OMF_ALL)'; for omf in $$list; do \
1052
 
          if test "x$(_ENABLE_SK)" = "xtrue"; then \
1053
 
            echo "scrollkeeper-uninstall -p $(_sklocalstatedir) $(DESTDIR)$(OMF_DIR)/$(_doc_install_dir)/$$omf"; \
1054
 
            scrollkeeper-uninstall -p "$(_sklocalstatedir)" "$(DESTDIR)$(OMF_DIR)/$(_doc_install_dir)/$$omf"; \
1055
 
          fi; \
1056
 
          echo "rm -f $(DESTDIR)$(OMF_DIR)/$(_doc_install_dir)/$$omf"; \
1057
 
          rm -f "$(DESTDIR)$(OMF_DIR)/$(_doc_install_dir)/$$omf"; \
1058
 
        done
1059
 
dist-hook: doc-dist-hook
 
461
        maintainer-clean-generic mostlyclean mostlyclean-generic \
 
462
        mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am
 
463
 
 
464
@YELP_HELP_RULES@
1060
465
 
1061
466
# Tell versions [3.59,3.63) of GNU make to not export all variables.
1062
467
# Otherwise a system limit (for SysV at least) may be exceeded.