Skip to content
Snippets Groups Projects
Unverified Commit 4d60de1e authored by Malin Freeborn's avatar Malin Freeborn
Browse files

update Makefile

parent 659ba934
No related branches found
No related tags found
No related merge requests found
......@@ -36,3 +36,5 @@ old
*.slo
*.sls
.switch-*
*.fls
*latexmk
......@@ -11,5 +11,4 @@ compile_pdf:
- run
artifacts:
paths:
- BIND.pdf
- resources.pdf
- core.pdf
output: main.pdf
book: main.pdf
mv main.pdf BIND.pdf
BOOK = $(shell basename "$$(pwd)")
output: $(BOOK).pdf
global: config/bind.sty .switch-gls
.switch-gls:
touch -r Makefile .switch-gls
@touch -r Makefile .switch-gls
config/bind.sty:
git submodule update --init
main.pdf: main.gls config $(wildcard *tex)
pdflatex main.tex
main.gls: svg-inkscape/logo_svg-tex.pdf
makeglossaries main
pdflatex main.tex
svg-inkscape/logo_svg-tex.pdf: images/ global
pdflatex -shell-escape main.tex
pdflatex main.tex
pdflatex main.tex
@git submodule update --init
svg-inkscape: global
pdflatex -shell-escape -jobname main.tex
pdflatex -jobname main.tex
svg-inkscape: | config/bind.sty
@pdflatex -shell-escape -jobname $(BOOK) main.tex
$(BOOK).glo: | svg-inkscape
@pdflatex -jobname $(BOOK) main.tex
$(BOOK).sls: | $(BOOK).glo
@makeglossaries $(BOOK)
$(BOOK).pdf: $(BOOK).sls
@pdflatex -jobname $(BOOK) main.tex
resources: resources.pdf
resources.pdf: main.gls global
pdflatex resources.tex
all: resources book
all: $(BOOK).pdf
latexmk -jobname=$(BOOK) -shell-escape -pdf main.tex
clean:
rm -fr *.aux *.sls *.slo *.slg *.toc *.acn *.log *.ptc *.out *.idx *.ist *.glo *.glg *.gls *.acr *.alg *.ilg *.ind *.pdf sq/*aux svg-inkscape
.PHONY: clean all
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