root/doc_inner/gnu_global/S/2799.html

/* [<][>][^][v][top][bottom][index][help] */
<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>
<html xmlns='http://www.w3.org/1999/xhtml'>
<head>
<title>doc/texinfo.mk</title>
<meta name='robots' content='noindex,nofollow' />
<meta name='generator' content='GLOBAL-6.6.5' />
<meta http-equiv='Content-Style-Type' content='text/css' />
<link rel='stylesheet' type='text/css' href='../style.css' />
</head>
<body>
<a id='TOP' name='TOP'></a><h2 class='header'><a href='../mains.html'>root</a>/<a href='../files/2921.html'>doc</a>/texinfo.mk</h2>
<em class='comment'>/* [&lt;][&gt;][^][v][top]<a href='#BOTTOM'>[bottom]</a><a href='../mains.html'>[index]</a><a href='../help.html'>[help]</a> */</em>
<hr />
<pre>
<a id='L1' name='L1'></a>.PHONY: texinfo-distclean texinfo-clean texinfo-textmp-clean
<a id='L2' name='L2'></a>
<a id='L3' name='L3'></a>.INTERMEDIATE: *.org
<a id='L4' name='L4'></a>
<a id='L5' name='L5'></a>CP := cp
<a id='L6' name='L6'></a>DVIPDFMX := dvipdfmx
<a id='L7' name='L7'></a>DVIPDFMX_FLAGS ?=
<a id='L8' name='L8'></a>ECHO := echo
<a id='L9' name='L9'></a>INSTALL-INFO := install-info
<a id='L10' name='L10'></a>MAKEINFO_FLAGS ?=
<a id='L11' name='L11'></a>MKDIR := mkdir
<a id='L12' name='L12'></a>RMR := rm -rf
<a id='L13' name='L13'></a>SED := sed
<a id='L14' name='L14'></a>TEX := ptex
<a id='L15' name='L15'></a>TEXI2DVI := TEX=$(TEX) texi2dvi
<a id='L16' name='L16'></a>TEXI2DVI_FLAGS ?= -q --texinfo=@afourpaper
<a id='L17' name='L17'></a>MV := mv
<a id='L18' name='L18'></a>
<a id='L19' name='L19'></a># \includeコマンドで読み込まれるファイル
<a id='L20' name='L20'></a>intexi = $(strip $(shell $(SED) -n -e 's/@include \(.*\)/\1/pg' $&lt;))
<a id='L21' name='L21'></a>
<a id='L22' name='L22'></a># \imageコマンドで読み込まれるファイル
<a id='L23' name='L23'></a>imagetexi = $(strip $(shell $(SED) -n -e 's/.*@image{\([^,]*\)\(,[^,]*,[^,]*,[^,]*,\([^,}]*\)\)}.*/\1\3/p' $&lt;))
<a id='L24' name='L24'></a>
<a id='L25' name='L25'></a># 依存関係を自動生成し、dファイルに格納
<a id='L26' name='L26'></a>%.d: %.texi
<a id='L27' name='L27'></a>        @$(ECHO) '$@ is created by scanning $&lt;.'
<a id='L28' name='L28'></a>    # texiファイルと出力ファイルの依存関係
<a id='L29' name='L29'></a>        @$(ECHO) '$(foreach ext,.html _html .pdf .xml .info .txt .d,$(subst .texi,$(ext),$&lt;)): $&lt;' &gt;$@
<a id='L30' name='L30'></a>    # includeファイルの依存関係
<a id='L31' name='L31'></a>        $(if $(intexi),@( \
<a id='L32' name='L32'></a>      $(ECHO) &gt;&gt;$@; \
<a id='L33' name='L33'></a>      $(ECHO) '# Include Files' &gt;&gt;$@; \
<a id='L34' name='L34'></a>      $(ECHO) '$(foreach ext,.html _html .info .pdf .xml .txt,$&lt;),$(subst .texi,$(ext),$&lt;): $(intexi)') &gt;&gt;$@)
<a id='L35' name='L35'></a>  # imageファイルの依存関係
<a id='L36' name='L36'></a>  # Docbookは未定義
<a id='L37' name='L37'></a>        $(if $(imagetexi),@( \
<a id='L38' name='L38'></a>      $(ECHO) &gt;&gt;$@; \
<a id='L39' name='L39'></a>      $(ECHO) '# Image Files: HTML, HTML split, Info' &gt;&gt;$@; \
<a id='L40' name='L40'></a>      $(ECHO) '$(foreach ext,.html _html .info,$(subst .texi,$(ext),$&lt;)): $(imagetexi)' &gt;&gt;$@))
<a id='L41' name='L41'></a>        $(if $(imagetexi),@( \
<a id='L42' name='L42'></a>      $(ECHO) &gt;&gt;$@; \
<a id='L43' name='L43'></a>      $(ECHO) '# Imagefiles: DVI -&gt; PDF' &gt;&gt;$@; \
<a id='L44' name='L44'></a>      $(ECHO) '$(subst .texi,.pdf,$&lt;): $(addsuffix .eps,$(basename $(imagetexi)))' &gt;&gt;$@))
<a id='L45' name='L45'></a>
<a id='L46' name='L46'></a># 変数TEXITARGETSで指定されたターゲットファイルに対応するdファイルをインクルード
<a id='L47' name='L47'></a># .dファイルからヘッダファイルの依存関係を取得する
<a id='L48' name='L48'></a># ターゲットに clean が含まれている場合は除く
<a id='L49' name='L49'></a>ifeq (,$(filter %clean,$(MAKECMDGOALS)))
<a id='L50' name='L50'></a>  -include $(addsuffix .d,$(basename $(TEXITARGETS)))
<a id='L51' name='L51'></a>endif
<a id='L52' name='L52'></a>
<a id='L53' name='L53'></a>%.info: %.texi
<a id='L54' name='L54'></a>        $(MAKEINFO) $(MAKEINFO_FLAGS) -o $@ $&lt;
<a id='L55' name='L55'></a>
<a id='L56' name='L56'></a>%.html: %.texi
<a id='L57' name='L57'></a>        $(MAKEINFO) -o $@ --no-split --html --css-include=$(CSS) $&lt;
<a id='L58' name='L58'></a>        $(SED) -i'.org' -e 's%&lt;img src="\([^"]*\)" *[^&gt;]*&gt;%&lt;object type="image/svg+xml" data="\1"&gt;&amp;&lt;/object&gt;%g' $@
<a id='L59' name='L59'></a>        $(RM) $@.org
<a id='L60' name='L60'></a>
<a id='L61' name='L61'></a>%_html: %.texi
<a id='L62' name='L62'></a>        if test ! -e $@; then $(MKDIR) $@; fi
<a id='L63' name='L63'></a>        $(CP) $(CSS) $@/
<a id='L64' name='L64'></a>        $(MAKEINFO) -o $@ --html --css-ref=$(CSS) $&lt;
<a id='L65' name='L65'></a>        $(SED) -i'.org' -e 's%&lt;img src="\([^"]*\)" *[^&gt;]*&gt;%&lt;object type="image/svg+xml" data="\1"&gt;&amp;&lt;/object&gt;%g' $@/*.html
<a id='L66' name='L66'></a>        $(RM) $@/*.html.org
<a id='L67' name='L67'></a>
<a id='L68' name='L68'></a>%.html %_html: $(CSS)
<a id='L69' name='L69'></a>
<a id='L70' name='L70'></a>%.pdf: %.dvi
<a id='L71' name='L71'></a>        $(DVIPDFMX) $(DVIPDFMXFLAGS) $&lt;
<a id='L72' name='L72'></a>
<a id='L73' name='L73'></a>%.txt: %.texi
<a id='L74' name='L74'></a>        $(MAKEINFO) --no-headers --disable-encoding -o $@ $&lt;
<a id='L75' name='L75'></a>
<a id='L76' name='L76'></a>%.xml: %.texi
<a id='L77' name='L77'></a>        @$(MAKEINFO) --docbook -o $@ $&lt;
<a id='L78' name='L78'></a>
<a id='L79' name='L79'></a>texinfo-distclean: texinfo-clean
<a id='L80' name='L80'></a>        $(RMR) *_html *.info *.html *.pdf  *.dvi *.txt
<a id='L81' name='L81'></a>
<a id='L82' name='L82'></a>texinfo-clean: texinfo-textmp-clean
<a id='L83' name='L83'></a>        $(RM) *.d
<a id='L84' name='L84'></a>
<a id='L85' name='L85'></a>texinfo-textmp-clean:
<a id='L86' name='L86'></a>        $(RM) *.aux *.cp *.cps *.fn *.ky *.log *.pg *.pgs *.tmp *.toc *.tp *.vr
</pre>
<hr />
<a id='BOTTOM' name='BOTTOM'></a>
<em class='comment'>/* [&lt;][&gt;][^][v]<a href='#TOP'>[top]</a>[bottom]<a href='../mains.html'>[index]</a><a href='../help.html'>[help]</a> */</em>
</body>
</html>

/* [<][>][^][v][top][bottom][index][help] */