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. # Specify the current lecture chapter number. This must be defined!
  37. #
  38. CHAPTER?=$(error The required variable CHAPTER has not been defined. Please set it to the correct chapter number for this set of lectures)
  39.  
  40.  
  41. ################################################################################
  42. #
  43. # Uncomment any of the following to prevent a particular document from
  44. # being built. This is necessary if, for example, the current set of
  45. # lectures has no figures and examples.
  46. #
  47. # SLIDES=
  48. # FIGURES=
  49. # COMBINED=
  50. # NOTES=
  51.  
  52.  
  53. ################################################################################
  54. #
  55. # Include standard variables and rules for building lectures.
  56. #
  57. include $(GLOBAL_HANDBOOK_INCLUDE)/build_lecture_rules.make
  58.  
  59.  
  60. ################################################################################
  61. #
  62. # Add custom rules below here as necessary, and uncomment and modify the
  63. # variables as appropriate.
  64. #
  65. # Add extra file suffixes here.
  66. #
  67. # .SUFFIXES:
  68. #
  69. # Add extra LaTeX document options here.
  70. #
  71. # LATEX_OPTS+=
  72. #
  73. # Add extra "phony" build targets here (you still need to define rules for
  74. # them!).
  75. #
  76. # TARGETS+=
  77. #
  78. # Add extra vpaths here.
  79. #
  80. # vpath %.blah foo
  81. #
  82. # Add extra files to be deleted by the "clean" targets here.
  83. # $(TIDY_FILES) is a list of generated intermediate files to clean up.
  84. # $(CLEAN_FILES) is everything else that might need to be cleaned up.
  85. #
  86. # TIDY_FILES+=
  87. # CLEAN_FILES+=
  88. #
  89. # Add extra image files of various sorts here. (Slide backgrounds are
  90. # images used as backgrounds to slides or watermarks, rather than as
  91. # actual content.)
  92. #
  93. # SLIDE_IMAGES+=
  94. # SLIDE_BACKGROUNDS+=
  95. # FIG_IMAGES+=