diff --git a/make-includes/build_lecture_rules.make b/make-includes/build_lecture_rules.make index b2fd757..62d6f9e 100755 --- a/make-includes/build_lecture_rules.make +++ b/make-includes/build_lecture_rules.make @@ -50,7 +50,7 @@ # PDF files exist. They will be caught by by the "clean" target though. # TIDY_FILES+=*.tmp *.out *.log *.nav *.toc *.snm *.head *.dvi \ - slides-combined.pdf slides-notes.pdf + slides-combined.pdf slides-notes.pdf $(IMGDIR)/*-tmp.pdf CLEAN_FILES+=*.aux *.pdf @@ -58,13 +58,7 @@ # # Various environment variables. # -# Set DRAFT to anything to run in draft mode (e.g., make DRAFT=draft xxx). -# -DRAFT= -# -# Specify LaTeX document options (comma-separated list). -# -LATEX_OPTS+=pdftex,usepdftitle=false,$(DRAFT) +include $(GLOBAL_HANDBOOK_INCLUDE)/standard_environment.make # # Base file names for the various documents. # @@ -87,8 +81,7 @@ # # List of standard "phony" build targets. # -TARGETS+=all slides notes slides-combined slides-notes figures figures2up \ - combined debug test clean tidy install targets +TARGETS+=slides notes slides-combined slides-notes figures figures2up combined # .PHONY: $(TARGETS) @@ -333,71 +326,4 @@ # # Standard default rules. # -# PDF from LaTeX via DVI, typically for images drawn using PSTricks). -# -%.pdf: $(IMGDIR)/%.tex - latex --jobname=$(IMGDIR)/$* $< - dvips -q -f $(IMGDIR)/$* | ps2eps -q -l | epstopdf -f -o=$(IMGDIR)/$@ -# -# PDF from LaTeX. -# -%.pdf: %.tex - pdflatex $< - pdflatex $< -# -# PDF from OmniGraffle. (We can't automate this.) -# -%.pdf: %.graffle - @echo "$(notdir $<): regenerate $(notdir $@)" - @exit 1 -# -# Various bitmap types embedded in OmniGraffle. (We can't automate this.) -# -%.graffle: %.png - @echo "$(notdir $@): reinsert $(notdir $<)" - @exit 1 - -%.graffle: %.jpg - @echo "$(notdir $@): reinsert $(notdir $<)" - @exit 1 -# -# PNG from TIFF. -# -%.png: %.tif - convert "$<" $(IMGDIR)/$@ -# -# PNG from PICT. -# -%.png: %.pict - convert "$<" $(IMGDIR)/$@ -# -# PDF from Ploticus. -# -%.pdf: %.plo - ploticus -eps -tightcrop -o stdout $< | shiftbbox | epstopdf --filter --outfile=$(IMGDIR)/$@ -# -# PDF from PS -# -%.pdf: %.ps - ps2eps --ignoreBB --nohires --loose < $< | ps2pdf -dEPSCrop - $(IMGDIR)/$@ -# -# PDF from EPS -# -%.pdf: %.eps - ps2eps --ignoreBB --nohires --loose < $< | ps2pdf -dEPSCrop - $(IMGDIR)/$@ -# -# PDF from SVG (via Inkscape) -# We remove the intermediate file manually rather than through the tidy/clean -# mechanism, because we might have EPS files that aren't generated by -# something else. See build_content_rules.make for explanation of ps2eps -# options. -# -# BIZARRENESS: While Inkscape produces correctly cropped EPSs in the first -# place, if we don't run them through ps2eps first, ps2pdf has a tendency to -# rotate the PDFs 90 degrees clockwise for no obvious reason and without any -# apparent pattern. -# -%.pdf: %.svg - inkscape --file=$< --export-text-to-path --without-gui --export-eps=$(IMGDIR)/$*.eps - ps2eps --ignoreBB --nohires --loose --gsbbox < $(IMGDIR)/$*.eps | ps2pdf -dEPSCrop - $(IMGDIR)/$@ - rm -f $(IMGDIR)/$*.eps +include $(GLOBAL_HANDBOOK_INCLUDE)/standard_rules.make