Skip to content

Commit 2eb388b

Browse files
committed
better name for slides, and better makefiles
1 parent 8ae9f68 commit 2eb388b

File tree

5 files changed

+13
-16
lines changed

5 files changed

+13
-16
lines changed

.gitignore

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,3 @@
99
*.synctex.gz
1010
*.bbl
1111
*.blg
12-
slides/lecture.pdf
13-
slides/printable.pdf
14-
slides/lecture-nup.pdf
15-
slides/tmp/
16-
slides/anim/*.png
17-
notes/notes.pdf
18-
notes/tmp/
19-

notes/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/notes.pdf
2+
/tmp/

slides/.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
/slides.pdf
2+
/tmp/
3+
/anim/

slides/makefile

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
1-
all: lecture.pdf
1+
all: slides.pdf
22

33
minputs := heat heatadapt diffstag siaflat flowline ssaflowline
44
minputs := $(addsuffix .m,$(minputs))
55

66
mslim := $(subst .m,.slim.m,$(minputs))
77
msource := $(addprefix tmp/,$(mslim))
88

9-
# FIXME: much to do here
10-
# FIXME need to do "make" in karthaus/, and add links to all graphics, for this too work
11-
lecture.pdf: $(msource) anim/halfar-0.png lecture.tex preamble.tex sia.tex masscont.tex ssa.tex
12-
pdflatex lecture
13-
pdflatex lecture
9+
slides.pdf: $(msource) anim/halfar-0.png slides.tex preamble.tex sia.tex masscont.tex ssa.tex
10+
pdflatex slides
11+
pdflatex slides
1412

1513
# the purpose of this nonsense is to put only the "meat" of codes into the
16-
# PDF lectures. thus we remove comments and print statements. the flag
14+
# PDF slides. thus we remove comments and print statements. the flag
1715
# "STRIPFROMHERE" can be used in a comment to remove everything after the flag
1816
tmp/%.slim.m: ../mfiles/%.m
1917
mkdir -p tmp/
2018
sed -e '/STRIPFROMHERE/,$$ d' $< > $@.tmp
2119
sed -e 's/ *fprintf/%/' -e 's/ *%/%/' -e '/^%/ d' -e 's/%.*//' $@.tmp > $@
2220
rm -rf $@.tmp
2321

22+
# un-tarring puts files halfar-?.png in directory which are older than the tar
23+
# ... which explains using "touch" after creation
2424
anim/halfar-0.png: anim/halfarfigs.tar.gz
25-
(cd anim/ && tar -xzvf halfarfigs.tar.gz)
25+
(cd anim/ && tar -xzvf halfarfigs.tar.gz && touch *.png)
2626

2727
.PHONY: clean
2828

File renamed without changes.

0 commit comments

Comments
 (0)