From a47cd5a143bc4cb6438bff35507b59098b13a62d Mon Sep 17 00:00:00 2001 From: Manuel Traut Date: Mon, 18 Jul 2011 14:08:21 +0200 Subject: restore Makefile (deleted by vorlesungs merge) Signed-off-by: Manuel Traut --- Makefile | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 Makefile (limited to 'Makefile') 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 -- cgit v1.2.3