% arara: pdflatex
% arara: makeglossaries
% arara: pdflatex
\documentclass{article}

\usepackage{glossaries}

\makeglossaries

\newglossaryentry{sample1}{name={sample1},description={first example}}
\newglossaryentry{sample2}{name={sample2},description={second example},
nonumberlist}
\newglossaryentry{sample3}{name={sample3},description={third example},
nonumberlist=false
}

\begin{document}
\gls{sample1}, \gls{sample2} and \gls{sample3}.

\printglossaries
\end{document}
