~ubuntu-branches/ubuntu/raring/gdm/raring

« back to all changes in this revision

Viewing changes to gnome-doc-utils.make

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2009-07-17 11:41:35 UTC
  • mfrom: (1.4.32 upstream)
  • Revision ID: james.westby@ubuntu.com-20090717114135-1ql0hht1lumoiscv
Tags: 2.26.1git20090717-0ubuntu1
* Update to latest upstream git head:
  - Make greeter login window be a dock. Fixes metacity complaining about
    session management. (LP: #395324)
* Drop patches which are fixed upstream:
  - 00git-greeter-session-management.patch
  - 00git-invalid-dmrc-layout.patch
  - 00git-use-after-free.patch
  - 00git-xklavier4.patch
  - 02_dont_force_us_keyboard.patch
  - 04_polkit1.patch
* 80_workaround_incorrect_directories.patch: Update to new upstream version.
* Drop 01_xconfigoptions.patch; these configure variables are not used any
  more in the upstream code, and upstream supplies the X.org -br option by
  default now. Also drop the corresponding configure changes from
  17_update_default_xserver.patch.
* Apply 15_usplash.patch to debian/gdm.init and drop the patch.
* 17_update_default_xserver.patch: Update to new upstream version, add
  corresponding configure change, add patch tag header, forward upstream,
  and rename to 02_x_server_location.patch.
* Drop 99_autoreconf.patch. The only remaining build system change is the
  previous item.
* Drop 20_xdm-stuff.patch, it's just cruft.
* Drop debian/Xsession, and change debian/rules to install the upstream one.
* 01_xrdb_nocpp.patch: Add patch tag header, forward upstream.
* Rename 80_workaround_incorrect_directories.patch to
  04_fix_external_program_directories.patch and add patch tag header.
* Rename 81_initial_server_on_vt7.patch to 05_initial_server_on_vt7.patch.
* debian/rules: Remove /var/gdm (empty and nonstandard) and /var/run (will
  be created at runtime), thanks lintian.
* debian/copyright: Point to versioned GPL, thanks lintian.
* debian/gdm.postrm: Use "set -e" to conform to policy.
* Add debian/xterm.desktop: Reintroduce "failsafe xterm" session.

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