Newer
Older
Handbook / makefile-templates / Makefile.lecture
  1. ################################################################################
  2. #
  3. # File: $Id$
  4. #
  5. # Template makefile for building a set of lecture files.
  6. #
  7. ################################################################################
  8.  
  9.  
  10. SHELL=/bin/sh
  11.  
  12.  
  13. ################################################################################
  14. #
  15. # Required Environment Variables
  16. #
  17. # TEACHING_SHARED
  18. # This variable specifies the path to the top level of the teaching
  19. # shared directory hierarchy (e.g., /path/to/Teaching/Shared).
  20. #
  21. TEACHING_SHARED?=$(error The required environment variable TEACHING_SHARED has not been defined. It should point to the root level of the shared teaching directory (e.g., /path/to/Teaching/Shared))
  22.  
  23.  
  24. ################################################################################
  25. #
  26. # Set up paths to makefile include directories.
  27. #
  28. # GLOBAL_HANDBOOK_INCLUDE is the global include directory in the "Shared"
  29. # hierarchy, and is defined relative to the root of that hierarchy.
  30. #
  31. GLOBAL_HANDBOOK_INCLUDE?=$(TEACHING_SHARED)/Authoring/Handbook/make-includes
  32.  
  33.  
  34. ################################################################################
  35. #
  36. # Clear out the suffixes list. DO NOT ALTER THIS LINE!
  37. #
  38. .SUFFIXES:
  39. #
  40. # Add any custom suffixes here (uncomment the line below).
  41. # The "standard" suffixes list currently includes:
  42. # .pdf .tex .dvi .graffle .png .tif .plo .jpg .pict
  43. #
  44. # .SUFFIXES:
  45.  
  46.  
  47. ################################################################################
  48. #
  49. # Define paths for various items here. The "standard" paths currently include:
  50. #
  51. # vpath %.graffle $(IMGDIR)
  52. # vpath %.pdf $(IMGDIR)
  53. # vpath %.png $(IMGDIR)
  54. # vpath %.tif $(IMGDIR)
  55. # vpath %.jpg $(IMGDIR)
  56. # vpath %.plo $(IMGDIR)
  57. #
  58. # There's nothing to stop you adding new paths for these file types.
  59. #
  60. # vpath foo bar
  61.  
  62.  
  63. ################################################################################
  64. #
  65. # Specify the current lecture chapter number. THIS MUST BE DEFINED!
  66. #
  67. CHAPTER?=$(error The required variable CHAPTER has not been defined. Please set it to the correct chapter number for this set of lectures)
  68.  
  69.  
  70. ################################################################################
  71. #
  72. # Uncomment any of the following to prevent a particular document from
  73. # being built. This is necessary if, for example, the current set of
  74. # lectures has no figures and examples.
  75. #
  76. # SLIDES=
  77. # FIGURES=
  78. # COMBINED=
  79. # NOTES=
  80.  
  81.  
  82. ################################################################################
  83. #
  84. # Standard file list variables.
  85. #
  86. # List of images used in the presentation as actual content.
  87. #
  88. SLIDE_IMAGES=
  89.  
  90. #
  91. # List of images used in the presentation as backgrounds or watermarks.
  92. #
  93. SLIDE_BACKGROUNDS=
  94.  
  95. #
  96. # List of images used in the figures and examples document.
  97. #
  98. FIG_IMAGES=
  99.  
  100. #
  101. # Files to be cleaned by the various "clean" targets. The "standard" values
  102. # are currently:
  103. # TIDY_FILES=*.tmp *.aux *.out *.log *.nav *.toc *.snm *.head *.dvi \
  104. # slides-combined.pdf slides-notes.pdf
  105. # CLEAN_FILES=*.pdf
  106. #
  107. # $(TIDY_FILES) is a list of generated intermediate files to clean up.
  108. #
  109. TIDY_FILES=
  110. #
  111. # $(CLEAN_FILES) is everything else that might need to be cleaned up.
  112. #
  113. CLEAN_FILES=
  114.  
  115.  
  116. ################################################################################
  117. #
  118. # Specify LaTeX document options (comma-separated list). The "standard"
  119. # value is currently: pdftex,usepdftitle=false,$(DRAFT).If you want to
  120. # override the "standard" options, redefine this variable after the
  121. # include line just below.
  122. #
  123. LATEX_OPTS=
  124.  
  125. #
  126. # List of "phony" build targets (remember to define rules for
  127. # them!). The "standard" list is currently:
  128. # all slides notes slides-combined slides-notes figures combined
  129. # debug test clean tidy targets
  130. #
  131. TARGETS=
  132.  
  133.  
  134. ################################################################################
  135. #
  136. # Include standard variables and rules for building lectures.
  137. #
  138. include $(GLOBAL_HANDBOOK_INCLUDE)/build_lecture_rules.make
  139.  
  140.  
  141. ################################################################################
  142. #
  143. # Add custom rules and variables below here as necessary.
  144. #
  145.