blob: 0c5797045e72a619ecee06b7229a3029347992a3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
SUBDIRS = application-devel flash-memory frameworks kernel-devel linux-basics protocols realtime security misc distribution
default:
make all
all:
for dir in $(SUBDIRS) ; do \
(cd $$dir && make $@); \
done
clean:
rm -rf pdf
rm -f *.aux
rm -f *.log
rm -f *.nav
rm -f *.toc
rm -f *.pdf
rm -f *.snm
rm -f *.bbl
rm -f *.blg
rm -f *.out
rm -f *.vrb
pres:
mv configpres.tex _configpres.tex
touch configpres.tex
mv tailpres.tex _tailpres.tex
touch tailpres.tex
pdflatex pres_master.tex
bibtex pres_master.aux
pdflatex pres_master.tex
pdflatex pres_master.tex
mv _configpres.tex configpres.tex
mv _tailpres.tex tailpres.tex
rm configpres.tex tailpres.tex
book:
mv confighandout.tex _confighandout.tex
touch confighandout.tex
mv tailhandout.tex _tailhandout.tex
touch tailhandout.tex
TEXINPUTS=`pwd`/wise:.:$(TEXINPUTS) pdflatex handout_master.tex
bibtex handout_master.tex
TEXINPUTS=`pwd`/wise:.:$(TEXINPUTS) pdflatex handout_master.tex
TEXINPUTS=`pwd`/wise:.:$(TEXINPUTS) pdflatex handout_master.tex
rm confighandout.tailhandout.tex
mv _confighandout.tex confighandout.tex
mv _tailhandout.tex tailhandout.tex
pdf:
rm -rf pdf
mkdir -p pdf/pres
mkdir -p pdf/handout
mkdir -p pdf/hints
find . -name pres_*.pdf | xargs cp -t pdf/pres
find . -name hints_*.pdf | xargs cp -t pdf/hints
find . -name handout_*.pdf | xargs cp -t pdf/handout
cd pdf/pres && \
pdfsam-console -o `pwd`/../pres.pdf -d `pwd` concat
cd pdf/hints && \
pdfsam-console -o `pwd`/../hints.pdf -d `pwd` concat
cd pdf/handout && \
pdfsam-console -o `pwd`/../handout.pdf -d `pwd` concat
|