⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 makefile

📁 tinyos-2.x.rar
💻
字号:
OVERVIEW = txt/overview.txt
OVERVIEW_HTML = $(subst txt/,,$(subst .txt,.html,$(OVERVIEW)))
STYLESHEET = stylesheets/doc.css
HTML = $(OVERVIEW_HTML)
TEPS = $(wildcard txt/*.txt)
TEPS_HTML = $(subst txt/,,$(subst .txt,.html,$(TEPS)))
TEPS_TEX = $(subst txt/,,$(subst .txt,.tex,$(TEPS)))
TEP_STYLESHEET = stylesheets/tep.css

#override for different docutils installations
ifndef RST2HTML
RST2HTML= rst2html
endif
ifndef RST2LATEX
RST2LATEX= rst2latex
endif


all: overview teps

pdf: $(TEPS_TEX) 



$(OVERVIEW_HTML): $(OVERVIEW) $(STYLESHEET)
	$(RST2HTML) --stylesheet-path=$(STYLESHEET) --embed-stylesheet $< > html/$@

%.html: txt/%.txt $(TEP_STYLESHEET)
	$(RST2HTML) --stylesheet-path=$(TEP_STYLESHEET) --embed-stylesheet $< > html/$@

%.tex: txt/%.txt 
	$(RST2LATEX) $< > pdf/$@
	pdflatex -interaction=batchmode -output-directory pdf $@

overview: $(OVERVIEW_HTML)

teps: $(TEPS_HTML)

clean:
	rm -f html/*.html txt/*~ pdf/*.log pdf/*.out pdf/*.tex pdf/*.aux

cleanpdf:
	rm -f pdf/*.log pdf/*.out pdf/*.tex pdf/*.aux

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -