Skip to content
Snippets Groups Projects
Commit 68675d74 authored by Natanael Log's avatar Natanael Log
Browse files

add watch target

Automatically rebuild whenever a .tex file is changed.
parent b6fb4404
No related branches found
No related tags found
1 merge request!22Add watch target to Makefile
......@@ -24,6 +24,9 @@ $(PDFNAME).pdf: $(TEXMAINFILE) *.tex
view: $(PDFNAME).pdf
$(PDFVIEWER) $(PDFNAME).pdf &
watch:
while true; do make --silent; sleep 2; done
clean:
$(MKLATEX) -CA
rm -f $(PDFNAME).pdf *.{aux,bbl,bcf,blg,cb,fdb_latexmk,fls,lof,log,lot,out,run.xml,rel,synctex.gz,toc}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment