-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make expert change #411
Make expert change #411
Conversation
this way the duplication of filenames in the Makefile is reduced
make/content/advanced.tex
Outdated
report.txt: $(script_targets) #Variablen Verwendung | ||
touch report.txt | ||
|
||
$(script_targets): plot.py data.txt #Variablen Verwendung |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
&
missing?
make/content/advanced.tex
Outdated
\begin{minted}{make} | ||
all: report.txt | ||
|
||
script_targets = plot1.pdf plot2.pdf plot3.pdf plot4.pdf plot5.pdf #Variablen Definition |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Next step: plots = $(addprefix build/, $(addsuffix .pdf, plot1 plot2 plot3 plot4))
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not opposed to add another slide for this to 👍
Side note, ubuntu 20.04 is a still supported LTS version and only has make 4.2 not sure we need to mention that though. |
make/content/advanced.tex
Outdated
\begin{minted}{make} | ||
all: report.txt | ||
|
||
script_targets = plot1.pdf plot2.pdf plot3.pdf plot4.pdf plot5.pdf #Variablen Definition |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# Variable
missing space
make/content/advanced.tex
Outdated
|
||
script_targets = plot1.pdf plot2.pdf plot3.pdf plot4.pdf plot5.pdf #Variablen Definition | ||
|
||
report.txt: $(script_targets) #Variablen Verwendung |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# Variablen
missing space
make/content/advanced.tex
Outdated
report.txt: $(script_targets) #Variablen Verwendung | ||
touch report.txt | ||
|
||
$(script_targets): plot.py data.txt #Variablen Verwendung |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# Variablen
missing space
👍 |
make/content/advanced.tex
Outdated
all: report.txt | ||
|
||
report.txt: plot1.pdf plot2.pdf | ||
touch report.txt |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Die Indentierung hier ist incosistent. Make braucht Tabs, keine spaces.
Vermutlich besser alle Beispiele als echte Makefiles, z.B. in examples/slideX.make
zu speichern und inputminted zu behmen
…ia minted to the slides
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
In case we want to add this small change and example to the end of the expert slides:
Changes the solution for parallelization to using grouped targets.
Adds one slide with an example for make variables.
See #408 for details.
Personally I really do like this small addition and the look of the 'cleaner'
Makefile, but the change is not necessary.