Altered Makefile to properly build from each source file

master
Mike Gerwitz 2012-02-17 22:01:11 -05:00
parent 7a007acfa5
commit 1e77bdf3ac
1 changed files with 7 additions and 2 deletions

View File

@ -1,13 +1,18 @@
# This file is under the public domain.
sec = coope.tex \
sec/class-like.tex \
sec/encap-hacks.tex \
sec/hacking-proto.tex \
sec/licenses.tex
.PHONY: default pdf
.SUFFIXES: .tex .pdf
default: pdf
pdf: coope.pdf
# intentionally two-pass
.tex.pdf:
%.pdf: $(sec)
pdflatex $< $@
pdflatex $< $@