# Update these variables to match the locations JUNIT_JAR=C:\Users\Kathleen\.p2\pool\plugins\org.junit_4.12.0.v201504281640\junit.jar HAMCREST_JAR=C:\Users\Kathleen\.p2\pool\plugins\org.hamcrest.core_1.3.0.v20180420-1519.jar # These variables should not need to be changed TEST_CLASSPATH=${JUNIT_JAR};${HAMCREST_JAR} # Choosing build instead of bin to avoid conflicts with Eclipse BUILD_DIR=build SRC_FOLDERS=edu/sjsu/fwjs PACKAGE_NAME=edu.sjsu.fwjs ZIP_FILE=solution.zip .PHONY: all test run clean spotless all: if not exist "${BUILD_DIR}/${SRC_FOLDERS}" mkdir "${BUILD_DIR}/${SRC_FOLDERS}" javac -cp ${TEST_CLASSPATH} -d ${BUILD_DIR} src/${SRC_FOLDERS}/*.java testSrc/${SRC_FOLDERS}/*.java test: java -cp ${BUILD_DIR};${TEST_CLASSPATH} org.junit.runner.JUnitCore ${PACKAGE_NAME}.ExpressionTest run: java -cp ${BUILD_DIR} ${PACKAGE_NAME}.Interpreter ${ZIP_FILE}: powershell "Compress-Archive src/${SRC_FOLDERS}/*.java ${ZIP_FILE}" clean: del ${BUILD_DIR} spotless: clean del ${ZIP_FILE}