~ubuntu-branches/ubuntu/karmic/evolution/karmic-proposed

« back to all changes in this revision

Viewing changes to gnome-doc-utils.make

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2009-10-19 11:28:09 UTC
  • mfrom: (1.1.69 upstream)
  • Revision ID: james.westby@ubuntu.com-20091019112809-dm58mhdd7mkedv4h
Tags: 2.28.1-0ubuntu1
* New upstream version:
  Bug Fixes:
  - #552552 - File/Empty Trash does not expunge maildir folder    
  - #592117 - Calendar printout love
  - #592313 - Default label names untranslated (lp: #442250)
  - #594373 - Calendar notifications are not cleared from system tray    
              (lp: #437755)
  - #595501 - Crash on a changed filter rule removal (lp: #452921)
  - #595923 - Fix user doc compilation warnings 
  - #595938 - User doc clean up 
  - #596130 - Use correct Name and GenericName in .desktop file    
  - #596157 - Use "Message-ID" instead of "Message-Id" 
  - #596160 - Compiler warnings about _MailComponentPrivate.quit_state    
  - #596712 - Recovered messages not autosaved until modification
  - #596800 - Hang on contacts merging 
  - #597108 - E_CONFIG_SECTION headers not properly escaped    
  - #597564 - Invalid g_object_unref call in redo_queries 
  Miscellaneous:
  Disable gdk_event_get_graphics_expose
  Various composer autosave fixes. 
* debian/patches/90_autoconf.patch:
  - new version update

Show diffs side-by-side

added added

removed removed

Lines of Context:
92
92
## The name of the document being built
93
93
DOC_MODULE ?=
94
94
 
95
 
## @ DOC_ID
96
 
## The unique identifier for a Mallard document
97
 
DOC_ID ?=
98
 
 
99
 
## @ DOC_PAGES
100
 
## Page files in a Mallard document
101
 
DOC_PAGES ?=
102
 
 
103
95
## @ DOC_ENTITIES
104
96
## Files included with a SYSTEM entity
105
97
DOC_ENTITIES ?=
131
123
## Variables for Bootstrapping
132
124
 
133
125
_xml2po ?= `which xml2po`
134
 
_xml2po_mode = $(if $(DOC_ID),mallard,docbook)
135
126
 
136
127
_db2html ?= `$(PKG_CONFIG) --variable db2html gnome-doc-utils`
137
128
_db2omf  ?= `$(PKG_CONFIG) --variable db2omf gnome-doc-utils`
138
 
_malrng  ?= `$(PKG_CONFIG) --variable malrng gnome-doc-utils`
139
129
_chunks  ?= `$(PKG_CONFIG) --variable xmldir gnome-doc-utils`/gnome/xslt/docbook/utils/chunks.xsl
140
130
_credits ?= `$(PKG_CONFIG) --variable xmldir gnome-doc-utils`/gnome/xslt/docbook/utils/credits.xsl
141
131
_ids ?= `$(PKG_CONFIG) --variable xmldir gnome-doc-utils`/gnome/xslt/docbook/utils/ids.xsl
215
205
## The top-level documentation file in the C locale
216
206
_DOC_C_MODULE = $(if $(DOC_MODULE),C/$(DOC_MODULE).xml)
217
207
 
218
 
## @ _DOC_C_PAGES
219
 
## Page files in a Mallard document in the C locale
220
 
_DOC_C_PAGES = $(foreach page,$(DOC_PAGES),C/$(page))
221
 
 
222
208
## @ _DOC_C_ENTITIES
223
209
## Files included with a SYSTEM entity in the C locale
224
210
_DOC_C_ENTITIES = $(foreach ent,$(DOC_ENTITIES),C/$(ent))
231
217
## All documentation files in the C locale
232
218
_DOC_C_DOCS =                                                           \
233
219
        $(_DOC_C_ENTITIES)      $(_DOC_C_INCLUDES)                      \
234
 
        $(_DOC_C_PAGES)         $(_DOC_C_MODULE)
 
220
        $(_DOC_C_MODULE)
235
221
 
236
222
## @ _DOC_C_DOCS_NOENT
237
223
## All documentation files in the C locale,
238
224
## except files included with a SYSTEM entity
239
225
_DOC_C_DOCS_NOENT =                                                     \
240
 
        $(_DOC_C_MODULE)        $(_DOC_C_INCLUDES)                      \
241
 
        $(_DOC_C_PAGES)
 
226
        $(_DOC_C_MODULE)        $(_DOC_C_INCLUDES)
242
227
 
243
228
## @ _DOC_C_FIGURES
244
229
## All figures and other external data in the C locale
260
245
 
261
246
## @ _DOC_POFILES
262
247
## The .po files used for translating the document
263
 
_DOC_POFILES = $(if $(DOC_MODULE)$(DOC_ID),                                     \
 
248
_DOC_POFILES = $(if $(DOC_MODULE),                                              \
264
249
        $(foreach lc,$(_DOC_REAL_LINGUAS),$(lc)/$(lc).po))
265
250
 
266
251
.PHONY: po
271
256
_DOC_LC_MODULES = $(if $(DOC_MODULE),                                           \
272
257
        $(foreach lc,$(_DOC_REAL_LINGUAS),$(lc)/$(DOC_MODULE).xml))
273
258
 
274
 
## @ _DOC_LC_PAGES
275
 
## Page files in a Mallard document in all other locales
276
 
_DOC_LC_PAGES =                                                                 \
277
 
        $(foreach lc,$(_DOC_REAL_LINGUAS),$(foreach page,$(_DOC_C_PAGES),       \
278
 
                $(lc)/$(notdir $(page)) ))
279
 
 
280
259
## @ _DOC_LC_XINCLUDES
281
260
## Files included with XInclude in all other locales
282
261
_DOC_LC_INCLUDES =                                                              \
293
272
## @ _DOC_LC_DOCS
294
273
## All documentation files in all other locales
295
274
_DOC_LC_DOCS =                                                                  \
296
 
        $(_DOC_LC_MODULES)      $(_DOC_LC_INCLUDES)     $(_DOC_LC_PAGES)        \
 
275
        $(_DOC_LC_MODULES)      $(_DOC_LC_INCLUDES)                             \
297
276
        $(if $(filter html HTML,$(_DOC_REAL_FORMATS)),$(_DOC_LC_HTML))
298
277
 
299
278
## @ _DOC_LC_FIGURES
320
299
        done; \
321
300
        if ! test -f $@; then \
322
301
          echo "(cd $(dir $@) && \
323
 
            $(_xml2po) -m $(_xml2po_mode) -e $$docs > $(notdir $@).tmp && \
 
302
            $(_xml2po) -e $$docs > $(notdir $@).tmp && \
324
303
            cp $(notdir $@).tmp $(notdir $@) && rm -f $(notdir $@).tmp)"; \
325
304
          (cd $(dir $@) && \
326
 
            $(_xml2po) -m $(_xml2po_mode) -e $$docs > $(notdir $@).tmp && \
 
305
            $(_xml2po) -e $$docs > $(notdir $@).tmp && \
327
306
            cp $(notdir $@).tmp $(notdir $@) && rm -f $(notdir $@).tmp); \
328
307
        else \
329
308
          echo "(cd $(dir $@) && \
330
 
            $(_xml2po) -m $(_xml2po_mode) -e -u $(notdir $@) $$docs)"; \
 
309
            $(_xml2po) -e -u $(notdir $@) $$docs)"; \
331
310
          (cd $(dir $@) && \
332
 
            $(_xml2po) -m $(_xml2po_mode) -e -u $(notdir $@) $$docs); \
 
311
            $(_xml2po) -e -u $(notdir $@) $$docs); \
333
312
        fi
334
313
 
335
314
# FIXME: fix the dependancy
338
317
$(_DOC_LC_DOCS) : $(_DOC_C_DOCS)
339
318
        if ! test -d $(dir $@); then mkdir $(dir $@); fi
340
319
        if [ -f "C/$(notdir $@)" ]; then d="../"; else d="$(_DOC_ABS_SRCDIR)/"; fi; \
341
 
        po="$(dir $@)$(patsubst %/$(notdir $@),%,$@).po"; \
342
 
        if [ -f "$${po}" ]; then po="../$${po}"; else po="$(_DOC_ABS_SRCDIR)/$${po}"; fi; \
343
320
        (cd $(dir $@) && \
344
 
          $(_xml2po) -m $(_xml2po_mode) -e -p "$${po}" \
 
321
          $(_xml2po) -e -p \
 
322
            "$${d}$(dir $@)$(patsubst %/$(notdir $@),%,$@).po" \
345
323
            "$${d}C/$(notdir $@)" > $(notdir $@).tmp && \
346
324
            cp $(notdir $@).tmp $(notdir $@) && rm -f $(notdir $@).tmp)
347
325
 
351
329
.PHONY: pot
352
330
pot: $(_DOC_POT)
353
331
$(_DOC_POT): $(_DOC_C_DOCS_NOENT)
354
 
        $(_xml2po) -m $(_xml2po_mode) -e -o $@ $^
 
332
        $(_xml2po) -e -o $@ $^
355
333
 
356
334
 
357
335
################################################################################
369
347
 
370
348
 
371
349
################################################################################
372
 
## All
373
350
 
374
351
all:                                                    \
375
352
        $(_DOC_C_DOCS)          $(_DOC_LC_DOCS)         \
377
354
        $(_DOC_HTML_ALL)        $(_DOC_POFILES)
378
355
 
379
356
 
380
 
################################################################################
381
 
## Clean
382
 
 
383
357
.PHONY: clean-doc-omf clean-doc-dsk clean-doc-lc clean-doc-dir
384
358
 
385
359
clean-doc-omf: ; rm -f $(_DOC_OMF_DB) $(_DOC_OMF_HTML)
398
372
            rm -f "$$lc/.xml2po.mo"; \
399
373
          fi; \
400
374
        done
401
 
clean-doc-dir: clean-doc-lc
 
375
clean-doc-dir:
402
376
        @for lc in C $(_DOC_REAL_LINGUAS); do \
403
377
          for dir in `find $$lc -depth -type d`; do \
404
378
            if ! test $$dir -ef $(srcdir)/$$dir; then \
411
385
_clean_omf = $(if $(_DOC_OMF_IN),clean-doc-omf)
412
386
_clean_dsk = $(if $(_DOC_DSK_IN),clean-doc-dsk)
413
387
_clean_lc  = $(if $(_DOC_REAL_LINGUAS),clean-doc-lc)
414
 
_clean_dir = $(if $(DOC_MODULE)$(DOC_ID),clean-doc-dir)
 
388
_clean_dir = $(if $(DOC_MODULE),clean-doc-dir)
415
389
 
416
390
clean-local:                                            \
417
391
        $(_clean_omf)           $(_clean_dsk)           \
427
401
        $(_clean_lc)            $(_clean_dir)
428
402
 
429
403
 
430
 
 
431
 
################################################################################
432
 
## Dist
433
 
 
434
 
.PHONY: dist-doc-docs dist-doc-pages dist-doc-figs dist-doc-omf dist-doc-dsk
435
 
doc-dist-hook:                                          \
436
 
        $(if $(DOC_MODULE)$(DOC_ID),dist-doc-docs)      \
437
 
        $(if $(_DOC_C_FIGURES),dist-doc-figs)           \
 
404
.PHONY: dist-doc-docs dist-doc-figs dist-doc-omf dist-doc-dsk
 
405
doc-dist-hook:                                  \
 
406
        $(if $(DOC_MODULE),dist-doc-docs)       \
 
407
        $(if $(_DOC_C_FIGURES),dist-doc-figs)   \
438
408
        $(if $(_DOC_OMF_IN),dist-doc-omf)
439
409
#       $(if $(_DOC_DSK_IN),dist-doc-dsk)
440
410
 
481
451
        $(INSTALL_DATA) "$$d$(_DOC_DSK_IN)" "$(distdir)/$(notdir $(_DOC_DSK_IN))"
482
452
 
483
453
 
484
 
 
485
 
################################################################################
486
 
## Check
487
 
 
488
454
.PHONY: check-doc-docs check-doc-omf
489
455
check:                                                  \
490
456
        $(if $(DOC_MODULE),check-doc-docs)              \
491
 
        $(if $(DOC_ID),check-doc-pages)                 \
492
457
        $(if $(_DOC_OMF_IN),check-doc-omf)
493
458
 
494
459
check-doc-docs: $(_DOC_C_DOCS) $(_DOC_LC_DOCS)
504
469
          xmllint --noout --noent --path "$$xmlpath" --xinclude --postvalid "$$d$$lc/$(DOC_MODULE).xml"; \
505
470
        done
506
471
 
507
 
check-doc-pages: $(_DOC_C_PAGES) $(_DOC_LC_PAGES)
508
 
        for lc in C $(_DOC_REAL_LINGUAS); do \
509
 
          if test -f "$$lc"; \
510
 
            then d=; \
511
 
            xmlpath="$$lc"; \
512
 
          else \
513
 
            d="$(srcdir)/"; \
514
 
            xmlpath="$$lc:$(srcdir)/$$lc"; \
515
 
          fi; \
516
 
          for page in $(DOC_PAGES); do \
517
 
            echo "xmllint --noout --noent --path $$xmlpath --xinclude --relaxng $(_malrng) $$d$$lc/$$page"; \
518
 
            xmllint --noout --noent --path "$$xmlpath" --xinclude --relaxng "$(_malrng)" "$$d$$lc/$$page"; \
519
 
          done; \
520
 
        done
521
 
 
522
472
check-doc-omf: $(_DOC_OMF_ALL)
523
473
        @list='$(_DOC_OMF_ALL)'; for omf in $$list; do \
524
474
          echo "xmllint --noout --xinclude --dtdvalid 'http://scrollkeeper.sourceforge.net/dtds/scrollkeeper-omf-1.0/scrollkeeper-omf.dtd' $$omf"; \
526
476
        done
527
477
 
528
478
 
529
 
 
530
 
################################################################################
531
 
## Install
532
 
 
533
479
.PHONY: install-doc-docs install-doc-html install-doc-figs install-doc-omf install-doc-dsk
534
 
 
535
 
_doc_install_dir = $(if $(DOC_ID),$(DOC_ID),$(DOC_MODULE))
536
 
 
537
480
install-data-local:                                     \
538
 
        $(if $(DOC_MODULE)$(DOC_ID),install-doc-docs)   \
 
481
        $(if $(DOC_MODULE),install-doc-docs)            \
539
482
        $(if $(_DOC_HTML_ALL),install-doc-html)         \
540
483
        $(if $(_DOC_C_FIGURES),install-doc-figs)        \
541
484
        $(if $(_DOC_OMF_IN),install-doc-omf)
543
486
 
544
487
install-doc-docs:
545
488
        @for lc in C $(_DOC_REAL_LINGUAS); do \
546
 
          echo "$(mkinstalldirs) $(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$lc"; \
547
 
          $(mkinstalldirs) $(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$lc; \
 
489
          echo "$(mkinstalldirs) $(DESTDIR)$(HELP_DIR)/$(DOC_MODULE)/$$lc"; \
 
490
          $(mkinstalldirs) $(DESTDIR)$(HELP_DIR)/$(DOC_MODULE)/$$lc; \
548
491
        done
549
492
        @list='$(_DOC_C_DOCS) $(_DOC_LC_DOCS)'; for doc in $$list; do \
550
493
          if test -f "$$doc"; then d=; else d="$(srcdir)/"; fi; \
551
494
          docdir="$$lc/"`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`; \
552
 
          docdir="$(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$docdir"; \
 
495
          docdir="$(DESTDIR)$(HELP_DIR)/$(DOC_MODULE)/$$docdir"; \
553
496
          if ! test -d "$$docdir"; then \
554
497
            echo "$(mkinstalldirs) $$docdir"; \
555
498
            $(mkinstalldirs) "$$docdir"; \
556
499
          fi; \
557
 
          echo "$(INSTALL_DATA) $$d$$doc $(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$doc"; \
558
 
          $(INSTALL_DATA) $$d$$doc $(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$doc; \
 
500
          echo "$(INSTALL_DATA) $$d$$doc $(DESTDIR)$(HELP_DIR)/$(DOC_MODULE)/$$doc"; \
 
501
          $(INSTALL_DATA) $$d$$doc $(DESTDIR)$(HELP_DIR)/$(DOC_MODULE)/$$doc; \
559
502
        done
560
503
 
561
504
install-doc-figs:
570
513
              figsymlink=true; \
571
514
            fi; \
572
515
            figdir="$$lc/"`echo $$fig | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`; \
573
 
            figdir="$(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$figdir"; \
 
516
            figdir="$(DESTDIR)$(HELP_DIR)/$(DOC_MODULE)/$$figdir"; \
574
517
            if ! test -d "$$figdir"; then \
575
518
              echo "$(mkinstalldirs) $$figdir"; \
576
519
              $(mkinstalldirs) "$$figdir"; \
590
533
        echo install-html
591
534
 
592
535
install-doc-omf:
593
 
        $(mkinstalldirs) $(DESTDIR)$(OMF_DIR)/$(_doc_install_dir)
 
536
        $(mkinstalldirs) $(DESTDIR)$(OMF_DIR)/$(DOC_MODULE)
594
537
        @list='$(_DOC_OMF_ALL)'; for omf in $$list; do \
595
 
          echo "$(INSTALL_DATA) $$omf $(DESTDIR)$(OMF_DIR)/$(_doc_install_dir)/$$omf"; \
596
 
          $(INSTALL_DATA) $$omf $(DESTDIR)$(OMF_DIR)/$(_doc_install_dir)/$$omf; \
 
538
          echo "$(INSTALL_DATA) $$omf $(DESTDIR)$(OMF_DIR)/$(DOC_MODULE)/$$omf"; \
 
539
          $(INSTALL_DATA) $$omf $(DESTDIR)$(OMF_DIR)/$(DOC_MODULE)/$$omf; \
597
540
        done
598
541
        @if test "x$(_ENABLE_SK)" = "xtrue"; then \
599
 
          echo "scrollkeeper-update -p $(DESTDIR)$(_sklocalstatedir) -o $(DESTDIR)$(OMF_DIR)/$(_doc_install_dir)"; \
600
 
          scrollkeeper-update -p "$(DESTDIR)$(_sklocalstatedir)" -o "$(DESTDIR)$(OMF_DIR)/$(_doc_install_dir)"; \
 
542
          echo "scrollkeeper-update -p $(DESTDIR)$(_sklocalstatedir) -o $(DESTDIR)$(OMF_DIR)/$(DOC_MODULE)"; \
 
543
          scrollkeeper-update -p "$(DESTDIR)$(_sklocalstatedir)" -o "$(DESTDIR)$(OMF_DIR)/$(DOC_MODULE)"; \
601
544
        fi;
602
545
 
603
546
install-doc-dsk:
604
547
        echo install-dsk
605
548
 
606
549
 
607
 
 
608
 
################################################################################
609
 
## Uninstall
610
 
 
611
550
.PHONY: uninstall-doc-docs uninstall-doc-html uninstall-doc-figs uninstall-doc-omf uninstall-doc-dsk
612
551
uninstall-local:                                        \
613
 
        $(if $(DOC_MODULE)$(DOC_ID),uninstall-doc-docs) \
 
552
        $(if $(DOC_MODULE),uninstall-doc-docs)          \
614
553
        $(if $(_DOC_HTML_ALL),uninstall-doc-html)       \
615
554
        $(if $(_DOC_C_FIGURES),uninstall-doc-figs)      \
616
555
        $(if $(_DOC_OMF_IN),uninstall-doc-omf)
618
557
 
619
558
uninstall-doc-docs:
620
559
        @list='$(_DOC_C_DOCS) $(_DOC_LC_DOCS)'; for doc in $$list; do \
621
 
          echo " rm -f $(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$doc"; \
622
 
          rm -f "$(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$doc"; \
 
560
          echo " rm -f $(DESTDIR)$(HELP_DIR)/$(DOC_MODULE)/$$doc"; \
 
561
          rm -f "$(DESTDIR)$(HELP_DIR)/$(DOC_MODULE)/$$doc"; \
623
562
        done
624
563
 
625
564
uninstall-doc-figs:
626
565
        @list='$(_DOC_C_FIGURES) $(_DOC_LC_FIGURES)'; for fig in $$list; do \
627
 
          echo "rm -f $(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$fig"; \
628
 
          rm -f "$(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$fig"; \
 
566
          echo "rm -f $(DESTDIR)$(HELP_DIR)/$(DOC_MODULE)/$$fig"; \
 
567
          rm -f "$(DESTDIR)$(HELP_DIR)/$(DOC_MODULE)/$$fig"; \
629
568
        done;
630
569
 
631
570
uninstall-doc-omf:
632
571
        @list='$(_DOC_OMF_ALL)'; for omf in $$list; do \
633
572
          if test "x$(_ENABLE_SK)" = "xtrue"; then \
634
 
            echo "scrollkeeper-uninstall -p $(_sklocalstatedir) $(DESTDIR)$(OMF_DIR)/$(_doc_install_dir)/$$omf"; \
635
 
            scrollkeeper-uninstall -p "$(_sklocalstatedir)" "$(DESTDIR)$(OMF_DIR)/$(_doc_install_dir)/$$omf"; \
 
573
            echo "scrollkeeper-uninstall -p $(_sklocalstatedir) $(DESTDIR)$(OMF_DIR)/$(DOC_MODULE)/$$omf"; \
 
574
            scrollkeeper-uninstall -p "$(_sklocalstatedir)" "$(DESTDIR)$(OMF_DIR)/$(DOC_MODULE)/$$omf"; \
636
575
          fi; \
637
 
          echo "rm -f $(DESTDIR)$(OMF_DIR)/$(_doc_install_dir)/$$omf"; \
638
 
          rm -f "$(DESTDIR)$(OMF_DIR)/$(_doc_install_dir)/$$omf"; \
 
576
          echo "rm -f $(DESTDIR)$(OMF_DIR)/$(DOC_MODULE)/$$omf"; \
 
577
          rm -f "$(DESTDIR)$(OMF_DIR)/$(DOC_MODULE)/$$omf"; \
639
578
        done