added Makefile for posic talks
[lectures/latex.git] / posic / talks / Makefile
diff --git a/posic/talks/Makefile b/posic/talks/Makefile
new file mode 100644 (file)
index 0000000..96878c9
--- /dev/null
@@ -0,0 +1,22 @@
+# Makefile
+LATEX = latex
+DVIPS = dvips -tlandscape
+PS2PDF = ps2pdf
+
+SRC := $(shell ls *.tex)
+PDF = $(SRC:%.tex=%.pdf)
+
+all: $(PDF)
+
+%.dvi: %.tex
+       $(LATEX) $< $@
+       $(LATEX) $< $@
+
+%.ps: %.dvi
+       $(DVIPS) $<
+
+%.pdf: %.ps
+       $(PS2PDF) $<
+       
+clean:
+       rm -f *.log *.aux