291
263
top_build_prefix = @top_build_prefix@
292
264
top_builddir = @top_builddir@
293
265
top_srcdir = @top_srcdir@
294
_clean_doc_header = $(if $(DOC_H_FILE),clean-doc-header)
295
_DOC_REAL_FORMATS = $(if $(DOC_USER_FORMATS),$(DOC_USER_FORMATS),$(DOC_FORMATS))
296
_DOC_REAL_LINGUAS = $(if $(filter environment,$(origin LINGUAS)), \
297
$(filter $(LINGUAS),$(DOC_LINGUAS)), \
300
_DOC_ABS_SRCDIR = @abs_srcdir@
301
_xml2po_mode = $(if $(DOC_ID),mallard,docbook)
302
@ENABLE_SK_TRUE@_ENABLE_SK = true
304
################################################################################
306
--stringparam db2omf.basename $(DOC_MODULE) \
307
--stringparam db2omf.format $(3) \
308
--stringparam db2omf.dtd \
309
$(shell xmllint --format $(2) | grep -h PUBLIC | head -n 1 \
310
| sed -e 's/.*PUBLIC \(\"[^\"]*\"\).*/\1/') \
311
--stringparam db2omf.lang $(notdir $(patsubst %/$(notdir $(2)),%,$(2))) \
312
--stringparam db2omf.omf_dir "$(OMF_DIR)" \
313
--stringparam db2omf.help_dir "$(HELP_DIR)" \
314
--stringparam db2omf.omf_in "$(_DOC_OMF_IN)" \
315
$(if $(_ENABLE_SK), \
316
--stringparam db2omf.scrollkeeper_cl "$(_skcontentslist)") \
319
_DOC_OMF_IN = $(if $(DOC_MODULE),$(wildcard $(_DOC_ABS_SRCDIR)/$(DOC_MODULE).omf.in))
320
_DOC_OMF_DB = $(if $(_DOC_OMF_IN), \
321
$(foreach lc,C $(_DOC_REAL_LINGUAS),$(DOC_MODULE)-$(lc).omf))
323
_DOC_OMF_HTML = $(if $(_DOC_OMF_IN), \
324
$(foreach lc,C $(_DOC_REAL_LINGUAS),$(DOC_MODULE)-html-$(lc).omf))
329
$(if $(filter docbook,$(_DOC_REAL_FORMATS)),$(_DOC_OMF_DB)) \
330
$(if $(filter html HTML,$(_DOC_REAL_FORMATS)),$(_DOC_OMF_HTML))
333
################################################################################
334
_DOC_C_MODULE = $(if $(DOC_MODULE),C/$(DOC_MODULE).xml)
335
_DOC_C_PAGES = $(foreach page,$(DOC_PAGES),C/$(page))
336
_DOC_C_ENTITIES = $(foreach ent,$(DOC_ENTITIES),C/$(ent))
337
_DOC_C_INCLUDES = $(foreach inc,$(DOC_INCLUDES),C/$(inc))
339
$(_DOC_C_ENTITIES) $(_DOC_C_INCLUDES) \
340
$(_DOC_C_PAGES) $(_DOC_C_MODULE)
342
_DOC_C_DOCS_NOENT = \
343
$(_DOC_C_MODULE) $(_DOC_C_INCLUDES) \
346
_DOC_C_FIGURES = $(if $(DOC_FIGURES), \
347
$(foreach fig,$(DOC_FIGURES),C/$(fig)), \
348
$(patsubst $(srcdir)/%,%,$(wildcard $(srcdir)/C/figures/*.png)))
351
# FIXME: probably have to shell escape to determine the file names
352
_DOC_C_HTML = $(foreach f, \
353
$(shell xsltproc --xinclude \
354
--stringparam db.chunk.basename "$(DOC_MODULE)" \
355
$(_chunks) "C/$(DOC_MODULE).xml"), \
359
###############################################################################
360
_DOC_POFILES = $(if $(DOC_MODULE)$(DOC_ID), \
361
$(foreach lc,$(_DOC_REAL_LINGUAS),$(lc)/$(lc).po))
363
_DOC_MOFILES = $(patsubst %.po,%.mo,$(_DOC_POFILES))
364
_DOC_LC_MODULES = $(if $(DOC_MODULE), \
365
$(foreach lc,$(_DOC_REAL_LINGUAS),$(lc)/$(DOC_MODULE).xml))
368
$(foreach lc,$(_DOC_REAL_LINGUAS),$(foreach page,$(_DOC_C_PAGES), \
369
$(lc)/$(notdir $(page)) ))
372
$(foreach lc,$(_DOC_REAL_LINGUAS),$(foreach inc,$(_DOC_C_INCLUDES), \
373
$(lc)/$(notdir $(inc)) ))
376
# FIXME: probably have to shell escape to determine the file names
378
$(foreach lc,$(_DOC_REAL_LINGUAS),$(foreach doc,$(_DOC_C_HTML), \
379
$(lc)/$(notdir $(doc)) ))
382
$(_DOC_LC_MODULES) $(_DOC_LC_INCLUDES) $(_DOC_LC_PAGES) \
383
$(if $(filter html HTML,$(_DOC_REAL_FORMATS)),$(_DOC_LC_HTML))
385
_DOC_LC_FIGURES = $(foreach lc,$(_DOC_REAL_LINGUAS), \
386
$(patsubst C/%,$(lc)/%,$(_DOC_C_FIGURES)) )
389
$(foreach fig,$(_DOC_C_FIGURES), $(foreach lc,C $(_DOC_REAL_LINGUAS), \
390
$(wildcard $(srcdir)/$(lc)/$(patsubst C/%,%,$(fig))) ))
392
_DOC_POT = $(if $(DOC_MODULE),$(DOC_MODULE).pot,$(if $(DOC_ID),$(DOC_ID).pot))
394
################################################################################
395
_DOC_HTML_ALL = $(if $(filter html HTML,$(_DOC_REAL_FORMATS)), \
396
$(_DOC_C_HTML) $(_DOC_LC_HTML))
398
_DOC_HTML_TOPS = $(foreach lc,C $(_DOC_REAL_LINGUAS),$(lc)/$(DOC_MODULE).xhtml)
399
_clean_omf = $(if $(_DOC_OMF_IN),clean-doc-omf)
400
_clean_dsk = $(if $(_DOC_DSK_IN),clean-doc-dsk)
401
_clean_lc = $(if $(_DOC_REAL_LINGUAS),clean-doc-lc)
402
_clean_dir = $(if $(DOC_MODULE)$(DOC_ID),clean-doc-dir)
403
_doc_install_dir = $(if $(DOC_ID),$(DOC_ID),$(DOC_MODULE))
404
DOC_ID = gnome-sudoku
405
DOC_INCLUDES = legal.xml
266
HELP_ID = gnome-sudoku
407
268
figures/logo32.png \
408
269
figures/logo.png \
409
270
figures/possible-numbers.png \
614
uninstall-am: uninstall-local
616
473
.MAKE: install-am install-strip
618
475
.PHONY: all all-am check check-am clean clean-generic clean-libtool \
619
clean-local dist-hook distclean distclean-generic \
620
distclean-libtool distclean-local distdir dvi dvi-am html \
621
html-am info info-am install install-am install-data \
622
install-data-am install-data-local install-dvi install-dvi-am \
476
distclean distclean-generic distclean-libtool distdir dvi \
477
dvi-am html html-am info info-am install install-am \
478
install-data install-data-am install-dvi install-dvi-am \
623
479
install-exec install-exec-am install-html install-html-am \
624
480
install-info install-info-am install-man install-pdf \
625
481
install-pdf-am install-ps install-ps-am install-strip \
626
482
installcheck installcheck-am installdirs maintainer-clean \
627
maintainer-clean-generic maintainer-clean-local mostlyclean \
628
mostlyclean-generic mostlyclean-libtool mostlyclean-local pdf \
629
pdf-am ps ps-am uninstall uninstall-am uninstall-local
636
$(DOC_H_FILE): $(DOC_H_DOCS);
637
@rm -f $@.tmp; touch $@.tmp;
638
echo 'const gchar* documentation_credits[] = {' >> $@.tmp
639
list='$(DOC_H_DOCS)'; for doc in $$list; do \
640
xmlpath="`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`:$(srcdir)/`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`"; \
641
if ! test -f "$$doc"; then doc="$(srcdir)/$$doc"; fi; \
642
xsltproc --path "$$xmlpath" $(_credits) $$doc; \
644
| 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}}' \
645
| sed -e 's/\\/\\\\/' -e 's/"/\\"/' -e 's/\(.*\)/\t"\1",/' >> $@.tmp
646
echo ' NULL' >> $@.tmp
649
list='$(DOC_H_DOCS)'; for doc in $$list; do \
650
xmlpath="`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`:$(srcdir)/`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`"; \
651
if ! test -f "$$doc"; then doc="$(srcdir)/$$doc"; fi; \
652
docid=`echo "$$doc" | sed -e 's/.*\/\([^/]*\)\.xml/\1/' \
653
| sed -e 's/[^a-zA-Z_]/_/g' | tr 'a-z' 'A-Z'`; \
655
ids=`xsltproc --xinclude --path "$$xmlpath" $(_ids) $$doc`; \
656
for id in $$ids; do \
657
echo '#define HELP_'`echo $$docid`'_'`echo $$id \
658
| sed -e 's/[^a-zA-Z_]/_/g' | tr 'a-z' 'A-Z'`' "'$$id'"' >> $@.tmp; \
662
cp $@.tmp $@ && rm -f $@.tmp
665
@HAVE_GNOME_DOC_UTILS_FALSE@ @echo "*** GNOME Doc Utils must be installed in order to make dist"
666
@HAVE_GNOME_DOC_UTILS_FALSE@ @false
668
.PHONY: dist-doc-header
669
dist-doc-header: $(DOC_H_FILE)
670
@if test -f "$(DOC_H_FILE)"; then d=; else d="$(srcdir)/"; fi; \
671
echo "$(INSTALL_DATA) $${d}$(DOC_H_FILE) $(distdir)/$(DOC_H_FILE)"; \
672
$(INSTALL_DATA) "$${d}$(DOC_H_FILE)" "$(distdir)/$(DOC_H_FILE)";
674
doc-dist-hook: dist-check-gdu $(if $(DOC_H_FILE),dist-doc-header)
676
.PHONY: clean-doc-header
677
clean-local: $(_clean_doc_header)
678
distclean-local: $(_clean_doc_header)
679
mostlyclean-local: $(_clean_doc_header)
680
maintainer-clean-local: $(_clean_doc_header)
686
################################################################################
700
DOC_FORMATS ?= docbook
704
################################################################################
706
_xml2po ?= `which xml2po`
708
_db2html ?= `$(PKG_CONFIG) --variable db2html gnome-doc-utils`
709
_db2omf ?= `$(PKG_CONFIG) --variable db2omf gnome-doc-utils`
710
_malrng ?= `$(PKG_CONFIG) --variable malrng gnome-doc-utils`
711
_chunks ?= `$(PKG_CONFIG) --variable xmldir gnome-doc-utils`/gnome/xslt/docbook/utils/chunks.xsl
712
_credits ?= `$(PKG_CONFIG) --variable xmldir gnome-doc-utils`/gnome/xslt/docbook/utils/credits.xsl
713
_ids ?= $(shell $(PKG_CONFIG) --variable xmldir gnome-doc-utils)/gnome/xslt/docbook/utils/ids.xsl
714
@ENABLE_SK_TRUE@_skpkgdatadir ?= `scrollkeeper-config --pkgdatadir`
715
@ENABLE_SK_TRUE@_sklocalstatedir ?= `scrollkeeper-config --pkglocalstatedir`
716
@ENABLE_SK_TRUE@_skcontentslist ?= $(_skpkgdatadir)/Templates/C/scrollkeeper_cl.xml
718
$(_DOC_OMF_DB) : $(_DOC_OMF_IN)
719
$(_DOC_OMF_DB) : $(DOC_MODULE)-%.omf : %/$(DOC_MODULE).xml
720
@test "x$(_ENABLE_SK)" != "xtrue" -o -f "$(_skcontentslist)" || { \
721
echo "The file '$(_skcontentslist)' does not exist." >&2; \
722
echo "Please check your ScrollKeeper installation." >&2; \
724
xsltproc -o $@ $(call db2omf_args,$@,$<,'docbook') || { rm -f "$@"; exit 1; }
726
$(_DOC_OMF_HTML) : $(_DOC_OMF_IN)
727
$(_DOC_OMF_HTML) : $(DOC_MODULE)-html-%.omf : %/$(DOC_MODULE).xml
728
@ENABLE_SK_TRUE@ @test "x$(_ENABLE_SK)" != "xtrue" -o -f "$(_skcontentslist)" || { \
729
@ENABLE_SK_TRUE@ echo "The file '$(_skcontentslist)' does not exist" >&2; \
730
@ENABLE_SK_TRUE@ echo "Please check your ScrollKeeper installation." >&2; \
731
@ENABLE_SK_TRUE@ exit 1; }
732
xsltproc -o $@ $(call db2omf_args,$@,$<,'xhtml') || { rm -f "$@"; exit 1; }
744
@if ! test -d $(dir $@); then \
745
echo "mkdir $(dir $@)"; \
748
@if test ! -f $@ -a -f $(srcdir)/$@; then \
749
echo "cp $(srcdir)/$@ $@"; \
750
cp "$(srcdir)/$@" "$@"; \
753
list='$(_DOC_C_DOCS_NOENT)'; for doc in $$list; do \
754
docs="$$docs $(_DOC_ABS_SRCDIR)/$$doc"; \
756
if ! test -f $@; then \
757
echo "(cd $(dir $@) && \
758
$(_xml2po) -m $(_xml2po_mode) -e $$docs > $(notdir $@).tmp && \
759
cp $(notdir $@).tmp $(notdir $@) && rm -f $(notdir $@).tmp)"; \
761
$(_xml2po) -m $(_xml2po_mode) -e $$docs > $(notdir $@).tmp && \
762
cp $(notdir $@).tmp $(notdir $@) && rm -f $(notdir $@).tmp); \
764
echo "(cd $(dir $@) && \
765
$(_xml2po) -m $(_xml2po_mode) -e -u $(notdir $@) $$docs)"; \
767
$(_xml2po) -m $(_xml2po_mode) -e -u $(notdir $@) $$docs); \
770
$(_DOC_MOFILES): %.mo: %.po
771
@if ! test -d $(dir $@); then \
772
echo "mkdir $(dir $@)"; \
777
# FIXME: fix the dependancy
778
# FIXME: hook xml2po up
779
$(_DOC_LC_DOCS) : $(_DOC_MOFILES)
780
$(_DOC_LC_DOCS) : $(_DOC_C_DOCS)
781
if ! test -d $(dir $@); then mkdir $(dir $@); fi
782
if [ -f "C/$(notdir $@)" ]; then d="../"; else d="$(_DOC_ABS_SRCDIR)/"; fi; \
783
mo="$(dir $@)$(patsubst %/$(notdir $@),%,$@).mo"; \
784
if [ -f "$${mo}" ]; then mo="../$${mo}"; else mo="$(_DOC_ABS_SRCDIR)/$${mo}"; fi; \
786
$(_xml2po) -m $(_xml2po_mode) -e -t "$${mo}" \
787
"$${d}C/$(notdir $@)" > $(notdir $@).tmp && \
788
cp $(notdir $@).tmp $(notdir $@) && rm -f $(notdir $@).tmp)
791
$(_DOC_POT): $(_DOC_C_DOCS_NOENT)
792
$(_xml2po) -m $(_xml2po_mode) -e -o $@ $^
794
$(_DOC_HTML_TOPS): $(_DOC_C_DOCS) $(_DOC_LC_DOCS)
795
xsltproc -o $@ --xinclude --param db.chunk.chunk_top "false()" --stringparam db.chunk.basename "$(DOC_MODULE)" --stringparam db.chunk.extension ".xhtml" $(_db2html) $(patsubst %.xhtml,%.xml,$@)
797
################################################################################
800
$(_DOC_C_DOCS) $(_DOC_LC_DOCS) \
801
$(_DOC_OMF_ALL) $(_DOC_DSK_ALL) \
802
$(_DOC_HTML_ALL) $(_DOC_POFILES)
804
################################################################################
806
.PHONY: clean-doc-omf clean-doc-dsk clean-doc-lc clean-doc-dir
808
clean-doc-omf: ; rm -f $(_DOC_OMF_DB) $(_DOC_OMF_HTML)
809
clean-doc-dsk: ; rm -f $(_DOC_DSK_DB) $(_DOC_DSK_HTML)
811
rm -f $(_DOC_LC_DOCS)
812
rm -f $(_DOC_MOFILES)
813
@list='$(_DOC_POFILES)'; for po in $$list; do \
814
if ! test "$$po" -ef "$(srcdir)/$$po"; then \
819
# .xml2.po.mo cleaning is obsolete as of 0.18.1 and could be removed in 0.20.x
820
@for lc in C $(_DOC_REAL_LINGUAS); do \
821
if test -f "$$lc/.xml2po.mo"; then \
822
echo "rm -f $$lc/.xml2po.mo"; \
823
rm -f "$$lc/.xml2po.mo"; \
826
clean-doc-dir: clean-doc-lc
827
@for lc in C $(_DOC_REAL_LINGUAS); do \
828
for dir in `find $$lc -depth -type d`; do \
829
if ! test $$dir -ef $(srcdir)/$$dir; then \
830
echo "rmdir $$dir"; \
837
$(_clean_omf) $(_clean_dsk) \
838
$(_clean_lc) $(_clean_dir)
840
$(_clean_omf) $(_clean_dsk) \
841
$(_clean_lc) $(_clean_dir)
843
$(_clean_omf) $(_clean_dsk) \
844
$(_clean_lc) $(_clean_dir)
845
maintainer-clean-local: \
846
$(_clean_omf) $(_clean_dsk) \
847
$(_clean_lc) $(_clean_dir)
849
################################################################################
851
.PHONY: dist-doc-docs dist-doc-pages dist-doc-figs dist-doc-omf dist-doc-dsk
853
$(if $(DOC_MODULE)$(DOC_ID),dist-doc-docs) \
854
$(if $(_DOC_C_FIGURES),dist-doc-figs) \
855
$(if $(_DOC_OMF_IN),dist-doc-omf)
856
# $(if $(_DOC_DSK_IN),dist-doc-dsk)
858
dist-doc-docs: $(_DOC_C_DOCS) $(_DOC_LC_DOCS) $(_DOC_POFILES)
859
@for lc in C $(_DOC_REAL_LINGUAS); do \
860
echo " $(mkinstalldirs) $(distdir)/$$lc"; \
861
$(mkinstalldirs) "$(distdir)/$$lc"; \
863
@list='$(_DOC_C_DOCS) $(_DOC_LC_DOCS) $(_DOC_POFILES)'; \
864
for doc in $$list; do \
865
if test -f "$$doc"; then d=; else d="$(srcdir)/"; fi; \
866
docdir=`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`; \
867
if ! test -d "$(distdir)/$$docdir"; then \
868
echo "$(mkinstalldirs) $(distdir)/$$docdir"; \
869
$(mkinstalldirs) "$(distdir)/$$docdir"; \
871
echo "$(INSTALL_DATA) $$d$$doc $(distdir)/$$doc"; \
872
$(INSTALL_DATA) "$$d$$doc" "$(distdir)/$$doc"; \
875
dist-doc-figs: $(_DOC_SRC_FIGURES)
876
@list='$(_DOC_C_FIGURES) $(_DOC_LC_FIGURES)'; \
877
for fig in $$list; do \
878
if test -f "$$fig"; then d=; else d="$(srcdir)/"; fi; \
879
if test -f "$$d$$fig"; then \
880
figdir=`echo $$fig | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`; \
881
if ! test -d "$(distdir)/$$figdir"; then \
882
echo "$(mkinstalldirs) $(distdir)/$$figdir"; \
883
$(mkinstalldirs) "$(distdir)/$$figdir"; \
885
echo "$(INSTALL_DATA) $$d$$fig $(distdir)/$$fig"; \
886
$(INSTALL_DATA) "$$d$$fig" "$(distdir)/$$fig"; \
891
@if test -f "$(_DOC_OMF_IN)"; then d=; else d="$(srcdir)/"; fi; \
892
echo "$(INSTALL_DATA) $$d$(_DOC_OMF_IN) $(distdir)/$(notdir $(_DOC_OMF_IN))"; \
893
$(INSTALL_DATA) "$$d$(_DOC_OMF_IN)" "$(distdir)/$(notdir $(_DOC_OMF_IN))"
896
@if test -f "$(_DOC_DSK_IN)"; then d=; else d="$(srcdir)/"; fi; \
897
echo "$(INSTALL_DATA) $$d$(_DOC_DSK_IN) $(distdir)/$(notdir $(_DOC_DSK_IN))"; \
898
$(INSTALL_DATA) "$$d$(_DOC_DSK_IN)" "$(distdir)/$(notdir $(_DOC_DSK_IN))"
900
################################################################################
902
.PHONY: check-doc-docs check-doc-omf
904
$(if $(DOC_MODULE),check-doc-docs) \
905
$(if $(DOC_ID),check-doc-pages) \
906
$(if $(_DOC_OMF_IN),check-doc-omf)
908
check-doc-docs: $(_DOC_C_DOCS) $(_DOC_LC_DOCS)
909
@for lc in C $(_DOC_REAL_LINGUAS); do \
915
xmlpath="$$lc:$(srcdir)/$$lc"; \
917
echo "xmllint --noout --noent --path $$xmlpath --xinclude --postvalid $$d$$lc/$(DOC_MODULE).xml"; \
918
xmllint --noout --noent --path "$$xmlpath" --xinclude --postvalid "$$d$$lc/$(DOC_MODULE).xml"; \
921
check-doc-pages: $(_DOC_C_PAGES) $(_DOC_LC_PAGES)
922
for lc in C $(_DOC_REAL_LINGUAS); do \
928
xmlpath="$$lc:$(srcdir)/$$lc"; \
930
for page in $(DOC_PAGES); do \
931
echo "xmllint --noout --noent --path $$xmlpath --xinclude --relaxng $(_malrng) $$d$$lc/$$page"; \
932
xmllint --noout --noent --path "$$xmlpath" --xinclude --relaxng "$(_malrng)" "$$d$$lc/$$page"; \
936
check-doc-omf: $(_DOC_OMF_ALL)
937
@list='$(_DOC_OMF_ALL)'; for omf in $$list; do \
938
echo "xmllint --noout --xinclude --dtdvalid 'http://scrollkeeper.sourceforge.net/dtds/scrollkeeper-omf-1.0/scrollkeeper-omf.dtd' $$omf"; \
939
xmllint --noout --xinclude --dtdvalid 'http://scrollkeeper.sourceforge.net/dtds/scrollkeeper-omf-1.0/scrollkeeper-omf.dtd' $$omf; \
942
################################################################################
944
.PHONY: install-doc-docs install-doc-html install-doc-figs install-doc-omf install-doc-dsk
946
install-data-local: \
947
$(if $(DOC_MODULE)$(DOC_ID),install-doc-docs) \
948
$(if $(_DOC_HTML_ALL),install-doc-html) \
949
$(if $(_DOC_C_FIGURES),install-doc-figs) \
950
$(if $(_DOC_OMF_IN),install-doc-omf)
951
# $(if $(_DOC_DSK_IN),install-doc-dsk)
954
@for lc in C $(_DOC_REAL_LINGUAS); do \
955
echo "$(mkinstalldirs) $(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$lc"; \
956
$(mkinstalldirs) $(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$lc; \
958
@list='$(_DOC_C_DOCS) $(_DOC_LC_DOCS)'; for doc in $$list; do \
959
if test -f "$$doc"; then d=; else d="$(srcdir)/"; fi; \
960
docdir="$$lc/"`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`; \
961
docdir="$(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$docdir"; \
962
if ! test -d "$$docdir"; then \
963
echo "$(mkinstalldirs) $$docdir"; \
964
$(mkinstalldirs) "$$docdir"; \
966
echo "$(INSTALL_DATA) $$d$$doc $(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$doc"; \
967
$(INSTALL_DATA) $$d$$doc $(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$doc; \
971
@list='$(patsubst C/%,%,$(_DOC_C_FIGURES))'; for fig in $$list; do \
972
for lc in C $(_DOC_REAL_LINGUAS); do \
974
if test -f "$$lc/$$fig"; then \
975
figfile="$$lc/$$fig"; \
976
elif test -f "$(srcdir)/$$lc/$$fig"; then \
977
figfile="$(srcdir)/$$lc/$$fig"; \
981
figdir="$$lc/"`echo $$fig | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`; \
982
figdir="$(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$figdir"; \
983
if ! test -d "$$figdir"; then \
984
echo "$(mkinstalldirs) $$figdir"; \
985
$(mkinstalldirs) "$$figdir"; \
987
figbase=`echo $$fig | sed -e 's/^.*\///'`; \
988
if $$figsymlink; then \
989
echo "cd $$figdir && $(LN_S) -f ../../C/$$fig $$figbase"; \
990
( cd "$$figdir" && $(LN_S) -f "../../C/$$fig" "$$figbase" ); \
992
echo "$(INSTALL_DATA) $$figfile $$figdir$$figbase"; \
993
$(INSTALL_DATA) "$$figfile" "$$figdir$$figbase"; \
1002
$(mkinstalldirs) $(DESTDIR)$(OMF_DIR)/$(_doc_install_dir)
1003
@list='$(_DOC_OMF_ALL)'; for omf in $$list; do \
1004
echo "$(INSTALL_DATA) $$omf $(DESTDIR)$(OMF_DIR)/$(_doc_install_dir)/$$omf"; \
1005
$(INSTALL_DATA) $$omf $(DESTDIR)$(OMF_DIR)/$(_doc_install_dir)/$$omf; \
1007
@if test "x$(_ENABLE_SK)" = "xtrue"; then \
1008
echo "scrollkeeper-update -p $(DESTDIR)$(_sklocalstatedir) -o $(DESTDIR)$(OMF_DIR)/$(_doc_install_dir)"; \
1009
scrollkeeper-update -p "$(DESTDIR)$(_sklocalstatedir)" -o "$(DESTDIR)$(OMF_DIR)/$(_doc_install_dir)"; \
1015
################################################################################
1017
.PHONY: uninstall-doc-docs uninstall-doc-html uninstall-doc-figs uninstall-doc-omf uninstall-doc-dsk
1019
$(if $(DOC_MODULE)$(DOC_ID),uninstall-doc-docs) \
1020
$(if $(_DOC_HTML_ALL),uninstall-doc-html) \
1021
$(if $(_DOC_C_FIGURES),uninstall-doc-figs) \
1022
$(if $(_DOC_OMF_IN),uninstall-doc-omf)
1023
# $(if $(_DOC_DSK_IN),uninstall-doc-dsk)
1026
@list='$(_DOC_C_DOCS) $(_DOC_LC_DOCS)'; for doc in $$list; do \
1027
echo " rm -f $(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$doc"; \
1028
rm -f "$(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$doc"; \
1032
@list='$(_DOC_C_FIGURES) $(_DOC_LC_FIGURES)'; for fig in $$list; do \
1033
echo "rm -f $(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$fig"; \
1034
rm -f "$(DESTDIR)$(HELP_DIR)/$(_doc_install_dir)/$$fig"; \
1038
@list='$(_DOC_OMF_ALL)'; for omf in $$list; do \
1039
if test "x$(_ENABLE_SK)" = "xtrue"; then \
1040
echo "scrollkeeper-uninstall -p $(_sklocalstatedir) $(DESTDIR)$(OMF_DIR)/$(_doc_install_dir)/$$omf"; \
1041
scrollkeeper-uninstall -p "$(_sklocalstatedir)" "$(DESTDIR)$(OMF_DIR)/$(_doc_install_dir)/$$omf"; \
1043
echo "rm -f $(DESTDIR)$(OMF_DIR)/$(_doc_install_dir)/$$omf"; \
1044
rm -f "$(DESTDIR)$(OMF_DIR)/$(_doc_install_dir)/$$omf"; \
1046
dist-hook: doc-dist-hook
483
maintainer-clean-generic mostlyclean mostlyclean-generic \
484
mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am
1048
488
-include $(top_srcdir)/git.mk