aboutsummaryrefslogtreecommitdiffstats
path: root/doc/thesis/Makefile
diff options
context:
space:
mode:
authorOST\sara.halter <sara.halter@gmx.ch>2021-09-23 15:17:55 +0200
committerOST\sara.halter <sara.halter@gmx.ch>2021-09-23 15:17:55 +0200
commit29cc5cb87c4b55cecd7ac3c3c3652d0e2ac384ff (patch)
treeb4377dd897f3185f4d13d69b6b44121b13265cc6 /doc/thesis/Makefile
parentProjekttplan angepasst noch nicht fertig (diff)
parentAdd project plan and thesis to workflow (diff)
downloadFading-29cc5cb87c4b55cecd7ac3c3c3652d0e2ac384ff.tar.gz
Fading-29cc5cb87c4b55cecd7ac3c3c3652d0e2ac384ff.zip
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'doc/thesis/Makefile')
-rw-r--r--doc/thesis/Makefile40
1 files changed, 40 insertions, 0 deletions
diff --git a/doc/thesis/Makefile b/doc/thesis/Makefile
new file mode 100644
index 0000000..84d4a45
--- /dev/null
+++ b/doc/thesis/Makefile
@@ -0,0 +1,40 @@
+TEX := pdflatex
+TEXARGS := -halt-on-error -interaction=nonstopmode
+
+SOURCES := Fading.tex \
+ tex/classicthesis.sty \
+ tex/classicthesis-config.tex \
+ \
+ tex/titlepage.tex \
+ tex/preamble.tex \
+ \
+ chapters/introduction.tex \
+ chapters/theory.tex \
+ chapters/implementation.tex \
+ chapters/conclusions.tex
+
+# Get the main file from the file
+MAIN := $(shell sed -ne 's/^.*\!TeX root =\(.*\)$$/\1/ p' $(SOURCES))
+PDF := $(patsubst %.tex, %.pdf, $(MAIN))
+
+ifeq ($(strip $(MAIN)),)
+MAIN := $(error Failed to identify TeX root, try adding \
+ `% !TeX root = <filename>` to your main tex file)
+endif
+
+.PHONY: all
+all: $(PDF)
+
+%.pdf: %.tex $(SOURCES)
+ $(TEX) $(TEXARGS) $<
+ # TODO: makeindex and stuff
+ $(TEX) $(TEXARGS) $<
+
+.PHONY: clean cleanall
+clean:
+ @rm -vf *.aux *.aue *.lof *.log *.lot *.fls *.out *.toc *.fmt *.fot *.cb *.cb2 .*.lb *.dvi *.xdv *-converted-to.* *.bbl *.bcf *.blg *-blx.aux *-blx.bib *.run.xml *.fdb_latexmk *.synctex *.synctex\(busy\) *.synctex.gz *.synctex.gz\(busy\) *.pdfsync *.alg *.loa acs-*.bib *.thm *.nav *.pre *.snm *.vrb *.soc *.cut *.cpt *.spl *.ent *.lox *.mf *.acn *.acr *.glg *.glo *.gls *.glsdefs *.lzo *.lzs *.lol
+ @rm -vf tex/*.aux
+ @rm -vf chapters/*.aux
+
+cleanall: clean
+ @rm -vf $(PDF)