makefile

来自「disksim是一个非常优秀的磁盘仿真工具」· 代码 · 共 83 行

TXT
83
字号
# default targets to make for make allTARGETS = dm_manual.pdf dm_manual.ps############################################################################# Do not modify anything beyond this point                              #############################################################################export TEXINPUTS=.:$(shell pwd)/../modules/::###################### Change log:## 01/07/21 - SRCFILES now created w/ wildcard function instead of##            requiring all sources to be listed individually. Problem is##            the modification of draft.tex will rebuild submit.dvi, but##            that's not a big deal.###################### Bugs:## If I use the code for only generating refdbms if the .aux differs, there## is the problem that when make exits, it deletes the .bbl since it was an## intermediate target.#-- Programs used when runing latex etc.                       # note: REFDIR comes from the environment, not set in MakefileBIBTEX = bibtex -terseLATEX = latex -interaction=batchmodeDVIPS = dvips -tletterPS2PDF = ps2pdfSRCFILES = $(wildcard *.tex)#--------------------------------------------------------------------------# Production/target rules                       #--------------------------------------------------------------------------.SUFFIXES:.PHONY: clean all bibclean veryclean.SECONDARY: %.biball: $(TARGETS)# make sure that the latex files have been created from the modspec filesmodspecs:	make -C ../#-- Creation of initial .aux file%.aux: %.tex $(SRCFILES) modspecs	$(LATEX) $<#-- Creation of refdbms's .bib file%.bib: %.aux#   may fail if there are no citations yet, so ignore errors	touch $@#-- Create .bbl from .bib%.bbl: %.bib %.aux#	-$(BIBTEX) $*	$(LATEX) $*.tex#-- Build a dvi... %.dvi: %.tex %.bbl 	$(LATEX) $<#   Pull warnings (about citations and references) out of the log files	@echo ''	@echo '*=*=*=*=*=*=*=*=*=*=*=*  LaTeX Warnings  =*=*=*=*=*=*=*=*=*=*=*=*=*'	@grep 'LaTeX Warning:' $(<:.tex=.log) || true#	@echo '*=*=*=*=*=*=*=*=*=*=*=*  BibTeX Warnings  *=*=*=*=*=*=*=*=*=*=*=*=*'#	@grep 'Warning--' $(<:.tex=.blg) || true	@echo '*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*'	@echo ''#-- converting .dvi to .ps...%.ps: %.dvi	$(DVIPS) -o $@ $<#-- converting .dvi to .pdf.%.pdf: %.dvi	$(DVIPS) -Ppdf -G0 -o - $< | $(PS2PDF) - $@clean:	rm -f *~ *.dvi *.ps *.pdf *.log *.aux *.blg *.bbl *.out

⌨️ 快捷键说明

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