Skip to content

Instantly share code, notes, and snippets.

@hancush
Last active April 3, 2020 17:18
Show Gist options
  • Save hancush/64e381e6e37ae8b23c953533b56c526a to your computer and use it in GitHub Desktop.
Save hancush/64e381e6e37ae8b23c953533b56c526a to your computer and use it in GitHub Desktop.
$(patsubst %, pensions_%.reordered.csv, $(shell seq 2012 1 2017)) : data/raw/pensions_2012-2017.csv
# some other operations on the downloaded/inflated pensions data
data/raw/pensions_%.csv : data/raw/pensions_%.tar
cd $(dir $@) && tar xvfz $(notdir $<)
data/raw/pensions_%.tar :
wget --no-use-server-timestamps \
https://bga-pensions-database.s3.amazonaws.com/raw/$(notdir $@) -O $@
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment