Skip to content
Snippets Groups Projects
Commit 72de1d7d authored by Malin Freeborn's avatar Malin Freeborn
Browse files

allow reference version in Makefile

parent b75909f7
No related branches found
No related tags found
No related merge requests found
......@@ -15,17 +15,15 @@ resources: resources.pdf
resources.pdf: $(wildcard CS/*.tex)
pdflatex CS/resources.tex
ref:
filename=bind-ref
pdflatex -jobname ${filename} -shell-ecape "\def\isref{1} \input{main.tex}"
makeindex bind-ref.idx
makeglossaries bind-ref
pdflatex -jobname bind-ref "\def\isref{1} \input{main.tex}"
pdflatex -jobname bind-ref "\def\isref{1} \input{main.tex}"
all: resources.pdf ${filename}.pdf ref
touch .ref
make
rm .ref
mv main.pdf bind_ref.pdf
all: ref resources.pdf ${filename}.pdf
tree:
[ -e ../config ] || ( echo "You don't have a local config repo" && exit 1 )
git status
git subtree -P config pull ../config ${branch}
git subtree -P config push ../config ${branch}
clean:
rm -fr *.aux *.toc *.acn *.log *.ptc *.out *.idx *.ist *.glo *.glg *.gls *.acr *.alg *.ilg *.ind *.pdf svg-inkscape
rm -fr *.aux *.toc *.acn *.log *.ptc *.out *.idx *.ist *.glo *.glg *.gls *.acr *.alg *.ilg *.ind *.pdf .ref svg-inkscape
......@@ -7,11 +7,9 @@
\usepackage{config/monsters}
\input{glossary.tex}
\ifdefined\isref
\settoggle{verbose}{false}
\else
\settoggle{verbose}{true}
\fi
\IfFileExists{.ref}%
{\settoggle{verbose}{false}}
{\settoggle{verbose}{true}}
\externalReferent{aif}
......
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