Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cours_prog
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
yassin.elhakoun
cours_prog
Commits
db8496bd
Verified
Commit
db8496bd
authored
4 years ago
by
orestis.malaspin
Browse files
Options
Downloads
Patches
Plain Diff
added mermaid filter
parent
e39df448
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
slides/Makefile
+2
-0
2 additions, 0 deletions
slides/Makefile
slides/make_avance.md
+28
-4
28 additions, 4 deletions
slides/make_avance.md
with
30 additions
and
4 deletions
slides/Makefile
+
2
−
0
View file @
db8496bd
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
...
...
This diff is collapsed.
Click to expand it.
slides/make_avance.md
+
28
−
4
View file @
db8496bd
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment