Skip to content
Snippets Groups Projects
Verified Commit db8496bd authored by orestis.malaspin's avatar orestis.malaspin
Browse files

added mermaid filter

parent e39df448
No related branches found
No related tags found
No related merge requests found
PDFOPTIONS = -t beamer
PDFOPTIONS += -F mermaid-filter
PDFOPTIONS += --highlight-style my_highlight.theme
PDFOPTIONS += --pdf-engine pdflatex
PDFOPTIONS += -V theme:metropolis
......@@ -7,6 +8,7 @@ PDFOPTIONS += -V fontsize=smaller
PDFOPTIONS += -V urlcolor=blue
REVEALOPTIONS = -t revealjs
REVEALOPTIONS += -F mermaid-filter
REVEALOPTIONS += --self-contained
REVEALOPTIONS += -V revealjs-url=./reveal.js
REVEALOPTIONS += -V theme=white
......
......@@ -24,7 +24,7 @@ date: 2021-03-03
```bash
galaxy: galaxy.o stars.o vec.o
gcc -o galaxy galaxy.o
gcc -o galaxy galaxy.o stars.o vec.o
galaxy.o: galaxy.c
gcc -c galaxy.c
......@@ -34,21 +34,45 @@ stars.o: stars.c stars.h vec.h
vec.o: vec.c vec.h
gcc -c vec.c
clean:
rm -f *.o galaxy
```
:::
::: {.column width="40%"}
**Dessinez le diagramme de dépendances de ce `Makefile`**.
## Terminal
```bash
$ make
gcc -c example.c
gcc -o example example.o
gcc -c galaxy.c
gcc -c stars.c
gcc -c vec.c
gcc -o galaxy galaxy.o stars.o vec.o
$ make clean
rm -f *.o galaxy
```
:::
::::::::::::::
# Diagramme de dépendances
~~~{.mermaid format=png}
graph TD;
galaxy.o --> galaxy
stars.o --> galaxy
vec.o --> galaxy
galaxy.c --> galaxy.o
stars.c --> stars.o
stars.h --> stars.o
vec.h --> stars.o
vec.h --> vec.o
vec.c --> vec.o
~~~
# `Makefile` plus complexe (1/3)
```makefile
......@@ -134,7 +158,7 @@ Et pour les dépendances des cibles implicites ça se passe comment?
## Réponse
On peut définir individuellement les dites dépendances
On peut définir individuellement les dites dépendances!
## Fonctionnement
......
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