added Makefile + changes to appendix and sim chapter
[lectures/latex.git] / posic / thesis / Makefile
diff --git a/posic/thesis/Makefile b/posic/thesis/Makefile
new file mode 100644 (file)
index 0000000..eabf68b
--- /dev/null
@@ -0,0 +1,24 @@
+# Makefile
+LATEX = latex
+DVIPS = dvips -tlandscape
+DVIPDF= dvipdf
+PS2PDF = ps2pdf
+PDFLATEX = pdflatex
+
+SRC = thesis.tex
+PDF = $(SRC:%.tex=%.pdf)
+
+all: $(PDF)
+
+%.dvi: %.tex
+       $(PDFLATEX) $< $@
+       $(PDFLATEX) $< $@
+
+%.ps: %.dvi
+       $(DVIPS) $<
+
+%.pdf: %.dvi
+       $(DVIPDF) $<
+       
+clean:
+       rm -f *.log *.aux