\appendix\label{chp:appendix}
-\chapter{Planning}\label{app:planning}
-\input{appendix-planning.tex}
-
\chapter{Communication protocol}\label{app:communication-protocol}
\input{appendix-protocol.tex}
\chapter{Device client interface}\label{app:device-interface}
\input{appendix-device-interface.tex}
+\cleardoublepage{}
+\phantomsection{}
+\addcontentsline{toc}{chapter}{Bibliography}
+\bibliographystyle{ieeetr}
+\bibliography{thesis}
+
\cleardoublepage{}
\phantomsection{}
\addcontentsline{toc}{chapter}{Lists of \ldots}
\endgroup
\cleardoublepage{}
+\phantomsection{}
\addcontentsline{toc}{chapter}{Glossaries \& Acronyms}
-
\begingroup
\let\clearpage\relax
\let\cleardoublepage\relax
\printglossaries%
\endgroup
-\bibliographystyle{ieeetr}
-\bibliography{thesis}
\end{document}