blob: 6fcc4a6e6d1e8b41acabfcc53bd252768a160410 (
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
|
SUBDIRS = application-devel flash-memory frameworks kernel-devel
#linux-basics realtime protocols
default:
make all
all clean::
for dir in $(SUBDIRS) ; do \
(cd $$dir && make $@); \
done
book::
mv configpres.tex _configpres.tex
touch configpres.tex
mv confighandout.tex _confighandout.tex
touch confighandout.tex
mv tailpres.tex _tailpres.tex
touch tailpres.tex
mv tailhandout.tex _tailhandout.tex
touch tailhandout.tex
pdflatex pres_master.tex
pdflatex pres_master.tex
pdflatex handout_master.tex
pdflatex handout_master.tex
rm configpres.tex confighandout.tex tailpres.tex tailhandout.tex
mv _configpres.tex configpres.tex
mv _confighandout.tex confighandout.tex
mv _tailpres.tex tailpres.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
|