~ubuntu-branches/ubuntu/maverick/gnome-system-monitor/maverick

« back to all changes in this revision

Viewing changes to gnome-doc-utils.make

  • Committer: Bazaar Package Importer
  • Author(s): Sebastian Dröge
  • Date: 2010-04-12 10:13:22 UTC
  • mfrom: (1.3.5 upstream)
  • mto: This revision was merged to the branch mainline in revision 74.
  • Revision ID: james.westby@ubuntu.com-20100412101322-rkp83uh063gkuc38
Tags: 2.28.1-1
New upstream bugfix release.

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 ?=
123
131
## Variables for Bootstrapping
124
132
 
125
133
_xml2po ?= `which xml2po`
 
134
_xml2po_mode = $(if $(DOC_ID),mallard,docbook)
126
135
 
127
136
_db2html ?= `$(PKG_CONFIG) --variable db2html gnome-doc-utils`
128
137
_db2omf  ?= `$(PKG_CONFIG) --variable db2omf gnome-doc-utils`
 
138
_malrng  ?= `$(PKG_CONFIG) --variable malrng gnome-doc-utils`
129
139
_chunks  ?= `$(PKG_CONFIG) --variable xmldir gnome-doc-utils`/gnome/xslt/docbook/utils/chunks.xsl
130
140
_credits ?= `$(PKG_CONFIG) --variable xmldir gnome-doc-utils`/gnome/xslt/docbook/utils/credits.xsl
131
141
_ids ?= `$(PKG_CONFIG) --variable xmldir gnome-doc-utils`/gnome/xslt/docbook/utils/ids.xsl
205
215
## The top-level documentation file in the C locale
206
216
_DOC_C_MODULE = $(if $(DOC_MODULE),C/$(DOC_MODULE).xml)
207
217
 
 
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
 
208
222
## @ _DOC_C_ENTITIES
209
223
## Files included with a SYSTEM entity in the C locale
210
224
_DOC_C_ENTITIES = $(foreach ent,$(DOC_ENTITIES),C/$(ent))
217
231
## All documentation files in the C locale
218
232
_DOC_C_DOCS =                                                           \
219
233
        $(_DOC_C_ENTITIES)      $(_DOC_C_INCLUDES)                      \
220
 
        $(_DOC_C_MODULE)
 
234
        $(_DOC_C_PAGES)         $(_DOC_C_MODULE)
221
235
 
222
236
## @ _DOC_C_DOCS_NOENT
223
237
## All documentation files in the C locale,
224
238
## except files included with a SYSTEM entity
225
239
_DOC_C_DOCS_NOENT =                                                     \
226
 
        $(_DOC_C_MODULE)        $(_DOC_C_INCLUDES)
 
240
        $(_DOC_C_MODULE)        $(_DOC_C_INCLUDES)                      \
 
241
        $(_DOC_C_PAGES)
227
242
 
228
243
## @ _DOC_C_FIGURES
229
244
## All figures and other external data in the C locale
245
260
 
246
261
## @ _DOC_POFILES
247
262
## The .po files used for translating the document
248
 
_DOC_POFILES = $(if $(DOC_MODULE),                                              \
 
263
_DOC_POFILES = $(if $(DOC_MODULE)$(DOC_ID),                                     \
249
264
        $(foreach lc,$(_DOC_REAL_LINGUAS),$(lc)/$(lc).po))
250
265
 
251
266
.PHONY: po
252
267
po: $(_DOC_POFILES)
253
268
 
 
269
## @ _DOC_MOFILES
 
270
## The .mo files used for translating the document
 
271
_DOC_MOFILES = $(patsubst %.po,%.mo,$(_DOC_POFILES))
 
272
 
 
273
.PHONY: mo
 
274
mo: $(_DOC_MOFILES)
 
275
 
254
276
## @ _DOC_LC_MODULES
255
277
## The top-level documentation files in all other locales
256
278
_DOC_LC_MODULES = $(if $(DOC_MODULE),                                           \
257
279
        $(foreach lc,$(_DOC_REAL_LINGUAS),$(lc)/$(DOC_MODULE).xml))
258
280
 
 
281
## @ _DOC_LC_PAGES
 
282
## Page files in a Mallard document in all other locales
 
283
_DOC_LC_PAGES =                                                                 \
 
284
        $(foreach lc,$(_DOC_REAL_LINGUAS),$(foreach page,$(_DOC_C_PAGES),       \
 
285
                $(lc)/$(notdir $(page)) ))
 
286
 
259
287
## @ _DOC_LC_XINCLUDES
260
288
## Files included with XInclude in all other locales
261
289
_DOC_LC_INCLUDES =                                                              \
272
300
## @ _DOC_LC_DOCS
273
301
## All documentation files in all other locales
274
302
_DOC_LC_DOCS =                                                                  \
275
 
        $(_DOC_LC_MODULES)      $(_DOC_LC_INCLUDES)                             \
 
303
        $(_DOC_LC_MODULES)      $(_DOC_LC_INCLUDES)     $(_DOC_LC_PAGES)        \
276
304
        $(if $(filter html HTML,$(_DOC_REAL_FORMATS)),$(_DOC_LC_HTML))
277
305
 
278
306
## @ _DOC_LC_FIGURES
299
327
        done; \
300
328
        if ! test -f $@; then \
301
329
          echo "(cd $(dir $@) && \
302
 
            $(_xml2po) -e $$docs > $(notdir $@).tmp && \
 
330
            $(_xml2po) -m $(_xml2po_mode) -e $$docs > $(notdir $@).tmp && \
303
331
            cp $(notdir $@).tmp $(notdir $@) && rm -f $(notdir $@).tmp)"; \
304
332
          (cd $(dir $@) && \
305
 
            $(_xml2po) -e $$docs > $(notdir $@).tmp && \
 
333
            $(_xml2po) -m $(_xml2po_mode) -e $$docs > $(notdir $@).tmp && \
306
334
            cp $(notdir $@).tmp $(notdir $@) && rm -f $(notdir $@).tmp); \
307
335
        else \
308
336
          echo "(cd $(dir $@) && \
309
 
            $(_xml2po) -e -u $(notdir $@) $$docs)"; \
 
337
            $(_xml2po) -m $(_xml2po_mode) -e -u $(notdir $@) $$docs)"; \
310
338
          (cd $(dir $@) && \
311
 
            $(_xml2po) -e -u $(notdir $@) $$docs); \
312
 
        fi
 
339
            $(_xml2po) -m $(_xml2po_mode) -e -u $(notdir $@) $$docs); \
 
340
        fi
 
341
 
 
342
$(_DOC_MOFILES): %.mo: %.po
 
343
        @if ! test -d $(dir $@); then \
 
344
          echo "mkdir $(dir $@)"; \
 
345
          mkdir "$(dir $@)"; \
 
346
        fi
 
347
        msgfmt -o $@ $<
313
348
 
314
349
# FIXME: fix the dependancy
315
350
# FIXME: hook xml2po up
316
 
$(_DOC_LC_DOCS) : $(_DOC_POFILES)
 
351
$(_DOC_LC_DOCS) : $(_DOC_MOFILES)
317
352
$(_DOC_LC_DOCS) : $(_DOC_C_DOCS)
318
353
        if ! test -d $(dir $@); then mkdir $(dir $@); fi
319
354
        if [ -f "C/$(notdir $@)" ]; then d="../"; else d="$(_DOC_ABS_SRCDIR)/"; fi; \
 
355
        mo="$(dir $@)$(patsubst %/$(notdir $@),%,$@).mo"; \
 
356
        if [ -f "$${mo}" ]; then mo="../$${mo}"; else mo="$(_DOC_ABS_SRCDIR)/$${mo}"; fi; \
320
357
        (cd $(dir $@) && \
321
 
          $(_xml2po) -e -p \
322
 
            "$${d}$(dir $@)$(patsubst %/$(notdir $@),%,$@).po" \
 
358
          $(_xml2po) -m $(_xml2po_mode) -e -t "$${mo}" \
323
359
            "$${d}C/$(notdir $@)" > $(notdir $@).tmp && \
324
360
            cp $(notdir $@).tmp $(notdir $@) && rm -f $(notdir $@).tmp)
325
361
 
329
365
.PHONY: pot
330
366
pot: $(_DOC_POT)
331
367
$(_DOC_POT): $(_DOC_C_DOCS_NOENT)
332
 
        $(_xml2po) -e -o $@ $^
 
368
        $(_xml2po) -m $(_xml2po_mode) -e -o $@ $^
333
369
 
334
370
 
335
371
################################################################################
347
383
 
348
384
 
349
385
################################################################################
 
386
## All
350
387
 
351
388
all:                                                    \
352
389
        $(_DOC_C_DOCS)          $(_DOC_LC_DOCS)         \
354
391
        $(_DOC_HTML_ALL)        $(_DOC_POFILES)
355
392
 
356
393
 
 
394
################################################################################
 
395
## Clean
 
396
 
357
397
.PHONY: clean-doc-omf clean-doc-dsk clean-doc-lc clean-doc-dir
358
398
 
359
399
clean-doc-omf: ; rm -f $(_DOC_OMF_DB) $(_DOC_OMF_HTML)
360
400
clean-doc-dsk: ; rm -f $(_DOC_DSK_DB) $(_DOC_DSK_HTML)
361
401
clean-doc-lc:
362
402
        rm -f $(_DOC_LC_DOCS)
 
403
        rm -f $(_DOC_MOFILES)
363
404
        @list='$(_DOC_POFILES)'; for po in $$list; do \
364
405
          if ! test "$$po" -ef "$(srcdir)/$$po"; then \
365
406
            echo "rm -f $$po"; \
366
407
            rm -f "$$po"; \
367
408
          fi; \
368
409
        done
 
410
#       .xml2.po.mo cleaning is obsolete as of 0.18.1 and could be removed in 0.20.x
369
411
        @for lc in C $(_DOC_REAL_LINGUAS); do \
370
412
          if test -f "$$lc/.xml2po.mo"; then \
371
413
            echo "rm -f $$lc/.xml2po.mo"; \
372
414
            rm -f "$$lc/.xml2po.mo"; \
373
415
          fi; \
374
416
        done
375
 
clean-doc-dir:
 
417
clean-doc-dir: clean-doc-lc
376
418
        @for lc in C $(_DOC_REAL_LINGUAS); do \
377
419
          for dir in `find $$lc -depth -type d`; do \
378
420
            if ! test $$dir -ef $(srcdir)/$$dir; then \
385
427
_clean_omf = $(if $(_DOC_OMF_IN),clean-doc-omf)
386
428
_clean_dsk = $(if $(_DOC_DSK_IN),clean-doc-dsk)
387
429
_clean_lc  = $(if $(_DOC_REAL_LINGUAS),clean-doc-lc)
388
 
_clean_dir = $(if $(DOC_MODULE),clean-doc-dir)
 
430
_clean_dir = $(if $(DOC_MODULE)$(DOC_ID),clean-doc-dir)
389
431
 
390
432
clean-local:                                            \
391
433
        $(_clean_omf)           $(_clean_dsk)           \
401
443
        $(_clean_lc)            $(_clean_dir)
402
444
 
403
445
 
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)   \
 
446
 
 
447
################################################################################
 
448
## Dist
 
449
 
 
450
.PHONY: dist-doc-docs dist-doc-pages dist-doc-figs dist-doc-omf dist-doc-dsk
 
451
doc-dist-hook:                                          \
 
452
        $(if $(DOC_MODULE)$(DOC_ID),dist-doc-docs)      \
 
453
        $(if $(_DOC_C_FIGURES),dist-doc-figs)           \
408
454
        $(if $(_DOC_OMF_IN),dist-doc-omf)
409
455
#       $(if $(_DOC_DSK_IN),dist-doc-dsk)
410
456
 
451
497
        $(INSTALL_DATA) "$$d$(_DOC_DSK_IN)" "$(distdir)/$(notdir $(_DOC_DSK_IN))"
452
498
 
453
499
 
 
500
 
 
501
################################################################################
 
502
## Check
 
503
 
454
504
.PHONY: check-doc-docs check-doc-omf
455
505
check:                                                  \
456
506
        $(if $(DOC_MODULE),check-doc-docs)              \
 
507
        $(if $(DOC_ID),check-doc-pages)                 \
457
508
        $(if $(_DOC_OMF_IN),check-doc-omf)
458
509
 
459
510
check-doc-docs: $(_DOC_C_DOCS) $(_DOC_LC_DOCS)
469
520
          xmllint --noout --noent --path "$$xmlpath" --xinclude --postvalid "$$d$$lc/$(DOC_MODULE).xml"; \
470
521
        done
471
522
 
 
523
check-doc-pages: $(_DOC_C_PAGES) $(_DOC_LC_PAGES)
 
524
        for lc in C $(_DOC_REAL_LINGUAS); do \
 
525
          if test -f "$$lc"; \
 
526
            then d=; \
 
527
            xmlpath="$$lc"; \
 
528
          else \
 
529
            d="$(srcdir)/"; \
 
530
            xmlpath="$$lc:$(srcdir)/$$lc"; \
 
531
          fi; \
 
532
          for page in $(DOC_PAGES); do \
 
533
            echo "xmllint --noout --noent --path $$xmlpath --xinclude --relaxng $(_malrng) $$d$$lc/$$page"; \
 
534
            xmllint --noout --noent --path "$$xmlpath" --xinclude --relaxng "$(_malrng)" "$$d$$lc/$$page"; \
 
535
          done; \
 
536
        done
 
537
 
472
538
check-doc-omf: $(_DOC_OMF_ALL)
473
539
        @list='$(_DOC_OMF_ALL)'; for omf in $$list; do \
474
540
          echo "xmllint --noout --xinclude --dtdvalid 'http://scrollkeeper.sourceforge.net/dtds/scrollkeeper-omf-1.0/scrollkeeper-omf.dtd' $$omf"; \
476
542
        done
477
543
 
478
544
 
 
545
 
 
546
################################################################################
 
547
## Install
 
548
 
479
549
.PHONY: install-doc-docs install-doc-html install-doc-figs install-doc-omf install-doc-dsk
 
550
 
 
551
_doc_install_dir = $(if $(DOC_ID),$(DOC_ID),$(DOC_MODULE))
 
552
 
480
553
install-data-local:                                     \
481
 
        $(if $(DOC_MODULE),install-doc-docs)            \
 
554
        $(if $(DOC_MODULE)$(DOC_ID),install-doc-docs)   \
482
555
        $(if $(_DOC_HTML_ALL),install-doc-html)         \
483
556
        $(if $(_DOC_C_FIGURES),install-doc-figs)        \
484
557
        $(if $(_DOC_OMF_IN),install-doc-omf)
486
559
 
487
560
install-doc-docs:
488
561
        @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; \
 
562
          echo "$(mkinstalldirs) $(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$lc"; \
 
563
          $(mkinstalldirs) $(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$lc; \
491
564
        done
492
565
        @list='$(_DOC_C_DOCS) $(_DOC_LC_DOCS)'; for doc in $$list; do \
493
566
          if test -f "$$doc"; then d=; else d="$(srcdir)/"; fi; \
494
567
          docdir="$$lc/"`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`; \
495
 
          docdir="$(DESTDIR)$(HELP_DIR)/$(DOC_MODULE)/$$docdir"; \
 
568
          docdir="$(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$docdir"; \
496
569
          if ! test -d "$$docdir"; then \
497
570
            echo "$(mkinstalldirs) $$docdir"; \
498
571
            $(mkinstalldirs) "$$docdir"; \
499
572
          fi; \
500
 
          echo "$(INSTALL_DATA) $$d$$doc $(DESTDIR)$(HELP_DIR)/$(DOC_MODULE)/$$doc"; \
501
 
          $(INSTALL_DATA) $$d$$doc $(DESTDIR)$(HELP_DIR)/$(DOC_MODULE)/$$doc; \
 
573
          echo "$(INSTALL_DATA) $$d$$doc $(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$doc"; \
 
574
          $(INSTALL_DATA) $$d$$doc $(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$doc; \
502
575
        done
503
576
 
504
577
install-doc-figs:
505
578
        @list='$(patsubst C/%,%,$(_DOC_C_FIGURES))'; for fig in $$list; do \
506
579
          for lc in C $(_DOC_REAL_LINGUAS); do \
 
580
            figsymlink=false; \
507
581
            if test -f "$$lc/$$fig"; then \
508
582
              figfile="$$lc/$$fig"; \
509
583
            elif test -f "$(srcdir)/$$lc/$$fig"; then \
510
584
              figfile="$(srcdir)/$$lc/$$fig"; \
511
 
            elif test -f "C/$$fig"; then \
512
 
              figfile="C/$$fig"; \
513
585
            else \
514
 
              figfile="$(srcdir)/C/$$fig"; \
 
586
              figsymlink=true; \
515
587
            fi; \
516
588
            figdir="$$lc/"`echo $$fig | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`; \
517
 
            figdir="$(DESTDIR)$(HELP_DIR)/$(DOC_MODULE)/$$figdir"; \
 
589
            figdir="$(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$figdir"; \
518
590
            if ! test -d "$$figdir"; then \
519
591
              echo "$(mkinstalldirs) $$figdir"; \
520
592
              $(mkinstalldirs) "$$figdir"; \
521
593
            fi; \
522
594
            figbase=`echo $$fig | sed -e 's/^.*\///'`; \
523
 
            echo "$(INSTALL_DATA) $$figfile $$figdir$$figbase"; \
524
 
            $(INSTALL_DATA) "$$figfile" "$$figdir$$figbase"; \
 
595
            if $$figsymlink; then \
 
596
              echo "cd $$figdir && $(LN_S) -f ../../C/$$fig $$figbase"; \
 
597
              ( cd "$$figdir" && $(LN_S) -f "../../C/$$fig" "$$figbase" ); \
 
598
            else \
 
599
              echo "$(INSTALL_DATA) $$figfile $$figdir$$figbase"; \
 
600
              $(INSTALL_DATA) "$$figfile" "$$figdir$$figbase"; \
 
601
            fi; \
525
602
          done; \
526
603
        done
527
604
 
529
606
        echo install-html
530
607
 
531
608
install-doc-omf:
532
 
        $(mkinstalldirs) $(DESTDIR)$(OMF_DIR)/$(DOC_MODULE)
 
609
        $(mkinstalldirs) $(DESTDIR)$(OMF_DIR)/$(_doc_install_dir)
533
610
        @list='$(_DOC_OMF_ALL)'; for omf in $$list; do \
534
 
          echo "$(INSTALL_DATA) $$omf $(DESTDIR)$(OMF_DIR)/$(DOC_MODULE)/$$omf"; \
535
 
          $(INSTALL_DATA) $$omf $(DESTDIR)$(OMF_DIR)/$(DOC_MODULE)/$$omf; \
 
611
          echo "$(INSTALL_DATA) $$omf $(DESTDIR)$(OMF_DIR)/$(_doc_install_dir)/$$omf"; \
 
612
          $(INSTALL_DATA) $$omf $(DESTDIR)$(OMF_DIR)/$(_doc_install_dir)/$$omf; \
536
613
        done
537
614
        @if test "x$(_ENABLE_SK)" = "xtrue"; then \
538
 
          echo "scrollkeeper-update -p $(DESTDIR)$(_sklocalstatedir) -o $(DESTDIR)$(OMF_DIR)/$(DOC_MODULE)"; \
539
 
          scrollkeeper-update -p "$(DESTDIR)$(_sklocalstatedir)" -o "$(DESTDIR)$(OMF_DIR)/$(DOC_MODULE)"; \
 
615
          echo "scrollkeeper-update -p $(DESTDIR)$(_sklocalstatedir) -o $(DESTDIR)$(OMF_DIR)/$(_doc_install_dir)"; \
 
616
          scrollkeeper-update -p "$(DESTDIR)$(_sklocalstatedir)" -o "$(DESTDIR)$(OMF_DIR)/$(_doc_install_dir)"; \
540
617
        fi;
541
618
 
542
619
install-doc-dsk:
543
620
        echo install-dsk
544
621
 
545
622
 
 
623
 
 
624
################################################################################
 
625
## Uninstall
 
626
 
546
627
.PHONY: uninstall-doc-docs uninstall-doc-html uninstall-doc-figs uninstall-doc-omf uninstall-doc-dsk
547
628
uninstall-local:                                        \
548
 
        $(if $(DOC_MODULE),uninstall-doc-docs)          \
 
629
        $(if $(DOC_MODULE)$(DOC_ID),uninstall-doc-docs) \
549
630
        $(if $(_DOC_HTML_ALL),uninstall-doc-html)       \
550
631
        $(if $(_DOC_C_FIGURES),uninstall-doc-figs)      \
551
632
        $(if $(_DOC_OMF_IN),uninstall-doc-omf)
553
634
 
554
635
uninstall-doc-docs:
555
636
        @list='$(_DOC_C_DOCS) $(_DOC_LC_DOCS)'; for doc in $$list; do \
556
 
          echo " rm -f $(DESTDIR)$(HELP_DIR)/$(DOC_MODULE)/$$doc"; \
557
 
          rm -f "$(DESTDIR)$(HELP_DIR)/$(DOC_MODULE)/$$doc"; \
 
637
          echo " rm -f $(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$doc"; \
 
638
          rm -f "$(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$doc"; \
558
639
        done
559
640
 
560
641
uninstall-doc-figs:
561
642
        @list='$(_DOC_C_FIGURES) $(_DOC_LC_FIGURES)'; for fig in $$list; do \
562
 
          echo "rm -f $(DESTDIR)$(HELP_DIR)/$(DOC_MODULE)/$$fig"; \
563
 
          rm -f "$(DESTDIR)$(HELP_DIR)/$(DOC_MODULE)/$$fig"; \
 
643
          echo "rm -f $(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$fig"; \
 
644
          rm -f "$(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$fig"; \
564
645
        done;
565
646
 
566
647
uninstall-doc-omf:
567
648
        @list='$(_DOC_OMF_ALL)'; for omf in $$list; do \
568
649
          if test "x$(_ENABLE_SK)" = "xtrue"; then \
569
 
            echo "scrollkeeper-uninstall -p $(_sklocalstatedir) $(DESTDIR)$(OMF_DIR)/$(DOC_MODULE)/$$omf"; \
570
 
            scrollkeeper-uninstall -p "$(_sklocalstatedir)" "$(DESTDIR)$(OMF_DIR)/$(DOC_MODULE)/$$omf"; \
 
650
            echo "scrollkeeper-uninstall -p $(_sklocalstatedir) $(DESTDIR)$(OMF_DIR)/$(_doc_install_dir)/$$omf"; \
 
651
            scrollkeeper-uninstall -p "$(_sklocalstatedir)" "$(DESTDIR)$(OMF_DIR)/$(_doc_install_dir)/$$omf"; \
571
652
          fi; \
572
 
          echo "rm -f $(DESTDIR)$(OMF_DIR)/$(DOC_MODULE)/$$omf"; \
573
 
          rm -f "$(DESTDIR)$(OMF_DIR)/$(DOC_MODULE)/$$omf"; \
 
653
          echo "rm -f $(DESTDIR)$(OMF_DIR)/$(_doc_install_dir)/$$omf"; \
 
654
          rm -f "$(DESTDIR)$(OMF_DIR)/$(_doc_install_dir)/$$omf"; \
574
655
        done