X-Git-Url: https://code.communitydata.science/cdsc_tex.git/blobdiff_plain/94507c62c379b328a02bc93b39eed0c606805c96..0746ab85e891efca17ae34a29fee52c33dde41eb:/Makefile?ds=sidebyside diff --git a/Makefile b/Makefile index e2c566a..990fa79 100644 --- a/Makefile +++ b/Makefile @@ -1,27 +1,24 @@ -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: dvi - pdflatex text.tex -viewpdf: pdf - evince text.pdf +%.pdf: %.png + png2pdf -p 1.4 -a $< $@ + +%.pdf: %.tex + rubber -fd $< -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: pdf + 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