-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile
78 lines (67 loc) · 1.91 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
#==============================================================================
# COSMIC VOIDS
#==============================================================================
# Sebastian Bustamante (Universidad de Antioquia), [email protected]
# Jaime Forero-Romero (Universidad de los Andes)
#Commit mesage to update in git repo
MSG = "Last commit"
#Name of tex file
FILE_TEX = cosmic_voids
#Latex compiler
LATEX = pdflatex
#Viewer of pdf files
VIEWER = okular
#Latex editor
TEXEDIT = texmaker
#Current date
DATESTAMP=`date +'%Y-%m-%d'`
#Bench
BENCH = bench
#Folder of Codes for Analysis
ACODESFOLD = codes_analysis
#Folder of Codes for Figures
FCODESFOLD = codes_figures
#Folder of data for Figures
DATAFOLD = data_figures
pdflatex: $(FILE_TEX).tex
$(LATEX) $(FILE_TEX).tex
# bibtex ${FILE_TEX}
$(LATEX) $(FILE_TEX).tex
$(LATEX) $(FILE_TEX).tex
clean:
rm -f $(FILE_TEX).aux
rm -f $(FILE_TEX).out
rm -f $(FILE_TEX).bbl
rm -f $(FILE_TEX).log
make -C bench/codes clean
view:
$(VIEWER) $(FILE_TEX).pdf &
edit:
$(TEXEDIT) $(FILE_TEX).tex &
update:
git add \
./figures/* \
cosmic_voids.tex \
cosmic_voids.pdf \
makefile \
./latex/mn2e.bst \
./latex/mn2e.cls \
references.bib \
README.md \
./latex/macros.tex \
./bench/codes_analysis/*.py \
./bench/codes_analysis/*.c \
./bench/codes_figures/*.py \
./bench/codes_figures/*.c \
./bench/data_figures/*
compile:
make -C $(CODESFOLD) compile
help:
@echo -e 'Makefile Help:'
@echo -e '\tpdflatex:\t compile the pdf file'
@echo -e '\tclean:\t\t clean all temporal files'
@echo -e '\tview:\t\t view the pdf file with standard viewer ($(VIEWER))'
@echo -e '\tedit:\t\t edit the tex file with standard editor ($(TEXEDIT))'
@echo -e '\tupdate:\t\t update all files to github repository'
@echo -e '\tcompile:\t compile the required c codes in $(ACODESFOLD) and $(FCODESFOLD)'
@echo -e '\thelp:\t\t this help!'