aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoy Seitz <roy.seitz@ost.ch>2021-07-05 14:13:06 +0200
committerRoy Seitz <roy.seitz@ost.ch>2021-07-05 14:16:03 +0200
commitf214039800ed44145fe2763269760cf551686827 (patch)
tree6b6184fa93e465a0a71cec5529513320f455e12e
parentadd example (diff)
downloadSeminarMatrizen-f214039800ed44145fe2763269760cf551686827.tar.gz
SeminarMatrizen-f214039800ed44145fe2763269760cf551686827.zip
Only include buch.ind if it exists.
-rwxr-xr-xbuch/Makefile1
-rw-r--r--buch/buch.tex2
2 files changed, 1 insertions, 2 deletions
diff --git a/buch/Makefile b/buch/Makefile
index 1cd50dd..b83c72a 100755
--- a/buch/Makefile
+++ b/buch/Makefile
@@ -19,7 +19,6 @@ buch.pdf: buch.tex $(TEXFILES) buch.ind $(BLXFILES)
bibtex buch
buch.idx: buch.tex $(TEXFILES) images
- touch buch.ind
pdflatex buch.tex
buch.ind: buch.idx
diff --git a/buch/buch.tex b/buch/buch.tex
index 65c2ca7..449bc2a 100644
--- a/buch/buch.tex
+++ b/buch/buch.tex
@@ -44,6 +44,6 @@
\lhead{Index}
\rhead{}
\addcontentsline{toc}{chapter}{\indexname}
-\input{buch.ind}
+\InputIfFileExists{buch.ind}{}{}
\end{document}