-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
39 lines (30 loc) · 921 Bytes
/
Makefile
File metadata and controls
39 lines (30 loc) · 921 Bytes
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
# If the first argument is "run"...
ifeq (commit,$(firstword $(MAKECMDGOALS)))
# use the rest as arguments for "run"
RUN_ARGS := $(wordlist 2,$(words $(MAKECMDGOALS)),$(MAKECMDGOALS))
# ...and turn them into do-nothing targets
$(eval $(RUN_ARGS):;@:)
endif
ifeq (git,$(firstword $(MAKECMDGOALS)))
# use the rest as arguments for "run"
RUN_ARGS := $(wordlist 2,$(words $(MAKECMDGOALS)),$(MAKECMDGOALS))
# ...and turn them into do-nothing targets
$(eval $(RUN_ARGS):;@:)
endif
all:
pdflatex -synctex=1 -interaction=nonstopmode ClassicThesis.tex
bib:
bibtex ClassicThesis
show:
thunar ClassicThesis.pdf
edit:
texmaker ClassicThesis.tex &
commit:
git commit -am "$(RUN_ARGS)"
push:
git push
git:
git commit -am "$(RUN_ARGS)"
git push
clean:
rm *aux *lo* *aux *toc *out *gz *~ *tps *xml FrontBackmatter/*aux Chapters/*aux ClassicThesis.pdf *bbl *blg FrontBackmatter/*bbl FrontBackmatter/*blg