csc-propaganda/Makefile

28 lines
348 B
Makefile
Raw Permalink Normal View History

TEX := $(wildcard *.tex)
DVI := $(TEX:.tex=.dvi)
PS := $(DVI:.dvi=.ps)
PDF := $(TEX:.tex=.pdf)
2002-09-11 11:18:43 -04:00
.PHONY: all clean none ps pdf dvi
2002-09-11 11:18:43 -04:00
ps: $(PS)
pdf: $(PDF)
all: ps pdf
2002-09-11 11:18:43 -04:00
clean:
2009-08-05 02:01:46 -04:00
rm -f $(DVI) $(PS) $(PDF) *.aux *.log
2002-09-11 11:18:43 -04:00
%.dvi: %.tex
latex $<
%.ps: %.dvi
dvips -t letter -o $@ $<
2009-08-05 01:56:14 -04:00
%.pdf: %.tex
pdflatex $<
2002-09-11 11:18:43 -04:00
%.pdf: %.ps
ps2pdf -sPAPERSIZE=letter $<