]> git.donarmstrong.com Git - using_make_for_science.git/blobdiff - using_make_for_science.Rnw
flip around variable setting to match the sentence where it is described
[using_make_for_science.git] / using_make_for_science.Rnw
index 12ce5e7f07bf7c07053283d722fc0a1e2b9733b5..2fee8e94ee34bcf3f56847ca8f9112ef4054a53d 100644 (file)
@@ -200,8 +200,8 @@ TARGETS: PREREQUISITES
     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 %$
@@ -214,7 +214,7 @@ TARGETS: 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
@@ -271,7 +271,7 @@ clean:
 
 \begin{frame}[fragile]{Special Targets}
 \begin{minted}[showtabs]{make}
-%.fasta.gz: %.fasta
+%.fasta: %.fasta.gz
        gzip -dc $< > $@
 
 %.bam: %.sam