Index: user/glebius/course/01.intro/Makefile =================================================================== --- user/glebius/course/01.intro/Makefile (revision 257013) +++ user/glebius/course/01.intro/Makefile (revision 257014) @@ -1,13 +1,17 @@ NAME?= lection TMP= $(NAME).aux $(NAME).log $(NAME).nav $(NAME).out $(NAME).snm \ $(NAME).toc $(NAME).vrb .MAIN: $(NAME).pdf .SUFFIXES: .pdf .tex .tex.pdf: pdflatex -file-line-error -halt-on-error ${.IMPSRC} clean: rm -f -- $(TMP) texput.log + +cleanall: + make clean + rm -f $(NAME).pdf Index: user/glebius/course/02.entering_kernel/Makefile =================================================================== --- user/glebius/course/02.entering_kernel/Makefile (revision 257013) +++ user/glebius/course/02.entering_kernel/Makefile (revision 257014) @@ -1,13 +1,17 @@ NAME?= lection TMP= $(NAME).aux $(NAME).log $(NAME).nav $(NAME).out $(NAME).snm \ $(NAME).toc $(NAME).vrb .MAIN: $(NAME).pdf .SUFFIXES: .pdf .tex .tex.pdf: pdflatex -file-line-error -halt-on-error ${.IMPSRC} clean: rm -f -- $(TMP) texput.log + +cleanall: + make clean + rm -f $(NAME).pdf Index: user/glebius/course/03.processes&threads/Makefile =================================================================== --- user/glebius/course/03.processes&threads/Makefile (revision 257013) +++ user/glebius/course/03.processes&threads/Makefile (revision 257014) @@ -1,13 +1,17 @@ NAME?= lection TMP= $(NAME).aux $(NAME).log $(NAME).nav $(NAME).out $(NAME).snm \ $(NAME).toc $(NAME).vrb .MAIN: $(NAME).pdf .SUFFIXES: .pdf .tex .tex.pdf: pdflatex -file-line-error -halt-on-error ${.IMPSRC} clean: rm -f -- $(TMP) texput.log + +cleanall: + make clean + rm -f $(NAME).pdf Index: user/glebius/course/04.synchronisation/Makefile =================================================================== --- user/glebius/course/04.synchronisation/Makefile (revision 257013) +++ user/glebius/course/04.synchronisation/Makefile (revision 257014) @@ -1,13 +1,17 @@ NAME?= lection TMP= $(NAME).aux $(NAME).log $(NAME).nav $(NAME).out $(NAME).snm \ $(NAME).toc $(NAME).vrb .MAIN: $(NAME).pdf .SUFFIXES: .pdf .tex .tex.pdf: pdflatex -file-line-error -halt-on-error ${.IMPSRC} clean: rm -f -- $(TMP) texput.log + +cleanall: + make clean + rm -f $(NAME).pdf Index: user/glebius/course/05.memory/Makefile =================================================================== --- user/glebius/course/05.memory/Makefile (revision 257013) +++ user/glebius/course/05.memory/Makefile (revision 257014) @@ -1,13 +1,17 @@ NAME?= lection TMP= $(NAME).aux $(NAME).log $(NAME).nav $(NAME).out $(NAME).snm \ $(NAME).toc $(NAME).vrb .MAIN: $(NAME).pdf .SUFFIXES: .pdf .tex .tex.pdf: pdflatex -file-line-error -halt-on-error ${.IMPSRC} clean: rm -f -- $(TMP) texput.log + +cleanall: + make clean + rm -f $(NAME).pdf Index: user/glebius/course/Makefile =================================================================== --- user/glebius/course/Makefile (nonexistent) +++ user/glebius/course/Makefile (revision 257014) @@ -0,0 +1,35 @@ +ALL: build + +build: + @echo "Building individual chapters..." + cd 01.intro; make + cd 02.entering_kernel; make + cd 03.processes\&threads; make + cd 04.synchronisation; make + cd 05.memory; make + +course: + @echo "Creating combined pdf..." + pdfjoin 01.intro/lection.pdf \ + 02.entering_kernel/lection.pdf \ + 03.processes\&threads/lection.pdf \ + 04.synchronisation/lection.pdf \ + 05.memory/lection.pdf \ + -o course.pdf + +clean: + @echo "Cleanup temp files..." + cd 01.intro; make clean + cd 02.entering_kernel; make clean + cd 03.processes\&threads; make clean + cd 04.synchronisation; make clean + cd 05.memory; make clean + +cleanall: + @echo "Cleanup all files..." + cd 01.intro; make cleanall + cd 02.entering_kernel; make cleanall + cd 03.processes\&threads; make cleanall + cd 04.synchronisation; make cleanall + cd 05.memory; make cleanall + rm -f course.pdf