Browse Source

Makefile: Update

master
Jakub Valenta 1 year ago
parent
commit
dff5c7d6ca
  1. 10
      Makefile

10
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

Loading…
Cancel
Save