# Problem with makeindex

I'm trying to create an index of manually-added words in memoir. I've looked up instructions in the documentation, and came up with the following MWE. It compiles, but why is the index not showing up?

\documentclass{memoir}

\makeindex
\indexintoc

\begin{document}

\frontmatter
\tableofcontents*

\mainmatter
\chapter{My chapter}
\noindent This is some text.
\index{text}

\backmatter
\printindex

\end{document}

-
Did you run makeindex, and then rerun pdflatex? – Peter Grill Apr 4 '12 at 2:33
@PeterGrill I put the \makeindex command in the document, if that's what you mean...? – jamaicanworm Apr 4 '12 at 2:34
No. There is a separate executable you need to invoke. First run pdflatex (which produces the .idx file), then MakeIndex which generates the .ind file, which is read by the subsequent run of pdflatex which produces the index. – Peter Grill Apr 4 '12 at 2:41
Yet again a great chance to mention latexmk which will take care of all this by itself. That is, you have to take care of the code, and latexmk will take care of the compilation in terms of the different executables that have to be run, the order etc. – Dror Apr 4 '12 at 6:40
Just for fun, and to rule out the editor, try running Peters solution, i.e. pdflatex, makeindex, pdflatex, in a terminal, that is by not using an editor. Or try using TeXMaker instead (I'm not a big fan of TeXnicCenter) – daleif Apr 4 '12 at 7:46

1. Run pdflatex which produces the .idx file
2. Run MakeIndex which generated the .ind file
3. Run pdflatex which will then incorporate the .ind file and produce the index page.