]> projects.mako.cc - latex_mako/blobdiff - Makefile
added support for the vc plugin
[latex_mako] / Makefile
index 9aefb24158c900db3ab09e6e70c03ab0c7ead393..b88ef22f239c323b8c4fe5f006629ba1869ef553 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,28 +1,23 @@
-all: dvi
+#!/usr/bin/make
 
-dvi: text.tex
-       cp text.tex backup.tex
-       latex text.tex
-       bibtex text 
-       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
+clean: 
+       rubber -d --clean *.tex
+       rm -f *.tmp
+       rm vc
 
-ps: dvi
-       dvips -f < text.dvi  > text.ps
-
-final: dvi
-       dvips -f < text.dvi > final.ps
+viewpdf: all
+       evince *.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
+vc:
+       vc-git
 
+.PHONY: clean all

Benjamin Mako Hill || Want to submit a patch?