diff --git a/Makefile b/Makefile index 9cc73ee..8fbd84d 100644 --- a/Makefile +++ b/Makefile @@ -1,15 +1,21 @@ input_path ?= $$HOME/notes/diary/running.csv chart_json ?= chart.json +cmd := plot-sport --track "Tempelhof" -i "$(input_path)" + .PHONY: plot plot: - plot-sport --track "Tempelhof" -i "$(input_path)" -p plot + $(cmd) "$@" + +.PHONY: show +show: + $(cmd) "$@" .PHONY: format-data format-data: tempelhof.csv ## Format data tempelhof.csv: - plot-sport --track "Tempelhof" -i "$(input_path)" csv -o "$@" + $(cmd) csv -o "$@" .PHONY: create-chart create-chart: ## Create new chart