Skip to content

Commit

Permalink
Issues: 14: create mshalth and firbit dirs if needed
Browse files Browse the repository at this point in the history
  • Loading branch information
tcgoetz committed Sep 16, 2018
1 parent 2eeef51 commit e0f7314
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,10 @@ $(FITBIT_DB): $(DB_DIR) import_fitbit_file
clean_fitbit_db:
rm -f $(FITBIT_DB)

import_fitbit_file: $(DB_DIR)
$(FITBIT_FILE_DIR):
mkdir -p $(FITBIT_FILE_DIR)

import_fitbit_file: $(DB_DIR) $(FITBIT_FILE_DIR)
python import_fitbit_csv.py -e --input_dir "$(FITBIT_FILE_DIR)" --sqlite $(DB_DIR)

fitbit_summary: $(FITBIT_DB)
Expand All @@ -291,7 +294,7 @@ clean_mshealth_db:
$(MSHEALTH_FILE_DIR):
mkdir -p $(MSHEALTH_FILE_DIR)

import_mshealth: $(DB_DIR)
import_mshealth: $(DB_DIR) $(MSHEALTH_FILE_DIR)
python import_mshealth_csv.py -e --input_dir "$(MSHEALTH_FILE_DIR)" --sqlite $(DB_DIR)

mshealth_summary: $(MSHEALTH_DB)
Expand Down

0 comments on commit e0f7314

Please sign in to comment.