From: Mart Lubbers Date: Tue, 8 Nov 2016 13:53:28 +0000 (+0100) Subject: Update X-Git-Url: https://git.martlubbers.net/?a=commitdiff_plain;h=refs%2Fheads%2Fmaster;p=linuxnijmegen-make.git Update --- diff --git a/Makefile b/Makefile index c964766..94ef4a3 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ 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 diff --git a/geavanceerd.tex b/geavanceerd.tex index 23eece9..4d06b99 100644 --- a/geavanceerd.tex +++ b/geavanceerd.tex @@ -3,9 +3,7 @@ \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% @@ -39,4 +37,17 @@ vpath %.h src \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} diff --git a/gebruik.tex b/gebruik.tex index d8bc764..b578858 100644 --- a/gebruik.tex +++ b/gebruik.tex @@ -33,7 +33,7 @@ NAAM:=frob NAAM=nic NAAM+=ator NAAM?=frobbel -override NAAM?=frobbel +override L=variabele met 1 letter all: $(NAAM) @@ -85,7 +85,6 @@ a.out: %.cxx $(filter pattern,text) $(filter-out pattern,text) $(subst search,replace,text) -$(words text) $(word n,text)) $(findstring string,text) \end{lstlisting} @@ -95,7 +94,6 @@ $(findstring string,text) \begin{lstlisting} $(wildcard *.tex) $(dir text) -$(suffix text) $(addsuffix suffix,lijst) $(addprefix suffix,lijst) $(basename text) diff --git a/make.tex b/make.tex index 577587b..e0a8817 100644 --- a/make.tex +++ b/make.tex @@ -30,6 +30,7 @@ \frametitle{Vragen?} \begin{itemize} \item \verb#$ man make# + \item\url{https://www.gnu.org/software/make/manual/} \item Nu stellen \item\ldots \end{itemize}