value is assigned at the moment the variable is created
\end{itemize}
\item Variables can come from the environment and can be overridden on
- the command line: \mintinline{shell}{make FOO=bleargh} or
- \mintinline{shell}{FOO=blah make}.
+ the command line: \mintinline{shell}{FOO=blah make} or
+ \mintinline{shell}{make FOO=bleargh}.
\item \mintinline{make}{$@} -- target name %$
\item \mintinline{make}{$*} -- current stem %$
\item \mintinline{make}{$^} -- all prerequisites %$
\begin{frame}[fragile]{Some Functions}
\begin{itemize}
- \item \mintinline{make}{$(patsubst %.bam,%.sam,foo.sam bar.sam)} %$
+ \item \mintinline{make}{$(patsubst %.sam,%.bam,foo.sam bar.sam)} %$
-- returns foo.bam bar.bam.
\item \mintinline{make}{$(filter-out %.bam,foo.sam bar.bam)} %$
-- returns foo.sam
\begin{frame}[fragile]{Special Targets}
\begin{minted}[showtabs]{make}
-%.fasta.gz: %.fasta
+%.fasta: %.fasta.gz
gzip -dc $< > $@
%.bam: %.sam