-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathMakefile
44 lines (38 loc) · 1.35 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
help:
@echo "Usage:"
@echo ""
@echo "make help show this message"
@echo "make clean remove intermediate files and clean the directory"
@echo "make install make a virtualenv in the base directory and install requirements"
@echo "make paper.pdf build the paper (recommended)"
@echo "make pdf compile the paper's .tex source using latexmk"
@echo "make pdflatex compile the paper's .tex source using pdflatex, might require multiple runs"
@echo "make all.tar creates a .tar ready for distribution"
install:
@echo "Setting up virtualenv..."
@python3 -m venv .env
@echo "Installing requirements..."
@. .env/bin/activate && pip3 install -r requirements.txt
@echo "Done."
clean:
@echo "Cleaning the directory..."
@rm -f paper/*.log
@rm -f paper/*.aux
@rm -f paper/*.toc
@rm -f paper/*.fls
@rm -f paper/*.fdb_latexmk
@rm -f paper/*.bbl
@rm -f paper/*.blg
paper.pdf:
@echo "Warning: Requires latexmk. To compile manually using pdflatex please run 'make pdflatex'."
@echo "Compiling .tex source files..."
@cd paper && make pdf
pdf:
@echo "Compiling .tex source files..."
@cd paper && make pdf
pdflatex:
@echo "Warning: Might require multiple runs to correctly generate table of contents, bibliography etc."
@echo "Compiling .tex source files..."
@cd paper && make pdflatex
all.tar:
tar --exclude='*.graph' --exclude='*.tar.gz' -czvf all.tar.gz *