From: hackbard Date: Fri, 19 Oct 2007 15:03:15 +0000 (+0200) Subject: added a clever Makefile ;) X-Git-Url: https://hackdaworld.org/gitweb/?p=lectures%2Flatex.git;a=commitdiff_plain;h=9c01235704781498566bc47e1c2b2237812dbd37;hp=8e0003a7f7b1cb5bb75f5037388847cf4579e711 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