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

update config

parent 0d3b9d87
No related branches found
No related tags found
No related merge requests found
*.aux
*.bbl
*.blg
*.dvi
*.idx
*.ilg
*.ind
*.log
*.synctex.gz
*.toc
*.log
*.tmp
*pdf
*swp
.no.md
*.acn
*.acr
*.alg
*glg
*glo
*gls
*.ist
*ist
*.maf
svg-inkscape
*.out
*.ptc
old
rubbish
svg-inkscape/
*.png
*.jpeg
*.tiff
*.xcf
*.xmpi
*.slg
*.slo
*.sls
.switch-*
*.fls
*latexmk
qr.tex
*.pdf
.switch-gls
BOOK = $(shell basename "$$(pwd)")
QR_TARGET = $(shell grep 'mailto' README.md | cut -d' ' -f2)
include config/vars
output: $(BOOK).pdf
config/vars:
@git submodule update --init
.PHONY: clean all
qr.tex: README.md
qr.tex: README.md config/vars .switch-gls
@printf '\qrcode[height=.2\\textwidth]{$(QR_TARGET)}' > qr.tex
.switch-gls:
@touch -r Makefile .switch-gls
config/bind.sty:
@git submodule update --init
svg-inkscape: | config/bind.sty .switch-gls qr.tex
@pdflatex -shell-escape -jobname $(BOOK) main.tex
$(BOOK).pdf: svg-inkscape $(wildcard *.tex) $(wildcard config/*.sty)
@pdflatex -jobname $(BOOK) main.tex
$(BOOK).pdf: $(wildcard *.tex) $(wildcard config/*.sty) | qr.tex
@$(COMPILER) main.tex
.PHONY: all
all: $(BOOK).pdf
@latexmk -jobname=$(BOOK) -shell-escape -pdf main.tex
clean:
rm -fr *.aux *.sls *.slo *.slg *.toc *.acn *.log *.out *.idx *.ist \
*glo \
*glg \
*gls \
*.acr \
*.alg \
*.ilg \
*.ind \
*.ptc \
*.pdf \
svg-inkscape \
*.fdb_latexmk \
qr.tex \
*.fls
$(CLEAN)
Subproject commit 3f4557426c011e098a1d885381b8ae9c2f013bbf
Subproject commit a63fb801fbeab9e82912d71fee6ae52400497c04
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