merged in changes with packge information
[latex_mako] / Makefile
index e2c566a88cf81555395ec2748e6b3b4e5424177c..3edf5085dff8c8997d110b53153294b1a177f1e4 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,27 +1,21 @@
-all: dvi
+#!/usr/bin/make
 
-dvi: text.tex
-       cp text.tex backup.tex
-       latex text.tex
-       latex text.tex
-       latex text.tex
+all: $(patsubst %.tex,%.pdf,$(wildcard *.tex)) 
+pdf: all
 
-pdf: dvi
-       pdflatex text.tex
+%.pdf: %.tex
+       rubber -fd $<
 
-viewpdf: pdf
-       evince text.pdf
-
-ps: dvi
-       dvips -f < text.dvi  > text.ps
+clean: 
+       rubber -d --clean *.tex
+       rm -f *.tmp
+       rm -f figures/*.pdf
 
-final: dvi
-       dvips -f < text.dvi > final.ps
+viewpdf: all
+       evince text.pdf
 
 spell:
        aspell -c -t --tex-check-comments -b text.tex
 
-clean:
-       cp text.tex backup.tex
-       rm -f text.{blg,bbl,aux,log,dvi,toc,tex.bak,txt,tex~,ps,pdf} warnings
 
+.PHONY: clean all

Benjamin Mako Hill || Want to submit a patch?