DOC:=make
-LATEX:=pdflatex
-LATEXFLAGS:=-file-line-error -halt-on-error -no-shell-escape
+LATEX?=pdflatex
+LATEXFLAGS?=-file-line-error -halt-on-error -no-shell-escape
TEXS:=$(wildcard *.tex)
.PHONY: all clean
\framesubtitle{\ldots want niemand zet alles in \'e\'en map}
\begin{block}{Waar zoekt \Make{} je bestanden}
\begin{itemize}
- \item Huidige directory
- \item \texttt{\$VPATH}
- \item \texttt{vpath} directive
+ \item Huidige directory, \texttt{\$VPATH}, \texttt{vpath} directive
\pause\item Aanbevolen is om te werken met \texttt{vpath} directive
\end{itemize}
\pause%
\item\texttt{.INTERMEDIATE} {-} Tussenbestanden die verwijderd mogen
worden.
\end{itemize}
+
+ \begin{lstlisting}[caption={Speciale target syntax}]
+.PHONY all
+.SECONDARY b
+
+all: b
+
+b: a
+ mv $< $@
+
+a: a.c
+ gcc $< -o $@
+ \end{lstlisting}
\end{frame}
NAAM=nic
NAAM+=ator
NAAM?=frobbel
-override NAAM?=frobbel
+override
L=variabele met 1 letter
all: $(NAAM)
$(filter pattern,text)
$(filter-out pattern,text)
$(subst search,replace,text)
-$(words text)
$(word n,text))
$(findstring string,text)
\end{lstlisting}
\begin{lstlisting}
$(wildcard *.tex)
$(dir text)
-$(suffix text)
$(addsuffix suffix,lijst)
$(addprefix suffix,lijst)
$(basename text)
\frametitle{Vragen?}
\begin{itemize}
\item \verb#$ man make#
+ \item\url{https://www.gnu.org/software/make/manual/}
\item Nu stellen
\item\ldots
\end{itemize}