X-Git-Url: https://code.communitydata.science/cdsc_tex.git/blobdiff_plain/3e38a3be26390ca69ceafb2c193ae7c73f1a516f..36363551c4b16a790c587206b6c9427e7f70dbe4:/Makefile?ds=sidebyside diff --git a/Makefile b/Makefile index e2c566a..aecabff 100644 --- 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 +clean: + rubber -d --clean *.tex + rm -f *.tmp + rm -f figures/*.pdf -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 +.PHONY: clean all