Newer
Older
Handbook / makefile-templates / Makefile.lecture
nstanger on 23 Jan 2007 4 KB - Added default vpath for .pict.
  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. # .svg .pdf .tex .dvi .graffle .png .tif .plo .jpg .pict .eps .ps
  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. # vpath %.ps $(IMGDIR)
  58. # vpath %.eps $(IMGDIR)
  59. # vpath %.svg $(IMGDIR)
  60. # vpath %.pict $(IMGDIR)
  61. #
  62. # There's nothing to stop you adding new paths for these file types.
  63. #
  64. # vpath foo bar
  65.  
  66.  
  67. ################################################################################
  68. #
  69. # Specify the current lecture chapter number. THIS MUST BE DEFINED!
  70. #
  71. CHAPTER?=$(error The required variable CHAPTER has not been defined. Please set it to the correct chapter number for this set of lectures)
  72.  
  73.  
  74. ################################################################################
  75. #
  76. # Uncomment any of the following to prevent a particular document from
  77. # being built. This is necessary if, for example, the current set of
  78. # lectures has no figures and examples.
  79. #
  80. # SLIDES=
  81. # FIGURES=
  82. # COMBINED=
  83. # NOTES=
  84.  
  85.  
  86. ################################################################################
  87. #
  88. # Standard file list variables.
  89. #
  90. # List of images used in the presentation as actual content.
  91. #
  92. SLIDE_IMAGES=
  93.  
  94. #
  95. # List of other files used in the presentation as actual content.
  96. #
  97. SLIDE_FILES=
  98.  
  99. #
  100. # List of images used in the presentation as backgrounds or watermarks.
  101. #
  102. SLIDE_BACKGROUNDS=
  103.  
  104. #
  105. # List of images used in the figures and examples document.
  106. #
  107. FIG_IMAGES=
  108.  
  109. #
  110. # List of other files used in the figures and examples document.
  111. #
  112. FIG_FILES=
  113.  
  114. #
  115. # Files to be cleaned by the various "clean" targets. The "standard" values
  116. # are currently:
  117. # TIDY_FILES=*.tmp *.out *.log *.nav *.toc *.snm *.head *.dvi \
  118. # slides-combined.pdf slides-notes.pdf
  119. # CLEAN_FILES=*.aux *.pdf
  120. #
  121. # $(TIDY_FILES) is a list of generated intermediate files to clean up.
  122. #
  123. TIDY_FILES=
  124. #
  125. # $(CLEAN_FILES) is everything else that might need to be cleaned up.
  126. #
  127. CLEAN_FILES=
  128.  
  129.  
  130. ################################################################################
  131. #
  132. # Specify LaTeX document options (comma-separated list). The "standard"
  133. # value is currently: pdftex,usepdftitle=false,$(DRAFT).If you want to
  134. # override the "standard" options, redefine this variable after the
  135. # include line just below.
  136. #
  137. LATEX_OPTS=
  138.  
  139. #
  140. # List of "phony" build targets (remember to define rules for
  141. # them!). The "standard" list is currently:
  142. # all slides notes slides-combined slides-notes figures combined
  143. # debug test clean tidy targets
  144. #
  145. TARGETS=
  146.  
  147.  
  148. ################################################################################
  149. #
  150. # Add custom variables below here as necessary.
  151. #
  152.  
  153.  
  154. ################################################################################
  155. #
  156. # Include standard variables and rules for building lectures.
  157. #
  158. include $(GLOBAL_HANDBOOK_INCLUDE)/build_lecture_rules.make
  159.  
  160.  
  161. ################################################################################
  162. #
  163. # Add custom rules below here as necessary.
  164. #