]> hackdaworld.org Git - lectures/latex.git/commitdiff
added a clever Makefile ;)
authorhackbard <hackbard@sage.physik.uni-augsburg.de>
Fri, 19 Oct 2007 15:03:15 +0000 (17:03 +0200)
committerhackbard <hackbard@sage.physik.uni-augsburg.de>
Fri, 19 Oct 2007 15:03:15 +0000 (17:03 +0200)
solid_state_physics/tutorial/Makefile [new file with mode: 0644]

diff --git a/solid_state_physics/tutorial/Makefile b/solid_state_physics/tutorial/Makefile
new file mode 100644 (file)
index 0000000..11c00c5
--- /dev/null
@@ -0,0 +1,18 @@
+# Makefile
+LATEX = latex
+DVIPDF = dvipdf
+
+SRC := $(shell ls *.tex)
+PDF = $(SRC:%.tex=%.pdf)
+
+all: $(PDF)
+
+%.dvi: %.tex
+       $(LATEX) $< $@
+       $(LATEX) $< $@
+
+%.pdf: %.dvi
+       $(DVIPDF) $< $@
+       
+clean:
+       rm -f *.log *.aux