Fix Makefile so it can work on Linux as well as windows (define var for pdflatex binary name). Fix whitespace formatting errors (it matters for make).

This commit is contained in:
Wookey 2016-05-24 13:23:50 +01:00
parent 18999d8b2c
commit c87041918d
2 changed files with 31 additions and 26 deletions

View File

@ -1,13 +1,18 @@
all: bierbook.pdf seshbook.pdf
#If using windows uncomment this
LATEXTOOL=pdflatex.exe
#If using linux or macos(?) uncomment this
#LATEXTOOL=pdflatex
bierbook.pdf: bierbook.tex names.txt dates.txt bierbook-style.sty
pdflatex.exe -synctex=1 -interaction=nonstopmode -shell-escape bierbook.tex
pdflatex.exe -synctex=1 -interaction=nonstopmode -shell-escape bierbook.tex
pdflatex.exe -synctex=1 -interaction=nonstopmode -shell-escape bierbook.tex
$(LATEXTOOL) -synctex=1 -interaction=nonstopmode -shell-escape bierbook.tex
$(LATEXTOOL) -synctex=1 -interaction=nonstopmode -shell-escape bierbook.tex
$(LATEXTOOL) -synctex=1 -interaction=nonstopmode -shell-escape bierbook.tex
seshbook.pdf: seshbook.tex names.txt bierbook-style.sty
pdflatex.exe -synctex=1 -interaction=nonstopmode -shell-escape seshbook.tex
pdflatex.exe -synctex=1 -interaction=nonstopmode -shell-escape seshbook.tex
$(LATEXTOOL) -synctex=1 -interaction=nonstopmode -shell-escape seshbook.tex
$(LATEXTOOL) -synctex=1 -interaction=nonstopmode -shell-escape seshbook.tex
cleanbier:
rm -f bierbook.aux