X-Git-Url: https://code.communitydata.science/cdsc_tex.git/blobdiff_plain/578d1ccc2411f1f95ff813342ba05f37d18129f9..9b86aa58a6f2ad6e8e6732bde0b0a6d13bff885d:/Makefile?ds=sidebyside diff --git a/Makefile b/Makefile index 9aefb24..3edf508 100644 --- a/Makefile +++ b/Makefile @@ -1,28 +1,21 @@ -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 - -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