diff options
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..1ef20b1 --- /dev/null +++ b/Makefile @@ -0,0 +1,58 @@ +SUBDIRS = application-devel flash-memory frameworks kernel-devel linux-basics protocols realtime + +default: + make all + +all clean:: + for dir in $(SUBDIRS) ; do \ + (cd $$dir && make $@); \ + done + 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 |
