diff options
author | Romain Porte <microjoe@microjoe.org> | 2018-02-09 13:32:31 +0100 |
---|---|---|
committer | Romain Porte <microjoe@microjoe.org> | 2018-02-09 13:32:31 +0100 |
commit | 1e1d9ab154d06deb1231a15db27f3b8ea3576a03 (patch) | |
tree | 72cf6b947e7436d08a468c1954297e3f5adbcbde | |
parent | 97b4f906678898ff1597126b6702d668c5da02f8 (diff) | |
download | latex-makefile-1e1d9ab154d06deb1231a15db27f3b8ea3576a03.tar.gz latex-makefile-1e1d9ab154d06deb1231a15db27f3b8ea3576a03.zip |
Live compilation support
-rw-r--r-- | .gitignore | 3 | ||||
-rw-r--r-- | Makefile | 8 |
2 files changed, 10 insertions, 1 deletions
@@ -12,3 +12,6 @@ *.out *.toc *.xdy +*.tns +*.pdf +*.dvi @@ -1,6 +1,6 @@ # LaTeX basic Makefile # -# WTFPL, 2016 Romain Porte (MicroJoe) <microjoe@microjoe.org> +# WTFPL, 2016 - 2018 Romain Porte (MicroJoe) <microjoe@microjoe.org> # # Inspirated from # http://tex.stackexchange.com/questions/40738/how-to-properly-make-a-latex-project @@ -17,6 +17,10 @@ PRINC=src/main.tex # Main rule: Construct the PDF all: $(PDF) +# +# Live: automatic watch and build of the PDF file +live: $(PRINC) $(SOURCES) + source ~/.bashrc && latexmk -pvc -pdf -pdflatex="pdflatex -interaction=nonstopmode" -use-make $(PRINC) # Construct the PDF file from sources $(PDF): $(PRINC) $(SOURCES) @@ -45,4 +49,6 @@ clean: mrproper: clean @echo Removing all PDF files... @rm -f *.pdf + @echo Removing all DVI files... + @rm -f *.dvi @echo Done |