-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile.monthly
More file actions
31 lines (24 loc) · 762 Bytes
/
Copy pathMakefile.monthly
File metadata and controls
31 lines (24 loc) · 762 Bytes
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
# Makefile.monthly -- the Makefile for monthly processing of data
# Copyright 2016 Ben Elliston
# You can pass VERBOSE=1 to make to turn on verbosity.
# Set these correctly before running.
FILES = $(sort $(wildcard $(HOME)/setup/files/R_*.csv))
START = 2015-05-01
END = 2015-06-01
OPTS="--sampling=last"
CMD=python make-timeseries.py
ifeq "$(VERBOSE)" "1"
V := -v
else
V :=
endif
all: lowres medres highres
highres:
@echo $(CMD) -r 5s $(V) $(OPTS) $(START) $(END) ..
@$(CMD) -r 5s $(V) $(OPTS) $(START) $(END) $(FILES)
medres:
@echo $(CMD) -r 15m $(V) $(OPTS) $(START) $(END) ..
@$(CMD) -r 15m $(V) $(OPTS) $(START) $(END) $(FILES)
lowres:
@echo $(CMD) -r 1h $(V) $(OPTS) $(START) $(END) ..
@$(CMD) -r 1h $(V) $(OPTS) $(START) $(END) $(FILES)