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)), \
278
_DOC_ABS_SRCDIR = @abs_srcdir@
279
_xml2po_mode = $(if $(DOC_ID),mallard,docbook)
280
@ENABLE_SK_TRUE@_ENABLE_SK = true
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" $@;
296
################################################################################
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)") \
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))
315
_DOC_OMF_HTML = $(if $(_DOC_OMF_IN), \
316
$(foreach lc,C $(_DOC_REAL_LINGUAS),$(DOC_MODULE)-html-$(lc).omf))
321
$(if $(filter docbook,$(_DOC_REAL_FORMATS)),$(_DOC_OMF_DB)) \
322
$(if $(filter html HTML,$(_DOC_REAL_FORMATS)),$(_DOC_OMF_HTML))
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))
331
$(_DOC_C_ENTITIES) $(_DOC_C_INCLUDES) \
332
$(_DOC_C_PAGES) $(_DOC_C_MODULE)
334
_DOC_C_DOCS_NOENT = \
335
$(_DOC_C_MODULE) $(_DOC_C_INCLUDES) \
338
_DOC_C_FIGURES = $(if $(DOC_FIGURES), \
339
$(foreach fig,$(DOC_FIGURES),C/$(fig)), \
340
$(patsubst $(srcdir)/%,%,$(wildcard $(srcdir)/C/figures/*.png)))
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"), \
351
###############################################################################
352
_DOC_POFILES = $(if $(DOC_MODULE)$(DOC_ID), \
353
$(foreach lc,$(_DOC_REAL_LINGUAS),$(lc)/$(lc).po))
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))
360
$(foreach lc,$(_DOC_REAL_LINGUAS),$(foreach page,$(_DOC_C_PAGES), \
361
$(lc)/$(notdir $(page)) ))
364
$(foreach lc,$(_DOC_REAL_LINGUAS),$(foreach inc,$(_DOC_C_INCLUDES), \
365
$(lc)/$(notdir $(inc)) ))
368
# FIXME: probably have to shell escape to determine the file names
370
$(foreach lc,$(_DOC_REAL_LINGUAS),$(foreach doc,$(_DOC_C_HTML), \
371
$(lc)/$(notdir $(doc)) ))
374
$(_DOC_LC_MODULES) $(_DOC_LC_INCLUDES) $(_DOC_LC_PAGES) \
375
$(if $(filter html HTML,$(_DOC_REAL_FORMATS)),$(_DOC_LC_HTML))
377
_DOC_LC_FIGURES = $(foreach lc,$(_DOC_REAL_LINGUAS), \
378
$(patsubst C/%,$(lc)/%,$(_DOC_C_FIGURES)) )
381
$(foreach fig,$(_DOC_C_FIGURES), $(foreach lc,C $(_DOC_REAL_LINGUAS), \
382
$(wildcard $(srcdir)/$(lc)/$(patsubst C/%,%,$(fig))) ))
384
_DOC_POT = $(if $(DOC_MODULE),$(DOC_MODULE).pot,$(if $(DOC_ID),$(DOC_ID).pot))
386
################################################################################
387
_DOC_HTML_ALL = $(if $(filter html HTML,$(_DOC_REAL_FORMATS)), \
388
$(_DOC_C_HTML) $(_DOC_LC_HTML))
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
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 \
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
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 \
274
HELP_LINGUAS = ar bg ca cs da de el es eu fr gl ja oc pa pt_BR ru sl sv zh_CN
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 \
594
uninstall-am: uninstall-local
596
451
.MAKE: install-am install-strip
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
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; \
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
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'`; \
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; \
642
cp $@.tmp $@ && rm -f $@.tmp
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
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)";
654
doc-dist-hook: dist-check-gdu $(if $(DOC_H_FILE),dist-doc-header)
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)
666
################################################################################
680
DOC_FORMATS ?= docbook
684
################################################################################
686
_xml2po ?= `which xml2po`
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
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; \
703
$(GDU_V_DB2OMF)xsltproc -o $@ $(call db2omf_args,$@,$<,'docbook') || { rm -f "$@"; exit 1; }
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; }
723
@if ! test -d $(dir $@); then \
724
echo "mkdir $(dir $@)"; \
727
@if test ! -f $@ -a -f $(srcdir)/$@; then \
728
echo "cp $(srcdir)/$@ $@"; \
729
cp "$(srcdir)/$@" "$@"; \
732
list='$(_DOC_C_DOCS_NOENT)'; for doc in $$list; do \
733
docs="$$docs $(_DOC_ABS_SRCDIR)/$$doc"; \
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)"; \
740
$(_xml2po) -m $(_xml2po_mode) -e $$docs > $(notdir $@).tmp && \
741
cp $(notdir $@).tmp $(notdir $@) && rm -f $(notdir $@).tmp); \
743
echo "(cd $(dir $@) && \
744
$(_xml2po) -m $(_xml2po_mode) -e -u $(notdir $@) $$docs)"; \
746
$(_xml2po) -m $(_xml2po_mode) -e -u $(notdir $@) $$docs); \
749
$(_DOC_MOFILES): %.mo: %.po
750
$(AM_V_at)if ! test -d $(dir $@); then mkdir "$(dir $@)"; fi
751
$(GDU_V_MSGFMT)msgfmt -o $@ $<
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; \
762
$(_xml2po) -m $(_xml2po_mode) -e -t "$${mo}" \
763
"$${d}C/$(notdir $@)" > $(notdir $@).tmp && \
764
cp $(notdir $@).tmp $(notdir $@) && rm -f $(notdir $@).tmp)
767
$(_DOC_POT): $(_DOC_C_DOCS_NOENT)
768
$(GDU_V_XML2PO)$(_xml2po) -m $(_xml2po_mode) -e -o $@ $^
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,$@)
773
################################################################################
776
$(_DOC_C_DOCS) $(_DOC_LC_DOCS) \
777
$(_DOC_OMF_ALL) $(_DOC_DSK_ALL) \
778
$(_DOC_HTML_ALL) $(_DOC_POFILES)
780
################################################################################
782
.PHONY: clean-doc-omf clean-doc-dsk clean-doc-lc clean-doc-dir
784
clean-doc-omf: ; rm -f $(_DOC_OMF_DB) $(_DOC_OMF_HTML)
785
clean-doc-dsk: ; rm -f $(_DOC_DSK_DB) $(_DOC_DSK_HTML)
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 \
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"; \
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"; \
813
$(_clean_omf) $(_clean_dsk) \
814
$(_clean_lc) $(_clean_dir)
816
$(_clean_omf) $(_clean_dsk) \
817
$(_clean_lc) $(_clean_dir)
819
$(_clean_omf) $(_clean_dsk) \
820
$(_clean_lc) $(_clean_dir)
821
maintainer-clean-local: \
822
$(_clean_omf) $(_clean_dsk) \
823
$(_clean_lc) $(_clean_dir)
825
################################################################################
827
.PHONY: dist-doc-docs dist-doc-pages dist-doc-figs dist-doc-omf dist-doc-dsk
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)
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"; \
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"; \
847
echo "$(INSTALL_DATA) $$d$$doc $(distdir)/$$doc"; \
848
$(INSTALL_DATA) "$$d$$doc" "$(distdir)/$$doc"; \
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"; \
858
echo "$(INSTALL_DATA) $$d$$doc $(distdir)/$$doc"; \
859
$(INSTALL_DATA) "$$d$$doc" "$(distdir)/$$doc"; \
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"; \
869
echo "$(INSTALL_DATA) $$d$$doc $(distdir)/$$doc"; \
870
$(INSTALL_DATA) "$$d$$doc" "$(distdir)/$$doc"; \
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"; \
883
echo "$(INSTALL_DATA) $$d$$fig $(distdir)/$$fig"; \
884
$(INSTALL_DATA) "$$d$$fig" "$(distdir)/$$fig"; \
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))"
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))"
898
################################################################################
900
.PHONY: check-doc-docs check-doc-omf
902
$(if $(DOC_MODULE),check-doc-docs) \
903
$(if $(DOC_ID),check-doc-pages) \
904
$(if $(_DOC_OMF_IN),check-doc-omf)
906
check-doc-docs: $(_DOC_C_DOCS) $(_DOC_LC_DOCS)
907
@for lc in C $(_DOC_REAL_LINGUAS); do \
913
xmlpath="$$lc:$(srcdir)/$$lc"; \
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"; \
919
check-doc-pages: $(_DOC_C_PAGES) $(_DOC_LC_PAGES)
920
for lc in C $(_DOC_REAL_LINGUAS); do \
926
xmlpath="$$lc:$(srcdir)/$$lc"; \
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"; \
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; \
940
################################################################################
942
.PHONY: install-doc-docs install-doc-html install-doc-figs install-doc-omf install-doc-dsk
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)
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; \
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"; \
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; \
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"; \
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; \
980
@list='$(patsubst C/%,%,$(_DOC_C_FIGURES))'; for fig in $$list; do \
981
for lc in C $(_DOC_REAL_LINGUAS); do \
983
if test -f "$$lc/$$fig"; then \
984
figfile="$$lc/$$fig"; \
985
elif test -f "$(srcdir)/$$lc/$$fig"; then \
986
figfile="$(srcdir)/$$lc/$$fig"; \
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"; \
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" ); \
1001
echo "$(INSTALL_DATA) $$figfile $$figdir$$figbase"; \
1002
$(INSTALL_DATA) "$$figfile" "$$figdir$$figbase"; \
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; \
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)"; \
1024
################################################################################
1026
.PHONY: uninstall-doc-docs uninstall-doc-html uninstall-doc-figs uninstall-doc-omf uninstall-doc-dsk
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)
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"; \
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"; \
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"; \
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"; \
1056
echo "rm -f $(DESTDIR)$(OMF_DIR)/$(_doc_install_dir)/$$omf"; \
1057
rm -f "$(DESTDIR)$(OMF_DIR)/$(_doc_install_dir)/$$omf"; \
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
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.