Skip to content
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

Merged
merged 4 commits into from
Oct 3, 2024
Merged

Make expert change #411

merged 4 commits into from
Oct 3, 2024

Conversation

LuckyJosh
Copy link
Contributor

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.

report.txt: $(script_targets) #Variablen Verwendung
touch report.txt

$(script_targets): plot.py data.txt #Variablen Verwendung
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

& missing?

\begin{minted}{make}
all: report.txt

script_targets = plot1.pdf plot2.pdf plot3.pdf plot4.pdf plot5.pdf #Variablen Definition
Copy link
Member

@maxnoe maxnoe Sep 19, 2024

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))

Copy link
Contributor Author

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 👍

@maxnoe
Copy link
Member

maxnoe commented Sep 19, 2024

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.

\begin{minted}{make}
all: report.txt

script_targets = plot1.pdf plot2.pdf plot3.pdf plot4.pdf plot5.pdf #Variablen Definition
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

# Variable missing space


script_targets = plot1.pdf plot2.pdf plot3.pdf plot4.pdf plot5.pdf #Variablen Definition

report.txt: $(script_targets) #Variablen Verwendung
Copy link
Member

@chrbeckm chrbeckm Sep 20, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

# Variablen missing space

report.txt: $(script_targets) #Variablen Verwendung
touch report.txt

$(script_targets): plot.py data.txt #Variablen Verwendung
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

# Variablen missing space

@LuckyJosh
Copy link
Contributor Author

👍

all: report.txt

report.txt: plot1.pdf plot2.pdf
touch report.txt
Copy link
Member

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

@chrbeckm chrbeckm requested a review from aknierim October 3, 2024 10:56
Copy link
Contributor

@aknierim aknierim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@chrbeckm chrbeckm merged commit 97b77fd into main Oct 3, 2024
1 check passed
@chrbeckm chrbeckm deleted the make-expert-change branch October 3, 2024 11:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants