From 9c01235704781498566bc47e1c2b2237812dbd37 Mon Sep 17 00:00:00 2001 From: hackbard Date: Fri, 19 Oct 2007 17:03:15 +0200 Subject: [PATCH] added a clever Makefile ;) --- solid_state_physics/tutorial/Makefile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 solid_state_physics/tutorial/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 -- 2.20.1