.SUFFIXES: .csv .out .dat .plt .eps .pdf

UNAME           = $(shell uname)

ifeq ($(UNAME),Linux)
PYTHON = /usr/bin/python3
endif

ifeq ($(UNAME),Darwin)
#PYTHON = /usr//bin/python
#PYTHON = /opt/local/bin/python
PYTHON = python3
endif

all: collate stats

collate:
	$(PYTHON) ./excel2csv.py

stats: speed.R wpm.R
	R --vanilla < speed.R > speed.out
	R --vanilla < wpm.R > wpm.out

clean:
	rm -f *.csv
	rm -f *.out *.eps *.pdf
