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,25 +1,30 @@
all: bierbook.pdf seshbook.pdf
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
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
cleanbier:
rm -f bierbook.aux
rm -f bierbook.log
rm -f bierbook.pdf
rm -f bierbook.synctex.gz
rm -f bierbook.toc
cleansesh:
rm -f seshbook.aux
rm -f seshbook.log
rm -f seshbook.pdf
rm -f seshbook.synctex.gz
clean: cleanbier cleansesh
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
$(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
$(LATEXTOOL) -synctex=1 -interaction=nonstopmode -shell-escape seshbook.tex
$(LATEXTOOL) -synctex=1 -interaction=nonstopmode -shell-escape seshbook.tex
cleanbier:
rm -f bierbook.aux
rm -f bierbook.log
rm -f bierbook.pdf
rm -f bierbook.synctex.gz
rm -f bierbook.toc
cleansesh:
rm -f seshbook.aux
rm -f seshbook.log
rm -f seshbook.pdf
rm -f seshbook.synctex.gz
clean: cleanbier cleansesh

View File

@ -3,4 +3,4 @@
3 Jul - 9 Jul
10 Jul - 16 Jul
17 Jul - 23 Jul
24 Jul - 31 Jul
24 Jul - 31 Jul