Few updates on todays lecture
This commit is contained in:
@@ -1,11 +1,16 @@
|
||||
TEXFILES=$(wildcard *.tex)
|
||||
PDFFILES=$(TEXFILES:.tex=.pdf)
|
||||
PYFILES=$(wildcard *.py)
|
||||
PYPDFFILES=$(PYFILES:.py=.pdf)
|
||||
|
||||
pdf : $(PDFFILES)
|
||||
pdf : $(PDFFILES) $(PYPDFFILES)
|
||||
|
||||
$(PDFFILES) : %.pdf : %.tex
|
||||
pdflatex -interaction=scrollmode $< | tee /dev/stderr | fgrep -q "Rerun to get cross-references right" && pdflatex -interaction=scrollmode $< || true
|
||||
|
||||
$(PYPDFFILES) : %.pdf : %.py
|
||||
python $<
|
||||
|
||||
clean :
|
||||
rm -f *~ $(TEXFILES:.tex=.aux) $(TEXFILES:.tex=.log) $(TEXFILES:.tex=.out) $(TEXFILES:.tex=.nav) $(TEXFILES:.tex=.snm) $(TEXFILES:.tex=.toc) $(TEXFILES:.tex=.vrb)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user