-
Notifications
You must be signed in to change notification settings - Fork 6
/
Makefile
40 lines (27 loc) · 988 Bytes
/
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
IDL=idl
IDL_PRESENT=0
.PHONY: all display clean
all: main
ifeq ($(IDL_PRESENT), 1)
results=cpu_vs_gpu.pdf cpu-vs-gpu.png
else
results=cpu_vs_gpu.pdf
endif
main: $(results)
thumbnail: cpu-vs-gpu-thumbnail.png
cpu-vs-gpu.png: intel-sp.csv intel-dp.csv nvidia-sp.csv nvidia-dp.csv mg_cpu_vs_gpu.pro
$(IDL) -quiet -e mg_cpu_vs_gpu
@echo "Wrote cpu-vs-gpu.png"
cpu_vs_gpu.pdf: intel-sp.csv intel-dp.csv nvidia-sp.csv nvidia-dp.csv cpu_vs_gpu_plot.py
./cpu_vs_gpu_plot.py
@echo "Wrote cpu_vs_gpu.pdf"
cpu-vs-gpu-thumbnail.png: intel-sp.csv intel-dp.csv nvidia-sp.csv nvidia-dp.csv mg_cpu_vs_gpu.pro
$(IDL) -quiet -e "mg_cpu_vs_gpu, /thumbnail"
echo "Wrote cpu-vs-gpu-thumbnail.png"
display:
@if [ -f cpu-vs-gpu.png ] ; then open cpu-vs-gpu.png; fi
@if [ -f cpu-vs-gpu-thumbnail.png ] ; then open cpu-vs-gpu-thumbnail.png; fi
@if [ -f cpu_vs_gpu.pdf ] ; then open cpu_vs_gpu.pdf; fi
clean:
rm -f cpu-vs-gpu.{ps,png} cpu-vs-gpu-thumbnail.{ps,png}
rm -f cpu_vs_gpu.pdf