forked from paralevi/QDUthesis
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
52 lines (40 loc) · 1.03 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#
# Makefile of QDUBachelor-TeX
#
REPO_NAME = qdubachelor-tex
MAIN_TEX = main
MAIN_BIB = main
OFFSET_COVER = offset-cover
REPO_URL = https://github.com/chardon55/$(REPO_NAME).git
build:
xelatex $(MAIN_TEX).tex
bibtex $(MAIN_BIB)
xelatex $(MAIN_TEX).tex
xelatex $(MAIN_TEX).tex
@echo 'Done'
clean: cleanpdf
@rm -f ./*.aux ./*.bbl ./*.blg ./*.log ./*.out ./*.toc
@echo 'Temporary files cleaned'
cleanpdf:
@rm -f ./*.pdf
@echo 'PDF cleaned'
viewpdf:
@xdg-open *.pdf
build-preview: build viewpdf
offset-cover:
xelatex $(OFFSET_COVER).tex
@echo 'Done'
upgrade: clean
@rm -vrf ./$(REPO_NAME)
@git clone $(REPO_URL)
@mv -vf ./$(REPO_NAME)/qdubachelor.cls ./
@mv -vf ./$(REPO_NAME)/qdubachelor-offset-cover.cls ./
@mv -vf ./$(REPO_NAME)/bstutf8.bst ./
@mv -vf ./$(REPO_NAME)/qdu-logo.kra ./
@cp -vrf ./$(REPO_NAME)/.github ./
@cp -vrf ./$(REPO_NAME)/figures ./
@mv -vf ./$(REPO_NAME)/README.md ./
@mv -vf ./$(REPO_NAME)/LICENSE ./
@mv -vf ./$(REPO_NAME)/Makefile ./
@rm -vrf ./$(REPO_NAME)
@echo 'All essential files upgraded'