Skip to content

Commit

Permalink
Added makefile control center #1
Browse files Browse the repository at this point in the history
  • Loading branch information
lisitsyn committed Apr 9, 2014
1 parent 8579a97 commit ef6c2e9
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions appc/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
default:
@echo "APPC challenge"
@echo "--------------"
@echo "Available make commands:"
@echo ""
@echo "visit-website \t\t Opens the challenge at Kaggle with default browser"
@echo "download-data \t\t Downloads data with your browser"
@echo "unzip-data \t\t Unzips downloaded data"

downloader=wget -nc --directory-prefix=data
unzipper=unzip -n -d data

visit-website:
@echo "Opening the website"
@xdg-open https://www.kaggle.com/c/allstate-purchase-prediction-challenge

download-data:
@mkdir -p data
@echo "Downloading data with your browser..."
@xdg-open https://www.kaggle.com/c/allstate-purchase-prediction-challenge/download/sampleSubmission.csv
@xdg-open https://www.kaggle.com/c/allstate-purchase-prediction-challenge/download/train.csv.zip
@xdg-open https://www.kaggle.com/c/allstate-purchase-prediction-challenge/download/test_v2.csv.zip
@echo "Once downloaded put to the data directory"

unzip-data:
@mkdir -p data
$(unzipper) data/train.csv.zip
$(unzipper) data/test_v2.csv.zip

0 comments on commit ef6c2e9

Please sign in to comment.