Commit e7ab8576 authored by Robert Ricci's avatar Robert Ricci

Clean up some rules that we'll never need

parent f094e562
......@@ -16,17 +16,9 @@
#
#DOCUMENTS := prop
# Individual pieces of the root document: These can get built as separate PDFs
# with the 'make parts' target
#PARTS := summary description refs
# Sub-directories that should be recursed into
#SUBDIRS := adm
# Generated LaTeX files (budget tables).
#
#BUDTABLES :=
# "Extra" figures, not made from `.fig' or `.svg' files. These must have file
# name extensions because we don't want to infer them.
#
......@@ -79,7 +71,7 @@ TEX4HT ?= tex4ht
T4HT ?= t4ht
# TEXBITS should exclude the root files, but it does not.
TEXBITS ?= $(wildcard *.tex) $(BUDTABLES)
TEXBITS ?= $(wildcard *.tex)
BIBBITS ?= $(wildcard *.bib) $(wildcard bib/*.bib)
FIGBITS ?= $(wildcard figs/*.fig)
......@@ -142,37 +134,13 @@ $(foreach d,$(DOCUMENTS),$(eval $(call def-doc-rule,$d)))
.PHONY: pdf
pdf: $(DOC).pdf
.PHONY: html
html: $(DOC)-www.html
define def-www-rule
$1-www.html: $1-www.dvi
$$(TEX4HT) $$(basename $$@)
$$(T4HT) $$(basename $$@)
endef
# And if you have `wwwis' <http://bloodyeck.com/wwwis/>,
# wwwis *.html
$(foreach d,$(DOCUMENTS),$(eval $(call def-www-rule,$d)))
.PHONY: parts
parts: $(addsuffix .pdf,$(PARTS))
####
$(addsuffix .pdf,$(DOCUMENTS)): $(DEPS) $(FIGPDF)
$(addsuffix -www.dvi,$(DOCUMENTS)): $(DEPS) $(FIGWWW)
# Why be subtle?
# Use a special job name to keep our output docs separate from those along the
# "normal" route to PDF.
%-www.dvi: %-www.tex
$(LATEX) -jobname $(basename $@) $(basename $<)
- $(BIBTEX) $(basename $@)
$(LATEX) -jobname $(basename $@) $(basename $<)
$(LATEX) -jobname $(basename $@) $(basename $<)
$(LATEX) -jobname $(basename $@) $(basename $<)
# Why be subtle?
%.pdf: %.tex | $(BUILDDIR)
$(PDFLATEX) -draftmode $(PDFLATEXFLAGS) $(basename $<)
- cd $(BUILDDIR) && $(BIBTEX) $(basename $@)
......@@ -180,16 +148,6 @@ $(addsuffix -www.dvi,$(DOCUMENTS)): $(DEPS) $(FIGWWW)
# $(PDFLATEX) $(PDFLATEXFLAGS) $(basename $<)
mv $(BUILDDIR)/$@ $@
# Rules to build the partial files listed in PARTS
define def-part-rule
$1: $1.pdf ;
$1.pdf: $(DOC).pdf | $(BUILDDIR)
$(PDFLATEX) $(PDFLATEXFLAGS) -jobname=part-$1 \
"\includeonly{$1}\input{$(DOC)}"
mv $(BUILDDIR)/part-$1.pdf $1.pdf
endef
$(foreach part,$(PARTS),$(eval $(call def-part-rule,$(part))))
%.bbl: %.aux
$(BIBTEX) $(basename $@)
......@@ -223,19 +181,6 @@ $(BUILDDIR):
$(SVGBITS:.svg=.pdf): %.pdf: %.eps
$(PS2PDF) $(PS2PDFFLAGS_EPS) $< $@
#####
$(BUDTABLES): \
budget-tables/budget.py \
budget-tables/currency.py \
budget-tables/em.py \
budget-tables/run \
budget-tables/table.py \
budget-tables/template.em
budget-all-1.tex:
(cd budget-tables && ./run Both 1.0 AllBudgetTableOne) > $@
###############################################################################
## Simple rules for making sub-directories
......@@ -272,9 +217,6 @@ clean::
realclean:: clean
$(RM) $(foreach doc, $(DOCUMENTS), $(doc).{pdf,ps,eps})
$(RM) $(foreach part, $(PARTS), $(part).{pdf,ps,eps})
$(RM) *-www.css *-www.html *-www?.html *-www*.png
$(RM) $(BUDTABLES)
$(RM) $(FIGBITS:.fig=.eps) $(SVGBITS:.svg=.eps)
$(RM) $(FIGBITS:.fig=.pdf) $(SVGBITS:.svg=.pdf)
$(RM) $(FIGBITS:.fig=.png) $(SVGBITS:.svg=.png)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment