Created
April 2, 2015 16:19
-
-
Save naphthalene/96627ff62e89c935d745 to your computer and use it in GitHub Desktop.
Berkeley AI [all projects] Makefile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Author: Pasha Sadikov <pashalab at gmail dot com> | |
# USAGE: | |
# Create a directory for each project with the code provided in the | |
# assignment. | |
# $ make PA0 # To make the tutorial; PA1, 2, 3 etc. for the other | |
# # projects | |
# CONFIGURE your USERNAME here | |
USERNAME = bob | |
DIR0 = tutorial | |
NAMES0 = addition buyLotsOfFruit shopSmart | |
DIR1 = search | |
NAMES1 = search searchAgents | |
DIR2 = multiagent | |
NAMES2 = multiAgents | |
DIR3 = reinforcement | |
NAMES3 = valueIterationAgents qlearningAgents analysis | |
DIR4 = tracking | |
NAMES4 = bustersAgents inference | |
DIR5 = classification | |
NAMES5 = perceptron_pacman perceptron mira dataClassifier answers | |
files = $(foreach fn,$(value $(1)),$(value $(2))/$(fn).py) | |
PA%: | |
-mkdir $@ | |
-mkdir -p zips/$@ | |
cp -f $(call files,NAMES$(subst PA,,$@),DIR$(subst PA,,$@)) $@ | |
zip -r $(USERNAME).zip $@ | |
@mv $(USERNAME).zip zips/$@ | |
@rm -rf $@ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment