From: hackbard Date: Fri, 19 Oct 2007 15:03:15 +0000 (+0200) Subject: added a clever Makefile ;) X-Git-Url: https://hackdaworld.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9c01235704781498566bc47e1c2b2237812dbd37;p=lectures%2Flatex.git added a clever Makefile ;) --- diff --git a/solid_state_physics/tutorial/Makefile b/solid_state_physics/tutorial/Makefile new file mode 100644 index 0000000..11c00c5 --- /dev/null +++ b/solid_state_physics/tutorial/Makefile @@ -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