Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Oct 2013 19:47:03 +0000 (UTC)
From:      Hiren Panchasara <hiren@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-user@freebsd.org
Subject:   svn commit: r257014 - in user/glebius/course: . 01.intro 02.entering_kernel 03.processes&threads 04.synchronisation 05.memory
Message-ID:  <201310231947.r9NJl30a019117@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: hiren
Date: Wed Oct 23 19:47:03 2013
New Revision: 257014
URL: http://svnweb.freebsd.org/changeset/base/257014

Log:
  Adding a top-level makefile which can generate a single pdf containing all the
  course lectures.
  
  Adding cleanall target to delete resulting .pdf files.
  
  Discussed with: glebius

Added:
  user/glebius/course/Makefile
Modified:
  user/glebius/course/01.intro/Makefile
  user/glebius/course/02.entering_kernel/Makefile
  user/glebius/course/03.processes&threads/Makefile
  user/glebius/course/04.synchronisation/Makefile
  user/glebius/course/05.memory/Makefile

Modified: user/glebius/course/01.intro/Makefile
==============================================================================
--- user/glebius/course/01.intro/Makefile	Wed Oct 23 19:45:14 2013	(r257013)
+++ user/glebius/course/01.intro/Makefile	Wed Oct 23 19:47:03 2013	(r257014)
@@ -11,3 +11,7 @@ TMP=	$(NAME).aux $(NAME).log $(NAME).nav
 
 clean:
 	rm -f -- $(TMP) texput.log
+
+cleanall:
+	make clean
+	rm -f $(NAME).pdf

Modified: user/glebius/course/02.entering_kernel/Makefile
==============================================================================
--- user/glebius/course/02.entering_kernel/Makefile	Wed Oct 23 19:45:14 2013	(r257013)
+++ user/glebius/course/02.entering_kernel/Makefile	Wed Oct 23 19:47:03 2013	(r257014)
@@ -11,3 +11,7 @@ TMP=	$(NAME).aux $(NAME).log $(NAME).nav
 
 clean:
 	rm -f -- $(TMP) texput.log
+
+cleanall:
+	make clean
+	rm -f $(NAME).pdf

Modified: user/glebius/course/03.processes&threads/Makefile
==============================================================================
--- user/glebius/course/03.processes&threads/Makefile	Wed Oct 23 19:45:14 2013	(r257013)
+++ user/glebius/course/03.processes&threads/Makefile	Wed Oct 23 19:47:03 2013	(r257014)
@@ -11,3 +11,7 @@ TMP=	$(NAME).aux $(NAME).log $(NAME).nav
 
 clean:
 	rm -f -- $(TMP) texput.log
+
+cleanall:
+	make clean
+	rm -f $(NAME).pdf

Modified: user/glebius/course/04.synchronisation/Makefile
==============================================================================
--- user/glebius/course/04.synchronisation/Makefile	Wed Oct 23 19:45:14 2013	(r257013)
+++ user/glebius/course/04.synchronisation/Makefile	Wed Oct 23 19:47:03 2013	(r257014)
@@ -11,3 +11,7 @@ TMP=	$(NAME).aux $(NAME).log $(NAME).nav
 
 clean:
 	rm -f -- $(TMP) texput.log
+
+cleanall:
+	make clean
+	rm -f $(NAME).pdf

Modified: user/glebius/course/05.memory/Makefile
==============================================================================
--- user/glebius/course/05.memory/Makefile	Wed Oct 23 19:45:14 2013	(r257013)
+++ user/glebius/course/05.memory/Makefile	Wed Oct 23 19:47:03 2013	(r257014)
@@ -11,3 +11,7 @@ TMP=	$(NAME).aux $(NAME).log $(NAME).nav
 
 clean:
 	rm -f -- $(TMP) texput.log
+
+cleanall:
+	make clean
+	rm -f $(NAME).pdf

Added: user/glebius/course/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ user/glebius/course/Makefile	Wed Oct 23 19:47:03 2013	(r257014)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201310231947.r9NJl30a019117>