-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile
executable file
·75 lines (58 loc) · 1.85 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
VPATH = src:latex
CXX = g++-7
all : figs/plots.gif figs/%.jpg plot_ANN_Ind_Func.png plot_g.png
afplay /System/Library/Components/CoreAudio.component/Contents/SharedSupport/SystemSounds/system/payment_success.aif -v .5
figs/plots.gif : figs/%.jpg
convert -set delay '%[fx:t==0 ? 30 : 40 - t/(n-1)]' -loop 0 figs/%d_plot.jpeg[1-301] plots.gif
figs/%.jpg : model_data.csv plotting.r
Rscript src/plotting.r
plot_ANN_Ind_Func.png : plotting_ANN_Ind_Func.r
Rscript src/plotting_ANN_Ind_Func.r
plot_g.png : plotting_g.r
Rscript src/plotting_g.r
# Cheb_Ind_Func.png
# Chebyshev_Polynomials_of_the_First_Kind
model_data.csv : program
./program
program : main.cpp parameters.cpp model.cpp fitting.cpp
$(CXX) -march=native -O3 -w -fopenmp -lstdc++ -lm -std=c++11 -lnlopt -ldlib -I/usr/local/include/ $^ -o $@
d : main.cpp parameters.cpp model.cpp fitting.cpp
$(CXX) -g -Wall -fopenmp -lstdc++ -lm -std=c++11 -lnlopt -ldlib -I/usr/local/include/ $^ -o $@
./$@
rm $@
rm -rf $@.dSYM
afplay /System/Library/Components/CoreAudio.component/Contents/SharedSupport/SystemSounds/system/payment_success.aif -v .5
run : program
./program
afplay /System/Library/Components/CoreAudio.component/Contents/SharedSupport/SystemSounds/system/payment_success.aif -v .5
plot : model_data.csv
Rscript src/plotting.r
gif :
convert -set delay '%[fx:t==0 ? 30 : 40 - t/(n-1)]' -loop 0 figs/%d_plot.jpeg[1-301] plots.gif
pdf : final.tex
cd latex;\
ls;\
pdflatex final;\
bibtex final;\
pdflatex final;\
pdflatex final;\
cd ../;
pdfclean :
cd latex;\
rm *.bbl;\
rm *.blg;\
rm *.log;\
rm *.out;\
rm *.aux;\
cd ../;
view : final.pdf
cd latex;\
open final.pdf;\
cd ../;
clean :
rm program
rm -rf program.dSYM
rm figs/*.jpg
rm model_data.csv
rm figs/plots.gif
afplay /System/Library/Components/CoreAudio.component/Contents/SharedSupport/SystemSounds/system/payment_success.aif -v .5