-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathMakefile
30 lines (19 loc) · 826 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
MKDIR = mkdir -p
GNUPLOT = gnuplot
FFMPEG = ffmpeg -y
.PHONY: all install
all: install generate
install: img
generate: img/line.png img/line-width3.png img/line-100.png img/line-avg.png img/line-sum.png img/lines.png img/points.png img/time.png img/date.png img/datetime.png img/headmap.png img/gantt.png img/yerrorbars.png img/candlesticks.png img/timeline_r.png img/impulse.png img/histogram-clustered.png img/histogram-rowstacked.png
img:
$(MKDIR) $@
img/line-width3.png: scripts/line-width3.gp data/line.dat
$(GNUPLOT) $<
img/line-100.png: scripts/line-100.gp data/line.dat
$(GNUPLOT) $<
img/timeline.png: scripts/timeline.gp data/timeline.dat
$(GNUPLOT) $<
img/timeline_r.png: img/timeline.png
$(FFMPEG) -i $< -vf 'rotate=90*PI/180:ow=ih:oh=iw:c=none' $@
img/%.png: scripts/%.gp data/%.dat
$(GNUPLOT) $<