Browse Source

Versuch, Makefile zu reparieren

Signed-off-by: Daniel Borchmann <daniel@algebra20.de>
master
Daniel 3 years ago
parent
commit
91bb596ee3
Signed by: Daniel Borchmann <daniel@algebra20.de> GPG Key ID: 455E361001FF778F
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      lectures/Makefile

+ 2
- 2
lectures/Makefile View File

@@ -2,8 +2,8 @@
2 2
 # maybe this helps: https://stackoverflow.com/questions/6278057/replace-only-first-match-in-multiple-files-with-perl
3 3
 
4 4
 %-handout.pdf: %.tex
5
-	cat $< | sed -e 's/^\\documentclass\[/\\documentclass\[handout,/' -e 's/^\\documentclass{/\\documentclass\[handout\]{/' | lualatex -jobname=$(basename $@)
6
-	cat $< | sed -e 's/^\\documentclass\[/\\documentclass\[handout,/' -e 's/^\\documentclass{/\\documentclass\[handout\]{/' | lualatex -jobname=$(basename $@)
5
+	cat $< | perl -0777 -p -e 's/^\\documentclass\[/\\documentclass\[handout,/' -e 's/^\\documentclass{/\\documentclass\[handout\]{/' | lualatex -jobname=$(basename $@)
6
+	cat $< | perl -0777 -p -e 's/^\\documentclass\[/\\documentclass\[handout,/' -e 's/^\\documentclass{/\\documentclass\[handout\]{/' | lualatex -jobname=$(basename $@)
7 7
 
8 8
 clean:
9 9
 	rm -f *-handout.pdf

Loading…
Cancel
Save