Skip to content
Snippets Groups Projects
Verified Commit 6c602828 authored by Malin Freeborn's avatar Malin Freeborn
Browse files

compile with latexmk

parent f5ca82cb
Branches
No related tags found
No related merge requests found
include vars
output: docs.pdf output: docs.pdf
rubbish/:
mkdir rubbish
images: images:
mkdir images mkdir images
images/wide.jpg:| images images/wide.jpg:| images
convert -size 100x60 xc:skyblue -fill white -stroke black -draw "ellipse 50,30 40,20 45,270" images/wide.jpg convert -size 100x60 xc:skyblue -fill white -stroke black -draw "ellipse 50,30 40,20 45,270" images/wide.jpg
docs.pdf: images/wide.jpg svg-inkscape $(wildcard *.sty) docs.tex ALL_FILES = $(wildcard *.tex) $(wildcard *.sty) | rubbish/
pdflatex -shell-escape docs.tex
test.pdf: test.tex $(wildcard *.sty) $(wildcard *.tex) rubbish/test.pdf: test.tex $(ALL_FILES)
pdflatex -shell-escape test.tex $(RUN) test.tex
resources.pdf: $(wildcard *.tex) $(wildcard *.sty)
pdflatex -shell-escape resources.tex docs.pdf: images/wide.jpg $(ALL_FILES)
svg-inkscape: $(RUN) docs.tex
pdflatex -shell-escape rules.tex $(CP) rubbish/docs.pdf docs.pdf
pdflatex -shell-escape docs.tex resources.pdf: $(ALL_FILES)
rules.pdf: images/wide.jpg svg-inkscape rules.tex rules $(wildcard *.sty) $(RUN) resources.tex
pdflatex -shell-escape rules.tex $(CP) rubbish/resources.pdf resources.pdf
rules.pdf: images/wide.jpg $(ALL_FILES)
$(RUN) rules.tex
$(CP) rubbish/rules.pdf rules.pdf
all: docs.pdf test.pdf resources.pdf rules.pdf .PHONY: all clean
all: docs.pdf resources.pdf rules.pdf rubbish/test.pdf
clean: clean:
rm -rf *pdf *.aux *.toc *.acn *.acr *.log *.ptc *.out *.idx *.ist *.alg \ $(CLEAN) images/wide.jpg
*glo \
*slo \
*sls \
*slg \
*glg \
*gls \
*.ind \
*.ilg \
images/wide.jpg \
svg-inkscape
vars 0 → 100644
CP = ln -f
BOOK = $(shell basename "$$(pwd)")
COMPILER = latexmk -auxdir=rubbish -pdflua -silent -shell-escape -jobname=$(BOOK)
RUN = lualatex -output-directory rubbish -shell-escape
QR_TARGET = $(shell grep 'mailto' README.md | cut -d' ' -f2)
CLEAN = $(RM) -r rubbish qr.tex *.pdf
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment