diff --git a/.gitignore b/.gitignore index 52562d6755b58975f7d4f38d0dfa4d7e8673a16b..aa82d1c433b0479fb846bd3157116731fe976477 100644 --- a/.gitignore +++ b/.gitignore @@ -1,40 +1,7 @@ -*.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 diff --git a/Makefile b/Makefile index 0066d7b9ab93b64bc0094b0dc901666a5dee2fe1..fff0af8091b8ee49bc3243c717398a06563db0dd 100644 --- a/Makefile +++ b/Makefile @@ -1,38 +1,22 @@ -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) diff --git a/config b/config index 3f4557426c011e098a1d885381b8ae9c2f013bbf..a63fb801fbeab9e82912d71fee6ae52400497c04 160000 --- a/config +++ b/config @@ -1 +1 @@ -Subproject commit 3f4557426c011e098a1d885381b8ae9c2f013bbf +Subproject commit a63fb801fbeab9e82912d71fee6ae52400497c04