Skip to content
Snippets Groups Projects
Commit f16941e3 authored by Emmanuel Lanti's avatar Emmanuel Lanti
Browse files

Merge branch 'master' of ssh://c4science.ch/source/SCM-lecture

parents 6ab7569f 903a7808
No related branches found
No related tags found
No related merge requests found
......@@ -534,6 +534,16 @@ prepend_path("INCLUDE","/ssoft/spack/arvine/v1/opt/spack/linux-rhel7-skylake_avx
\framesubtitle{First naive example}
\bashfile[title={examples/compilationWithMakefile/Makefile}]{examples/compilationWithMakefile/Makefile}
\end{frame}
\note{
\begin{itemize}
\item First, we can use in the Makefile some variables to assign commands
\item On the left you have the so-called target: all, ... and following the target, the dependencies %my_exec, etc ... and following the target: the dependencies
% \item Only the first target in the makefile is the default target. Often called the default goal, this is the reason you will see all as the first target in most projects. It is the responsibility of all to call other targets. We can override this behavior using a special phony target called .DEFAULT_GOAL.
\item The reciepes are introduced below the definition target:dependencies
\item a target might be a binary file that depends on dependencies (source files). On the other hand, a dependencie can also be a target that depends on other dependencies:
\end{itemize}
}
\begin{frame}[t,fragile]
\frametitle{Makefile}
......@@ -541,6 +551,12 @@ prepend_path("INCLUDE","/ssoft/spack/arvine/v1/opt/spack/linux-rhel7-skylake_avx
\bashfile[title={examples/compilationWithMakefileAdvanced/Makefile}]{examples/compilationWithMakefileAdvanced/Makefile}
\end{frame}
\note{
\begin{itemize}
\item
\end{itemize}
}
\begin{frame}[t,fragile]
\frametitle{Build automation tool}
\framesubtitle{GNU CMake}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment