📄 makefile.inc
字号:
## Makefile.inc for Makefiles in subdirectories.## Use customized html-chunk.xsl and/or html-single.xsl file if they exist...# Also add html-common.xsl to depends if it exists.ifeq (html-common.xsl,$(wildcard html-common.xsl))COMMON_XSL_DEPS := html-common.xsl ../html-common.xslelseCOMMON_XSL_DEPS := ../html-common.xslendififeq (html-chunk.xsl,$(wildcard html-chunk.xsl))HTML_CHUNK_XSL := html-chunk.xslCHUNK_XSL_DEPS := $(HTML_CHUNK_XSL) ../html-chunk.xsl $(COMMON_XSL_DEPS)elseHTML_CHUNK_XSL := ../html-chunk.xslCHUNK_XSL_DEPS := $(HTML_CHUNK_XSL) ../html-common.xslendififeq (html-single.xsl,$(wildcard html-single.xsl))HTML_SINGLE_XSL := html-single.xslXSL_DEPS := $(HTML_SINGLE_XSL) ../html-single.xsl $(COMMON_XSL_DEPS)elseHTML_SINGLE_XSL := ../html-single.xslXSL_DEPS := $(HTML_SINGLE_XSL) ../html-common.xslendif# Fall back to the default HTML stylesheet if none is specified.HTML_STYLESHEET ?= ../default.css# This is the main target....PHONY: all html-chunked html-single xmllintall: html-chunked html-singlehtml-chunked: $(HTMLDIR)/index.htmlhtml-single: $(HTMLFILE)SYMLINKS_DEPS:=$(if $(findstring yes,$(USE_SYMLINKS)), $(patsubst ../en/%,%,$(wildcard ../en/*.xml)))xmllint: main.xml $(SYMLINKS_DEPS) ../xmllint.sh $<$(HTMLDIR)/index.html: main.xml $(CHUNK_XSL_DEPS) $(SYMLINKS_DEPS)ifndef HTMLDIR $(warning $(HTMLDIR)) $(warning Error: HTMLDIR not set!!!) $(warning Typically this means, that you've run make from a subdir of DOCS/xml.) $(error Don't do this!)endif -rm -f $(HTMLDIR)/* ../xmllint.sh $< cp -f $(HTML_STYLESHEET) $(HTMLDIR)/ ../xsltproc.sh $(HTMLDIR)/ $(HTML_CHUNK_XSL) $<$(HTMLFILE): main.xml $(XSL_DEPS) $(SYMLINKS_DEPS)ifndef HTMLFILE $(warning Error: HTMLFILE not set!!!) $(warning Typically this means, that you've run make from a subdir of DOCS/xml.) $(error Don't do this!)endif -rm -f $(HTMLFILE) ../xmllint.sh $< cp -f $(HTML_STYLESHEET) `dirname $(HTMLFILE)` ../xsltproc.sh $(HTMLFILE) $(HTML_SINGLE_XSL) $<../html-chunk.xsl ../html-single.xsl main.xml: cd .. && sh configure$(filter-out main.xml, $(patsubst ../en/%,%, $(wildcard ../en/*.xml))): $(if $(findstring yes,$(USE_SYMLINKS)), ,exit 0;)\ for file in ../en/*.xml ; do \ if ! test -r `basename $$file` ; then \ ln -s $$file `basename $$file` ; \ fi; \ donedistclean: rm -f main.xml rm -f `find *.xml -type l`;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -