-
Notifications
You must be signed in to change notification settings - Fork 80
/
Copy pathMakefile
35 lines (27 loc) · 1.13 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
SHELL=/bin/bash
THESIS=thesis
.SUFFIXES:
.SUFFIXES: .bib .pdf .tex
.PHONY: clean
run: $(THESIS).pdf
$(THESIS).pdf: SB_0050_FO $(THESIS).bbl $(THESIS).tex
pdflatex $(THESIS).tex -draftmode
pdflatex $(THESIS).tex
SB_0050_FO:
@test -s SB_0050_FO_Pruefungsrechtliche_Erklaerung_und_Erklaerung_zur_Veroeffentlichung_der_Abschlussarbeit_public.pdf || { \
echo ""; \
echo "*************************************************************************************"; \
echo "* You need to download, fill and save-as-pdf form SB_0050_FO from the Ohm intranet. *"; \
echo "*************************************************************************************"; \
echo "wget https://intern.ohmportal.de/fileadmin/Gelenkte_Doks/Abt/SZS/SB/SB_0050_FO_Pruefungsrechtliche_Erklaerung_und_Erklaerung_zur_Veroeffentlichung_der_Abschlussarbeit_public.pdf"; \
echo ""; \
exit 1; \
}
$(THESIS).bbl: $(THESIS).aux
bibtex $(THESIS).aux
$(THESIS).aux: refs.bib
pdflatex $(THESIS).tex -draftmode
pdflatex $(THESIS).tex -draftmode
clean:
rm -f *.{aux,lof,log,lot,lol,,bcf,toc,bbl,blg,run.xml,out}
rm -f content/*.{aux,lof,log,lot,lol,,bcf,toc,bbl,blg,run.xml,out}